Home
last modified time | relevance | path

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

/linux-4.4.14/crypto/
Dauthenc.c125 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() local
130 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done()
146 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local
153 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
154 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv()
156 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv()
159 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv()
242 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local
246 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
249 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
[all …]
Dauthencesn.c142 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local
160 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
161 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
162 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv()
165 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv()
281 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local
315 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
316 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()
317 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt()
320 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
Dgcm.c76 struct ahash_request ahreq; member
251 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local
253 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update()
254 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
256 return crypto_ahash_update(ahreq); in gcm_hash_update()
269 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local
277 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len()
278 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
281 return crypto_ahash_finup(ahreq); in gcm_hash_len()
444 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local
[all …]