Searched refs:ahreq (Results 1 – 3 of 3) 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 | authencesn.c | 121 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local 139 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv() 140 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv() 141 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv() 144 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv() 251 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local 284 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt() 285 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt() 286 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt() 289 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
|
| H A D | gcm.c | 70 struct ahash_request ahreq; member 204 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local 206 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update() 207 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update() 209 return crypto_ahash_update(ahreq); in gcm_hash_update() 222 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local 230 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len() 231 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len() 234 return crypto_ahash_finup(ahreq); in gcm_hash_len() 395 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local [all …]
|