/kernel/linux/linux-5.10/crypto/ |
H A D | authenc.c | 119 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 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() 237 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local 241 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 244 scatterwalk_map_and_copy(ihash, req->src, ahreq in crypto_authenc_decrypt_tail() 287 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); crypto_authenc_decrypt() local [all...] |
H A D | authencesn.c | 128 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() [all...] |
H 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 234 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len() 235 ahash_request_set_crypt(ahreq, in gcm_hash_len() 401 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash() local [all...] |
H A D | ccm.c | 47 struct ahash_request ahreq; member 173 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local 198 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth() 199 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth() 200 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth() 201 err = crypto_ahash_init(ahreq); in crypto_ccm_auth() 204 err = crypto_ahash_update(ahreq); in crypto_ccm_auth() 220 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth() 221 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | authenc.c | 119 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 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() 236 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local 240 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 243 scatterwalk_map_and_copy(ihash, req->src, ahreq in crypto_authenc_decrypt_tail() 285 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); crypto_authenc_decrypt() local [all...] |
H A D | authencesn.c | 127 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local 145 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv() 146 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv() 147 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv() 150 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv() 272 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local 306 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt() 307 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt() 308 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt() 311 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt() [all...] |
H 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 234 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len() 235 ahash_request_set_crypt(ahreq, in gcm_hash_len() 399 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash() local [all...] |
H A D | ccm.c | 48 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, odata, cryptlen); in crypto_ccm_auth() 222 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth() [all...] |