Home
last modified time | relevance | path

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

/linux/crypto/
A Dauthenc.c124 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done()
147 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
148 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv()
150 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv()
153 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv()
241 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
246 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
294 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt()
295 ahash_request_set_crypt(ahreq, req->src, hash, in crypto_authenc_decrypt()
297 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_decrypt()
[all …]
A Dauthencesn.c128 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local
146 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
147 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
148 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv()
151 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv()
275 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local
309 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
310 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()
311 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt()
314 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
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
235 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
238 return crypto_ahash_finup(ahreq); in gcm_hash_len()
401 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local
404 ahash_request_set_tfm(ahreq, ctx->ghash); in gcm_hash()
[all …]
A Dccm.c48 struct ahash_request ahreq; member
174 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local
199 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
200 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth()
201 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
202 err = crypto_ahash_init(ahreq); in crypto_ccm_auth()
205 err = crypto_ahash_update(ahreq); in crypto_ccm_auth()
221 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
222 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()

Completed in 28 milliseconds