Home
last modified time | relevance | path

Searched refs:u (Results 1 – 7 of 7) sorted by relevance

/crypto/
Dessiv.c45 } u; member
54 } u; member
73 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey()
74 crypto_skcipher_set_flags(tctx->u.skcipher, in essiv_skcipher_setkey()
77 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); in essiv_skcipher_setkey()
102 crypto_aead_clear_flags(tctx->u.aead, CRYPTO_TFM_REQ_MASK); in essiv_aead_setkey()
103 crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) & in essiv_aead_setkey()
105 err = crypto_aead_setkey(tctx->u.aead, key, keylen); in essiv_aead_setkey()
131 return crypto_aead_setauthsize(tctx->u.aead, authsize); in essiv_aead_setauthsize()
149 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt()
[all …]
Dadiantum.c105 } u; member
254 struct shash_desc *hash_desc = &rctx->u.hash_desc; in adiantum_hash_message()
377 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher); in adiantum_crypt()
378 skcipher_request_set_crypt(&rctx->u.streamcipher_req, req->src, in adiantum_crypt()
380 skcipher_request_set_callback(&rctx->u.streamcipher_req, in adiantum_crypt()
383 return crypto_skcipher_encrypt(&rctx->u.streamcipher_req) ?: in adiantum_crypt()
428 BUILD_BUG_ON(offsetofend(struct adiantum_request_ctx, u) != in adiantum_init_tfm()
431 u.hash_desc) + in adiantum_init_tfm()
434 u.streamcipher_req) + in adiantum_init_tfm()
438 offsetof(struct adiantum_request_ctx, u) + in adiantum_init_tfm()
Dchacha20poly1305.c67 } u; member
127 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt()
174 struct poly_req *preq = &rctx->u.poly; in poly_tail()
203 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad()
232 struct poly_req *preq = &rctx->u.poly; in poly_cipher()
262 struct poly_req *preq = &rctx->u.poly; in poly_adpad()
291 struct poly_req *preq = &rctx->u.poly; in poly_ad()
315 struct poly_req *preq = &rctx->u.poly; in poly_setkey()
341 struct poly_req *preq = &rctx->u.poly; in poly_init()
365 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey()
[all …]
Decc.c862 u64 u[ECC_MAX_DIGITS], v[ECC_MAX_DIGITS]; in vli_mod_inv() local
873 vli_clear(u, ndigits); in vli_mod_inv()
874 u[0] = 1; in vli_mod_inv()
883 if (!EVEN(u)) in vli_mod_inv()
884 carry = vli_add(u, u, mod, ndigits); in vli_mod_inv()
886 vli_rshift1(u, ndigits); in vli_mod_inv()
888 u[ndigits - 1] |= 0x8000000000000000ull; in vli_mod_inv()
902 if (vli_cmp(u, v, ndigits) < 0) in vli_mod_inv()
903 vli_add(u, u, mod, ndigits); in vli_mod_inv()
905 vli_sub(u, u, v, ndigits); in vli_mod_inv()
[all …]
Dgcm.c74 } u; member
183 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt()
208 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update()
226 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len()
401 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash()
454 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt()
493 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue()
546 align + offsetof(struct crypto_gcm_req_priv_ctx, u) + in crypto_gcm_init_tfm()
Dfcrypt.c228 union lc4 { __be32 l; u8 c[4]; } u; \
229 u.l = sched ^ R; \
230 L ^= sbox0[u.c[0]] ^ sbox1[u.c[1]] ^ sbox2[u.c[2]] ^ sbox3[u.c[3]]; \
Ddrbg.c985 } u; in drbg_hash_generate() local
1014 u.req_int = cpu_to_be64(drbg->reseed_ctr); in drbg_hash_generate()
1015 drbg_add_buf(drbg->V, drbg_statelen(drbg), u.req, 8); in drbg_hash_generate()