Searched refs:areq_ctx (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/crypto/ccree/ |
| H A D | cc_buffer_mgr.c | 55 struct aead_req_ctx *areq_ctx = aead_request_ctx_dma(req); in cc_copy_mac() local 58 cc_copy_sg_portion(dev, areq_ctx->backup_mac, req->src, in cc_copy_mac() 59 (skip - areq_ctx->req_authsize), skip, dir); in cc_copy_mac() 289 cc_set_aead_conf_buf(struct device *dev, struct aead_req_ctx *areq_ctx, in cc_set_aead_conf_buf() argument 295 sg_init_one(&areq_ctx->ccm_adata_sg, config_data, in cc_set_aead_conf_buf() 296 AES_BLOCK_SIZE + areq_ctx->ccm_hdr_size); in cc_set_aead_conf_buf() 297 if (dma_map_sg(dev, &areq_ctx->ccm_adata_sg, 1, DMA_TO_DEVICE) != 1) { in cc_set_aead_conf_buf() 302 &sg_dma_address(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf() 303 sg_page(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf() 304 sg_virt(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf() [all …]
|
| /linux/crypto/ |
| H A D | authencesn.c | 88 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv_tail() local 89 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_genicv_tail() 117 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv() local 120 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_genicv() 121 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() 136 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_genicv() 137 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_genicv() 162 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_encrypt() local 164 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() 175 sg_init_table(areq_ctx->src, 2); in crypto_authenc_esn_encrypt() [all …]
|
| H A D | authenc.c | 115 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_finish() local 116 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_finish() 152 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_genicv() local 153 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() 155 u8 *hash = areq_ctx->tail; in crypto_authenc_genicv() 193 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_encrypt() local 196 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() 201 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt() 206 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt() 235 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_decrypt_tail() local [all …]
|