Home
last modified time | relevance | path

Searched refs:areq_ctx (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c55 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 Dauthenc.c115 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 …]