Home
last modified time | relevance | path

Searched refs:ahreq (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/crypto/
Dauthenc.c119 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() local
124 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done()
140 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local
147 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
148 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv()
150 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv()
153 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv()
236 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local
240 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
243 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
[all …]
Dauthencesn.c127 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local
145 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
146 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
147 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv()
150 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv()
272 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local
306 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
307 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()
308 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt()
311 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
Dgcm.c72 struct ahash_request ahreq; member
208 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local
210 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update()
211 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
213 return crypto_ahash_update(ahreq); in gcm_hash_update()
226 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local
234 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len()
235 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
238 return crypto_ahash_finup(ahreq); in gcm_hash_len()
399 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local
[all …]
Dccm.c48 struct ahash_request ahreq; member
174 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local
199 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
200 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth()
201 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
202 err = crypto_ahash_init(ahreq); in crypto_ccm_auth()
205 err = crypto_ahash_update(ahreq); in crypto_ccm_auth()
221 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth()
222 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()