Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/ccree/
Dcc_buffer_mgr.c66 struct aead_req_ctx *areq_ctx = aead_request_ctx(req); in cc_copy_mac() local
68 u32 skip = areq_ctx->assoclen + req->cryptlen; in cc_copy_mac()
70 if (areq_ctx->is_gcm4543) in cc_copy_mac()
73 cc_copy_sg_portion(dev, areq_ctx->backup_mac, req->src, in cc_copy_mac()
74 (skip - areq_ctx->req_authsize), skip, dir); in cc_copy_mac()
328 cc_set_aead_conf_buf(struct device *dev, struct aead_req_ctx *areq_ctx, in cc_set_aead_conf_buf() argument
334 sg_init_one(&areq_ctx->ccm_adata_sg, config_data, in cc_set_aead_conf_buf()
335 AES_BLOCK_SIZE + areq_ctx->ccm_hdr_size); in cc_set_aead_conf_buf()
336 if (dma_map_sg(dev, &areq_ctx->ccm_adata_sg, 1, DMA_TO_DEVICE) != 1) { in cc_set_aead_conf_buf()
341 &sg_dma_address(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf()
[all …]
Dcc_aead.c215 struct aead_req_ctx *areq_ctx = aead_request_ctx(areq); in cc_aead_complete() local
226 areq->iv = areq_ctx->backup_iv; in cc_aead_complete()
231 if (areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT) { in cc_aead_complete()
232 if (memcmp(areq_ctx->mac_buf, areq_ctx->icv_virt_addr, in cc_aead_complete()
244 } else if (areq_ctx->is_icv_fragmented) { in cc_aead_complete()
245 u32 skip = areq->cryptlen + areq_ctx->dst_offset; in cc_aead_complete()
247 cc_copy_sg_portion(dev, areq_ctx->mac_buf, areq_ctx->dst_sgl, in cc_aead_complete()
736 struct aead_req_ctx *areq_ctx = aead_request_ctx(areq); in cc_set_assoc_desc() local
737 enum cc_req_dma_buf_type assoc_dma_type = areq_ctx->assoc_buff_type; in cc_set_assoc_desc()
746 areq_ctx->assoclen, NS_BIT); in cc_set_assoc_desc()
[all …]
Dcc_hash.c96 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, struct cc_hash_ctx *ctx,
2214 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, in cc_set_desc() argument
2222 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_DLLI) { in cc_set_desc()
2225 sg_dma_address(areq_ctx->curr_sg), in cc_set_desc()
2226 areq_ctx->curr_sg->length, NS_BIT); in cc_set_desc()
2230 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_NULL) { in cc_set_desc()
2238 areq_ctx->mlli_params.mlli_dma_addr, in cc_set_desc()
2239 areq_ctx->mlli_params.mlli_len, NS_BIT); in cc_set_desc()
2241 areq_ctx->mlli_params.mlli_len); in cc_set_desc()
2248 areq_ctx->mlli_nents, NS_BIT); in cc_set_desc()
/Linux-v5.4/crypto/
Dauthencesn.c101 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv_tail() local
103 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv_tail()
133 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv() local
136 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv()
138 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv()
153 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_genicv()
154 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_genicv()
194 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_encrypt() local
196 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt()
204 sg_init_table(areq_ctx->src, 2); in crypto_authenc_esn_encrypt()
[all …]
Dauthenc.c128 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_done() local
129 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done()
149 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_genicv() local
150 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv()
151 u8 *hash = areq_ctx->tail; in crypto_authenc_genicv()
208 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_encrypt() local
211 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt()
216 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt()
224 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt()
246 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_decrypt_tail() local
[all …]