Searched refs:areq_ctx (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/crypto/ccree/ |
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 …]
|
D | cc_aead.c | 211 struct aead_req_ctx *areq_ctx = aead_request_ctx_dma(areq); in cc_aead_complete() local 222 areq->iv = areq_ctx->backup_iv; in cc_aead_complete() 227 if (areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT) { in cc_aead_complete() 228 if (memcmp(areq_ctx->mac_buf, areq_ctx->icv_virt_addr, in cc_aead_complete() 240 } else if (areq_ctx->is_icv_fragmented) { in cc_aead_complete() 241 u32 skip = areq->cryptlen + areq_ctx->dst_offset; in cc_aead_complete() 243 cc_copy_sg_portion(dev, areq_ctx->mac_buf, areq_ctx->dst_sgl, in cc_aead_complete() 726 struct aead_req_ctx *areq_ctx = aead_request_ctx_dma(areq); in cc_set_assoc_desc() local 727 enum cc_req_dma_buf_type assoc_dma_type = areq_ctx->assoc_buff_type; in cc_set_assoc_desc() 736 areq_ctx->assoclen, NS_BIT); in cc_set_assoc_desc() [all …]
|
D | cc_hash.c | 103 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, struct cc_hash_ctx *ctx, 2162 static void cc_set_desc(struct ahash_req_ctx *areq_ctx, in cc_set_desc() argument 2170 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_DLLI) { in cc_set_desc() 2173 sg_dma_address(areq_ctx->curr_sg), in cc_set_desc() 2174 areq_ctx->curr_sg->length, NS_BIT); in cc_set_desc() 2178 if (areq_ctx->data_dma_buf_type == CC_DMA_BUF_NULL) { in cc_set_desc() 2186 areq_ctx->mlli_params.mlli_dma_addr, in cc_set_desc() 2187 areq_ctx->mlli_params.mlli_len, NS_BIT); in cc_set_desc() 2189 areq_ctx->mlli_params.mlli_len); in cc_set_desc() 2196 areq_ctx->mlli_nents, NS_BIT); in cc_set_desc()
|
/linux-6.12.1/crypto/ |
D | authencesn.c | 90 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv_tail() local 91 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_genicv_tail() 119 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv() local 122 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_genicv() 123 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() 138 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_genicv() 139 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_genicv() 178 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_encrypt() local 180 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() 188 sg_init_table(areq_ctx->src, 2); in crypto_authenc_esn_encrypt() [all …]
|
D | authenc.c | 118 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_done() local 119 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done() 139 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_genicv() local 140 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() 141 u8 *hash = areq_ctx->tail; in crypto_authenc_genicv() 194 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_encrypt() local 197 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() 202 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt() 210 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt() 232 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_decrypt_tail() local [all …]
|