Searched refs:ahreq (Results 1 – 4 of 4) sorted by relevance
| /linux/crypto/ |
| A D | authenc.c | 124 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done() 144 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv() 145 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv() 147 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv() 150 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv() 237 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 242 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail() 286 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt() 287 ahash_request_set_crypt(ahreq, req->src, hash, in crypto_authenc_decrypt() 289 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_decrypt() [all …]
|
| A D | authencesn.c | 123 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local 141 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv() 142 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv() 143 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv() 146 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv() 267 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local 300 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt() 301 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt() 302 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt() 305 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
|
| A D | gcm.c | 72 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 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 402 ahash_request_set_tfm(ahreq, ctx->ghash); in gcm_hash() [all …]
|
| A D | ccm.c | 48 struct ahash_request ahreq; member 175 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local 200 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth() 201 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth() 202 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth() 203 err = crypto_ahash_init(ahreq); in crypto_ccm_auth() 206 err = crypto_ahash_update(ahreq); in crypto_ccm_auth() 222 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth() 223 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()
|
Completed in 13 milliseconds