Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/crypto/ccree/
Dcc_buffer_mgr.c66 struct aead_req_ctx *areq_ctx = aead_request_ctx(req); in cc_copy_mac() local
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()
397 cc_set_aead_conf_buf(struct device *dev, struct aead_req_ctx *areq_ctx, in cc_set_aead_conf_buf() argument
403 sg_init_one(&areq_ctx->ccm_adata_sg, config_data, in cc_set_aead_conf_buf()
404 AES_BLOCK_SIZE + areq_ctx->ccm_hdr_size); in cc_set_aead_conf_buf()
405 if (dma_map_sg(dev, &areq_ctx->ccm_adata_sg, 1, DMA_TO_DEVICE) != 1) { in cc_set_aead_conf_buf()
410 &sg_dma_address(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf()
411 sg_page(&areq_ctx->ccm_adata_sg), in cc_set_aead_conf_buf()
[all …]
Dcc_aead.c210 struct aead_req_ctx *areq_ctx = aead_request_ctx(areq); in cc_aead_complete() local
217 areq->iv = areq_ctx->backup_iv; in cc_aead_complete()
222 if (areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT) { in cc_aead_complete()
223 if (memcmp(areq_ctx->mac_buf, areq_ctx->icv_virt_addr, in cc_aead_complete()
230 cc_zero_sgl(areq->dst, areq_ctx->cryptlen); in cc_aead_complete()
234 if (areq_ctx->is_icv_fragmented) { in cc_aead_complete()
235 u32 skip = areq->cryptlen + areq_ctx->dst_offset; in cc_aead_complete()
237 cc_copy_sg_portion(dev, areq_ctx->mac_buf, in cc_aead_complete()
238 areq_ctx->dst_sgl, skip, in cc_aead_complete()
246 if (areq_ctx->backup_giv) { in cc_aead_complete()
[all …]
Dcc_hash.c89 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, struct cc_hash_ctx *ctx,
2106 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, in cc_set_desc() argument
2114 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_DLLI) { in cc_set_desc()
2117 sg_dma_address(areq_ctx->curr_sg), in cc_set_desc()
2118 areq_ctx->curr_sg->length, NS_BIT); in cc_set_desc()
2122 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_NULL) { in cc_set_desc()
2130 areq_ctx->mlli_params.mlli_dma_addr, in cc_set_desc()
2131 areq_ctx->mlli_params.mlli_len, NS_BIT); in cc_set_desc()
2133 areq_ctx->mlli_params.mlli_len); in cc_set_desc()
2140 areq_ctx->mlli_nents, NS_BIT); in cc_set_desc()
/Linux-v4.19/crypto/
Dauthencesn.c106 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv_tail() local
108 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv_tail()
138 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv() local
141 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv()
143 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv()
158 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_genicv()
159 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_genicv()
199 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_encrypt() local
201 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt()
209 sg_init_table(areq_ctx->src, 2); in crypto_authenc_esn_encrypt()
[all …]
Dauthenc.c125 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_done() local
126 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done()
146 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_genicv() local
147 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv()
148 u8 *hash = areq_ctx->tail; in crypto_authenc_genicv()
205 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_encrypt() local
208 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt()
213 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt()
221 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt()
243 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_decrypt_tail() local
[all …]