Searched refs:ahreq (Results 1 – 2 of 2) sorted by relevance
| /linux/crypto/ |
| H A D | authenc.c | 116 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_finish() local 118 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_finish() 153 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local 158 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv() 159 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv() 161 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv() 165 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 241 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 244 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail() [all …]
|
| H A D | ccm.c | 49 struct ahash_request ahreq; member 171 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local 196 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth() 197 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth() 198 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth() 199 err = crypto_ahash_init(ahreq); in crypto_ccm_auth() 202 err = crypto_ahash_update(ahreq); in crypto_ccm_auth() 218 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth() 219 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()
|