Home
last modified time | relevance | path

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

/Linux-v5.4/crypto/
Dauthenc.c129 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() local
134 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done()
150 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local
157 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
158 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv()
160 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv()
163 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv()
247 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local
251 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
254 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
[all …]
Dauthencesn.c138 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local
156 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
157 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
158 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv()
161 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv()
285 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local
319 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
320 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()
321 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt()
324 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
Dgcm.c73 struct ahash_request ahreq; member
214 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local
216 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update()
217 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
219 return crypto_ahash_update(ahreq); in gcm_hash_update()
232 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local
240 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len()
241 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
244 return crypto_ahash_finup(ahreq); in gcm_hash_len()
407 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local
[all …]
Dccm.c49 struct ahash_request ahreq; member
182 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local
207 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
208 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth()
209 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
210 err = crypto_ahash_init(ahreq); in crypto_ccm_auth()
213 err = crypto_ahash_update(ahreq); in crypto_ccm_auth()
229 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
230 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()