/kernel/linux/linux-5.10/net/mac80211/ |
D | aead_api.c | 23 struct aead_request *aead_req; in aead_encrypt() local 24 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_encrypt() 28 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_encrypt() 29 if (!aead_req) in aead_encrypt() 32 __aad = (u8 *)aead_req + reqsize; in aead_encrypt() 40 aead_request_set_tfm(aead_req, tfm); in aead_encrypt() 41 aead_request_set_crypt(aead_req, sg, sg, data_len, b_0); in aead_encrypt() 42 aead_request_set_ad(aead_req, sg[0].length); in aead_encrypt() 44 ret = crypto_aead_encrypt(aead_req); in aead_encrypt() 45 kfree_sensitive(aead_req); in aead_encrypt() [all …]
|
D | aes_gmac.c | 22 struct aead_request *aead_req; in ieee80211_aes_gmac() local 23 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in ieee80211_aes_gmac() 30 aead_req = kzalloc(reqsize + GMAC_MIC_LEN + GMAC_AAD_LEN, GFP_ATOMIC); in ieee80211_aes_gmac() 31 if (!aead_req) in ieee80211_aes_gmac() 34 zero = (u8 *)aead_req + reqsize; in ieee80211_aes_gmac() 59 aead_request_set_tfm(aead_req, tfm); in ieee80211_aes_gmac() 60 aead_request_set_crypt(aead_req, sg, sg, 0, iv); in ieee80211_aes_gmac() 61 aead_request_set_ad(aead_req, GMAC_AAD_LEN + data_len); in ieee80211_aes_gmac() 63 ret = crypto_aead_encrypt(aead_req); in ieee80211_aes_gmac() 64 kfree_sensitive(aead_req); in ieee80211_aes_gmac()
|
/kernel/linux/linux-5.10/net/tls/ |
D | tls_device_fallback.c | 48 static int tls_enc_record(struct aead_request *aead_req, in tls_enc_record() argument 113 aead_request_set_crypt(aead_req, sg_in, sg_out, len, iv); in tls_enc_record() 115 rc = crypto_aead_encrypt(aead_req); in tls_enc_record() 120 static void tls_init_aead_request(struct aead_request *aead_req, in tls_init_aead_request() argument 123 aead_request_set_tfm(aead_req, aead); in tls_init_aead_request() 124 aead_request_set_ad(aead_req, TLS_AAD_SPACE_SIZE); in tls_init_aead_request() 132 struct aead_request *aead_req; in tls_alloc_aead_request() local 134 aead_req = kzalloc(req_size, flags); in tls_alloc_aead_request() 135 if (aead_req) in tls_alloc_aead_request() 136 tls_init_aead_request(aead_req, aead); in tls_alloc_aead_request() [all …]
|
D | tls_sw.c | 163 struct aead_request *aead_req = (struct aead_request *)req; in tls_decrypt_done() local 164 struct scatterlist *sgout = aead_req->dst; in tls_decrypt_done() 165 struct scatterlist *sgin = aead_req->src; in tls_decrypt_done() 217 kfree(aead_req); in tls_decrypt_done() 233 struct aead_request *aead_req, in tls_do_decryption() argument 241 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption() 242 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption() 243 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption() 255 aead_request_set_callback(aead_req, in tls_do_decryption() 260 aead_request_set_callback(aead_req, in tls_do_decryption() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 127 struct aead_request *aead_req = req->aead_req.aead_req; in sec_aead_verify() local 128 struct crypto_aead *tfm = crypto_aead_reqtfm(aead_req); in sec_aead_verify() 130 u8 *mac_out = req->aead_req.out_mac; in sec_aead_verify() 132 struct scatterlist *sgl = aead_req->src; in sec_aead_verify() 136 aead_req->cryptlen + aead_req->assoclen - in sec_aead_verify() 689 struct aead_request *aead_req = req->aead_req.aead_req; in GEN_SEC_SETKEY_FUNC() local 697 copy_size = aead_req->cryptlen + aead_req->assoclen; in GEN_SEC_SETKEY_FUNC() 725 struct aead_request *aead_req = req->aead_req.aead_req; in sec_cipher_pbuf_unmap() local 733 copy_size = c_req->c_len + aead_req->assoclen; in sec_cipher_pbuf_unmap() 750 struct sec_aead_req *a_req = &req->aead_req; in sec_cipher_map() [all …]
|
D | sec.h | 38 struct aead_request *aead_req; member 48 struct sec_aead_req aead_req; member
|
/kernel/linux/linux-5.10/drivers/crypto/ |
D | omap-aes-gcm.c | 31 struct aead_request *req = dd->aead_req; in omap_aes_gcm_finish_req() 50 rctx = aead_request_ctx(dd->aead_req); in omap_aes_gcm_done_task() 61 dd->aead_req->assoclen, dd->total, in omap_aes_gcm_done_task() 66 dd->aead_req->dst, in omap_aes_gcm_done_task() 67 dd->total + dd->aead_req->assoclen, in omap_aes_gcm_done_task() 190 scatterwalk_map_and_copy(tag, dd->aead_req->src, in omap_aes_gcm_dma_out_callback() 191 dd->total + dd->aead_req->assoclen, in omap_aes_gcm_dma_out_callback() 194 rctx = aead_request_ctx(dd->aead_req); in omap_aes_gcm_dma_out_callback() 224 dd->aead_req = req; in omap_aes_gcm_prepare_req()
|
D | picoxcell_crypto.c | 508 static int spacc_aead_need_fallback(struct aead_request *aead_req) in spacc_aead_need_fallback() argument 510 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in spacc_aead_need_fallback() 554 struct aead_request *aead_req = in spacc_aead_submit() local 556 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in spacc_aead_submit() 566 ctx->cipher_key_len, aead_req->iv, crypto_aead_ivsize(aead), in spacc_aead_submit() 574 assoc_len = aead_req->assoclen; in spacc_aead_submit() 575 proc_len = aead_req->cryptlen + assoc_len; in spacc_aead_submit()
|
D | omap-aes.h | 171 struct aead_request *aead_req; member
|
D | ixp4xx_crypto.c | 142 struct aead_request *aead_req; member 346 struct aead_request *req = crypt->data.aead_req; in finish_scattered_hmac() 372 struct aead_request *req = crypt->data.aead_req; in one_packet() 1030 crypt->data.aead_req = req; in aead_perform()
|
D | omap-aes.c | 148 if ((dd->flags & (FLAGS_GCM)) && dd->aead_req->iv) { in omap_aes_write_ctrl() 149 rctx = aead_request_ctx(dd->aead_req); in omap_aes_write_ctrl()
|
/kernel/linux/linux-5.10/crypto/ |
D | algif_aead.c | 280 aead_request_set_crypt(&areq->cra_u.aead_req, rsgl_src, in _aead_recvmsg() 282 aead_request_set_ad(&areq->cra_u.aead_req, ctx->aead_assoclen); in _aead_recvmsg() 283 aead_request_set_tfm(&areq->cra_u.aead_req, tfm); in _aead_recvmsg() 293 aead_request_set_callback(&areq->cra_u.aead_req, in _aead_recvmsg() 296 err = ctx->enc ? crypto_aead_encrypt(&areq->cra_u.aead_req) : in _aead_recvmsg() 297 crypto_aead_decrypt(&areq->cra_u.aead_req); in _aead_recvmsg() 306 aead_request_set_callback(&areq->cra_u.aead_req, in _aead_recvmsg() 311 crypto_aead_encrypt(&areq->cra_u.aead_req) : in _aead_recvmsg() 312 crypto_aead_decrypt(&areq->cra_u.aead_req), in _aead_recvmsg()
|
D | essiv.c | 62 struct aead_request aead_req; member 182 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() 325 BUILD_BUG_ON(offsetofend(struct essiv_aead_request_ctx, aead_req) != in essiv_aead_init_tfm() 332 subreq_size = sizeof_field(struct essiv_aead_request_ctx, aead_req) + in essiv_aead_init_tfm() 335 tctx->ivoffset = offsetof(struct essiv_aead_request_ctx, aead_req) + in essiv_aead_init_tfm()
|
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
D | qat_crypto.h | 41 struct aead_request *aead_req; member
|
D | qat_algs.c | 787 struct aead_request *areq = qat_req->aead_req; in qat_aead_alg_callback() 851 qat_req->aead_req = areq; in qat_alg_aead_dec() 896 qat_req->aead_req = areq; in qat_alg_aead_enc()
|
/kernel/linux/linux-5.10/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 575 struct aead_request *aead_req = container_of(pd_uinfo->async_req, in crypto4xx_aead_done() local 579 crypto_aead_reqtfm(aead_req)); in crypto4xx_aead_done() 597 scatterwalk_map_and_copy(icv, dst, aead_req->cryptlen, in crypto4xx_aead_done() 601 scatterwalk_map_and_copy(icv, aead_req->src, in crypto4xx_aead_done() 602 aead_req->assoclen + aead_req->cryptlen - in crypto4xx_aead_done() 630 aead_request_complete(aead_req, -EINPROGRESS); in crypto4xx_aead_done() 632 aead_request_complete(aead_req, err); in crypto4xx_aead_done()
|
/kernel/linux/linux-5.10/include/crypto/ |
D | if_alg.h | 111 struct aead_request aead_req; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | virtio_crypto.h | 265 struct virtio_crypto_aead_data_req aead_req; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | virtio_crypto.h | 311 struct virtio_crypto_aead_data_req aead_req; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | virtio_crypto.h | 401 struct virtio_crypto_aead_data_req aead_req; member
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
D | caamalg_qi.c | 916 struct aead_request *aead_req = drv_req->app_ctx; in aead_done() local 917 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in aead_done() 927 aead_unmap(qidev, edesc, aead_req); in aead_done() 929 aead_request_complete(aead_req, ecode); in aead_done()
|
/kernel/linux/linux-5.10/include/net/ |
D | tls.h | 117 struct aead_request aead_req; member
|
/kernel/linux/linux-5.10/drivers/crypto/chelsio/ |
D | chcr_algo.c | 723 struct aead_request *aead_req = in get_qidxs() local 725 struct chcr_aead_reqctx *reqctx = aead_request_ctx(aead_req); in get_qidxs()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0016_linux_drivers_crypto.patch | 1083 + struct aead_request *aead_req = drv_req->app_ctx; 1084 + struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); 1094 + tls_unmap(qidev, edesc, aead_req); 1096 + aead_request_complete(aead_req, ecode);
|