Searched refs:u (Results 1 – 7 of 7) sorted by relevance
/crypto/ |
D | essiv.c | 44 } u; member 53 } 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() 79 crypto_skcipher_get_flags(tctx->u.skcipher) & in essiv_skcipher_setkey() 111 crypto_aead_clear_flags(tctx->u.aead, CRYPTO_TFM_REQ_MASK); in essiv_aead_setkey() 112 crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) & in essiv_aead_setkey() 114 err = crypto_aead_setkey(tctx->u.aead, key, keylen); in essiv_aead_setkey() 115 crypto_aead_set_flags(tfm, crypto_aead_get_flags(tctx->u.aead) & in essiv_aead_setkey() [all …]
|
D | adiantum.c | 105 } u; member 262 struct shash_desc *hash_desc = &rctx->u.hash_desc; in adiantum_hash_message() 385 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher); in adiantum_crypt() 386 skcipher_request_set_crypt(&rctx->u.streamcipher_req, req->src, in adiantum_crypt() 388 skcipher_request_set_callback(&rctx->u.streamcipher_req, in adiantum_crypt() 391 return crypto_skcipher_encrypt(&rctx->u.streamcipher_req) ?: in adiantum_crypt() 436 BUILD_BUG_ON(offsetofend(struct adiantum_request_ctx, u) != in adiantum_init_tfm() 439 u.hash_desc) + in adiantum_init_tfm() 442 u.streamcipher_req) + in adiantum_init_tfm() 446 offsetof(struct adiantum_request_ctx, u) + in adiantum_init_tfm()
|
D | chacha20poly1305.c | 69 } u; member 129 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() 176 struct poly_req *preq = &rctx->u.poly; in poly_tail() 205 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad() 234 struct poly_req *preq = &rctx->u.poly; in poly_cipher() 264 struct poly_req *preq = &rctx->u.poly; in poly_adpad() 293 struct poly_req *preq = &rctx->u.poly; in poly_ad() 317 struct poly_req *preq = &rctx->u.poly; in poly_setkey() 343 struct poly_req *preq = &rctx->u.poly; in poly_init() 367 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() [all …]
|
D | ecc.c | 862 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 …]
|
D | fcrypt.c | 228 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]]; \
|
D | gcm.c | 75 } u; member 189 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() 214 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() 232 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() 407 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() 460 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() 499 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() 552 align + offsetof(struct crypto_gcm_req_priv_ctx, u) + in crypto_gcm_init_tfm()
|
D | drbg.c | 984 } u; in drbg_hash_generate() local 1013 u.req_int = cpu_to_be64(drbg->reseed_ctr); in drbg_hash_generate() 1014 drbg_add_buf(drbg->V, drbg_statelen(drbg), u.req, 8); in drbg_hash_generate()
|