Home
last modified time | relevance | path

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

/linux/crypto/
H A Dauthenc.c119 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() local
124 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done()
140 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local
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()
233 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local
237 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
240 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
[all …]
H A Dauthencesn.c123 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()
H A Dgcm.c72 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
234 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len()
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
[all …]
H A Dccm.c48 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()