Home
last modified time | relevance | path

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

/crypto/
Dauthencesn.c106 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv_tail() local
113 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 0); in crypto_authenc_esn_genicv_tail()
116 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail()
140 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv() local
151 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 1); in crypto_authenc_esn_genicv()
157 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
199 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_encrypt() local
205 src = scatterwalk_ffwd(areq_ctx->src, req->src, assoclen); in crypto_authenc_esn_encrypt()
209 err = crypto_authenc_esn_copy(req, assoclen); in crypto_authenc_esn_encrypt()
214 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, assoclen); in crypto_authenc_esn_encrypt()
[all …]
Dchacha20poly1305.c40 __le64 assoclen; member
63 unsigned int assoclen; member
103 req->assoclen + rctx->cryptlen, in poly_verify_tag()
115 req->assoclen + rctx->cryptlen, in poly_copy_tag()
138 src = scatterwalk_ffwd(rctx->src, req->src, req->assoclen); in chacha_decrypt()
141 dst = scatterwalk_ffwd(rctx->dst, req->dst, req->assoclen); in chacha_decrypt()
179 preq->tail.assoclen = cpu_to_le64(rctx->assoclen); in poly_tail()
241 crypt = scatterwalk_ffwd(rctx->src, crypt, req->assoclen); in poly_cipher()
268 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_adpad()
299 ahash_request_set_crypt(&preq->req, req->src, NULL, rctx->assoclen); in poly_ad()
[all …]
Daegis128-core.c283 unsigned int assoclen) in crypto_aegis128_process_ad() argument
290 while (assoclen != 0) { in crypto_aegis128_process_ad()
291 unsigned int size = scatterwalk_clamp(&walk, assoclen); in crypto_aegis128_process_ad()
314 assoclen -= size; in crypto_aegis128_process_ad()
317 scatterwalk_done(&walk, 0, assoclen); in crypto_aegis128_process_ad()
349 u64 assoclen, u64 cryptlen) in crypto_aegis128_final() argument
351 u64 assocbits = assoclen * 8; in crypto_aegis128_final()
403 crypto_aegis128_process_ad(&state, req->src, req->assoclen); in crypto_aegis128_crypt()
405 crypto_aegis128_final(&state, tag_xor, req->assoclen, cryptlen); in crypto_aegis128_crypt()
427 scatterwalk_map_and_copy(tag.bytes, req->dst, req->assoclen + cryptlen, in crypto_aegis128_encrypt()
[all …]
Dechainiv.c51 req->assoclen + req->cryptlen, in echainiv_encrypt()
63 aead_request_set_ad(subreq, req->assoclen); in echainiv_encrypt()
69 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in echainiv_encrypt()
105 aead_request_set_ad(subreq, req->assoclen + ivsize); in echainiv_decrypt()
107 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in echainiv_decrypt()
Dccm.c151 if (req->assoclen) in format_input()
183 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
198 if (assoclen) { in crypto_ccm_auth()
199 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
209 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
218 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
244 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
278 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
285 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
659 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
[all …]
Dseqiv.c77 req->assoclen + req->cryptlen, in seqiv_aead_encrypt()
100 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt()
103 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in seqiv_aead_encrypt()
131 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_decrypt()
133 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in seqiv_aead_decrypt()
Dgcm.c170 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
177 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_gcm_init_common()
236 lengths.a = cpu_to_be64(req->assoclen * 8); in gcm_hash_len()
355 remain = gcm_remain(req->assoclen); in gcm_hash_assoc_continue()
381 if (req->assoclen) in gcm_hash_init_continue()
383 req->src, req->assoclen, flags) ?: in gcm_hash_init_continue()
425 req->assoclen + req->cryptlen, in gcm_enc_copy_hash()
482 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
772 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
778 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
[all …]
Dauthenc.c135 req->assoclen + req->cryptlen, in authenc_geniv_ahash_done()
159 req->assoclen + req->cryptlen); in crypto_authenc_genicv()
167 scatterwalk_map_and_copy(hash, req->dst, req->assoclen + req->cryptlen, in crypto_authenc_genicv()
196 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc()
216 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt()
224 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt()
259 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_decrypt_tail()
263 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_decrypt_tail()
306 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
Dessiv.c215 req->assoclen - crypto_aead_ivsize(tfm), in essiv_aead_crypt()
220 int ssize = req->assoclen - ivsize; in essiv_aead_crypt()
252 sg = scatterwalk_ffwd(rctx->sg + 2, req->src, req->assoclen); in essiv_aead_crypt()
260 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt()
Dpcrypt.c104 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_encrypt()
146 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_decrypt()
Dskcipher.c528 scatterwalk_copychunks(NULL, &walk->in, req->assoclen, 2); in skcipher_walk_aead_common()
529 scatterwalk_copychunks(NULL, &walk->out, req->assoclen, 2); in skcipher_walk_aead_common()
Dtestmgr.c1933 req->assoclen != vec->alen || in test_aead_vec_cfg()
1945 if (req->assoclen != vec->alen) in test_aead_vec_cfg()