Home
last modified time | relevance | path

Searched refs:assoclen (Results 1 – 18 of 18) sorted by relevance

/crypto/
A Dauthencesn.c91 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv_tail() local
123 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv() local
140 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
167 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_encrypt() local
173 src = scatterwalk_ffwd(areq_ctx->src, req->src, assoclen); in crypto_authenc_esn_encrypt()
177 memcpy_sglist(req->dst, req->src, assoclen); in crypto_authenc_esn_encrypt()
179 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, assoclen); in crypto_authenc_esn_encrypt()
206 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_decrypt_tail() local
225 dst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen); in crypto_authenc_esn_decrypt_tail()
252 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_decrypt() local
[all …]
A Dchacha20poly1305.c48 unsigned int assoclen; member
87 req->assoclen + rctx->cryptlen, in poly_verify_tag()
140 __le64 assoclen; in poly_hash() member
150 memcpy_sglist(req->dst, sg, req->assoclen); in poly_hash()
158 total = rctx->assoclen; in poly_hash()
167 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_hash()
170 scatterwalk_skip(&walk, req->assoclen - rctx->assoclen); in poly_hash()
184 tail.assoclen = cpu_to_le64(rctx->assoclen); in poly_hash()
210 rctx->assoclen = req->assoclen; in poly_genkey()
213 if (rctx->assoclen < 8) in poly_genkey()
[all …]
A Daegis128-core.c278 unsigned int assoclen, in crypto_aegis128_process_ad() argument
286 while (assoclen != 0) { in crypto_aegis128_process_ad()
287 unsigned int size = scatterwalk_next(&walk, assoclen); in crypto_aegis128_process_ad()
309 assoclen -= size; in crypto_aegis128_process_ad()
344 u64 assoclen, u64 cryptlen) in crypto_aegis128_final() argument
346 u64 assocbits = assoclen * 8; in crypto_aegis128_final()
398 crypto_aegis128_process_ad(&state, req->src, req->assoclen, false); in crypto_aegis128_encrypt_generic()
401 crypto_aegis128_final(&state, &tag, req->assoclen, cryptlen); in crypto_aegis128_encrypt_generic()
427 crypto_aegis128_final(&state, &tag, req->assoclen, cryptlen); in crypto_aegis128_decrypt_generic()
462 crypto_aegis128_process_ad(&state, req->src, req->assoclen, true); in crypto_aegis128_encrypt_simd()
[all …]
A Dechainiv.c45 req->assoclen + req->cryptlen); in echainiv_encrypt()
51 aead_request_set_ad(subreq, req->assoclen); in echainiv_encrypt()
57 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in echainiv_encrypt()
93 aead_request_set_ad(subreq, req->assoclen + ivsize); in echainiv_decrypt()
95 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in echainiv_decrypt()
A Dccm.c140 if (req->assoclen) in format_input()
172 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
187 if (assoclen) { in crypto_ccm_auth()
188 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
207 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
233 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
618 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
625 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
637 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
644 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_encrypt()
[all …]
A Dseqiv.c69 req->assoclen + req->cryptlen); in seqiv_aead_encrypt()
86 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt()
89 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in seqiv_aead_encrypt()
117 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_decrypt()
119 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in seqiv_aead_decrypt()
A Dauthenc.c123 req->assoclen + req->cryptlen, in authenc_geniv_ahash_done()
144 req->assoclen + req->cryptlen); in crypto_authenc_genicv()
152 scatterwalk_map_and_copy(hash, req->dst, req->assoclen + req->cryptlen, in crypto_authenc_genicv()
185 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt()
189 memcpy_sglist(req->dst, req->src, req->assoclen); in crypto_authenc_encrypt()
190 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt()
225 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_decrypt_tail()
229 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_decrypt_tail()
268 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
A Dgcm.c226 lengths.a = cpu_to_be64(req->assoclen * 8); in gcm_hash_len()
343 remain = gcm_remain(req->assoclen); in gcm_hash_assoc_continue()
369 if (req->assoclen) in gcm_hash_init_continue()
371 req->src, req->assoclen, flags) ?: in gcm_hash_init_continue()
413 req->assoclen + req->cryptlen, in gcm_enc_copy_hash()
470 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
750 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt()
759 err = crypto_ipsec_check_assoclen(req->assoclen); in crypto_rfc4106_encrypt()
772 err = crypto_ipsec_check_assoclen(req->assoclen); in crypto_rfc4106_decrypt()
953 return crypto_ipsec_check_assoclen(req->assoclen) ?: in crypto_rfc4543_encrypt()
[all …]
A Daegis128-neon.c57 unsigned int assoclen, in crypto_aegis128_final_simd() argument
64 ret = crypto_aegis128_final_neon(state, tag_xor, assoclen, cryptlen, in crypto_aegis128_final_simd()
A Dkrb5enc.c150 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in krb5enc_dispatch_encrypt()
154 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in krb5enc_dispatch_encrypt()
173 req->assoclen + req->cryptlen, in krb5enc_insert_checksum()
220 ahash_request_set_crypt(ahreq, req->src, hash, req->assoclen + req->cryptlen); in krb5enc_dispatch_encrypt_hash()
292 req->assoclen + req->cryptlen - authsize); in krb5enc_dispatch_decrypt_hash()
318 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in krb5enc_dispatch_decrypt()
322 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in krb5enc_dispatch_decrypt()
A Daegis-neon.h13 unsigned int assoclen,
A Dessiv.c202 req->assoclen - crypto_aead_ivsize(tfm), in essiv_aead_crypt()
207 int ssize = req->assoclen - ivsize; in essiv_aead_crypt()
239 sg = scatterwalk_ffwd(rctx->sg + 2, req->src, req->assoclen); in essiv_aead_crypt()
247 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt()
A Daegis128-neon-inner.c318 unsigned int assoclen, in crypto_aegis128_final_neon() argument
328 v = st.v[3] ^ (uint8x16_t)vcombine_u64(vmov_n_u64(8ULL * assoclen), in crypto_aegis128_final_neon()
A Daegis.h42 unsigned int assoclen,
A Dpcrypt.c115 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_encrypt()
166 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_decrypt()
A Dskcipher.c89 scatterwalk_start_at_pos(&walk->in, req->src, req->assoclen); in skcipher_walk_aead_common()
90 scatterwalk_start_at_pos(&walk->out, req->dst, req->assoclen); in skcipher_walk_aead_common()
A Dcryptd.c769 aead_request_set_ad(subreq, req->assoclen); in cryptd_aead_crypt()
A Dtestmgr.c2135 req->assoclen != vec->alen || in test_aead_vec_cfg()
2147 if (req->assoclen != vec->alen) in test_aead_vec_cfg()

Completed in 54 milliseconds