Searched refs:ahreq (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/crypto/ |
D | authenc.c | 126 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() local 131 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done() 147 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local 154 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv() 155 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv() 157 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv() 160 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv() 244 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local 248 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 251 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail() [all …]
|
D | authencesn.c | 143 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local 161 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv() 162 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv() 163 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv() 166 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv() 290 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local 324 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt() 325 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt() 326 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt() 329 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
|
D | gcm.c | 76 struct ahash_request ahreq; member 230 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local 232 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update() 233 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update() 235 return crypto_ahash_update(ahreq); in gcm_hash_update() 248 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local 256 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len() 257 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len() 260 return crypto_ahash_finup(ahreq); in gcm_hash_len() 423 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local [all …]
|
D | ccm.c | 184 AHASH_REQUEST_ON_STACK(ahreq, ctx->mac); in crypto_ccm_auth() 209 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth() 210 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth() 211 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth() 212 err = crypto_ahash_init(ahreq); in crypto_ccm_auth() 215 err = crypto_ahash_update(ahreq); in crypto_ccm_auth() 231 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth() 232 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()
|