Searched refs:u (Results 1 – 8 of 8) sorted by relevance
/crypto/ |
D | essiv.c | 45 } 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 …]
|
D | hctr2.c | 73 } u; member 175 struct shash_desc *hash_desc = &rctx->u.hash_desc; in hctr2_hash_tweak() 198 struct shash_desc *hash_desc = &rctx->u.hash_desc; in hctr2_hash_message() 235 struct shash_desc *hash_desc = &rctx->u.hash_desc; in hctr2_finish() 314 skcipher_request_set_tfm(&rctx->u.xctr_req, tctx->xctr); in hctr2_crypt() 315 skcipher_request_set_crypt(&rctx->u.xctr_req, rctx->bulk_part_src, in hctr2_crypt() 318 skcipher_request_set_callback(&rctx->u.xctr_req, in hctr2_crypt() 321 return crypto_skcipher_encrypt(&rctx->u.xctr_req) ?: in hctr2_crypt() 366 BUILD_BUG_ON(offsetofend(struct hctr2_request_ctx, u) != in hctr2_init_tfm() 368 subreq_size = max(sizeof_field(struct hctr2_request_ctx, u.hash_desc) + in hctr2_init_tfm() [all …]
|
D | adiantum.c | 105 } 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()
|
D | chacha20poly1305.c | 67 } 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 …]
|
D | ecc.c | 991 u64 u[ECC_MAX_DIGITS], v[ECC_MAX_DIGITS]; in vli_mod_inv() local 1002 vli_clear(u, ndigits); in vli_mod_inv() 1003 u[0] = 1; in vli_mod_inv() 1012 if (!EVEN(u)) in vli_mod_inv() 1013 carry = vli_add(u, u, mod, ndigits); in vli_mod_inv() 1015 vli_rshift1(u, ndigits); in vli_mod_inv() 1017 u[ndigits - 1] |= 0x8000000000000000ull; in vli_mod_inv() 1031 if (vli_cmp(u, v, ndigits) < 0) in vli_mod_inv() 1032 vli_add(u, u, mod, ndigits); in vli_mod_inv() 1034 vli_sub(u, u, v, ndigits); in vli_mod_inv() [all …]
|
D | gcm.c | 74 } 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()
|
D | fcrypt.c | 225 union lc4 { __be32 l; u8 c[4]; } u; \ 226 u.l = sched ^ R; \ 227 L ^= sbox0[u.c[0]] ^ sbox1[u.c[1]] ^ sbox2[u.c[2]] ^ sbox3[u.c[3]]; \
|
D | drbg.c | 985 } 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()
|