/linux-6.3-rc2/crypto/ |
A D | rsa-pkcs1pad.c | 208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete() 247 if (!req_ctx->in_buf) in pkcs1pad_encrypt() 256 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt() 264 akcipher_request_set_crypt(&req_ctx->child_req, req_ctx->in_sg, in pkcs1pad_encrypt() 352 if (!req_ctx->out_buf) in pkcs1pad_decrypt() 355 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt() 401 if (!req_ctx->in_buf) in pkcs1pad_sign() 413 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_sign() 421 akcipher_request_set_crypt(&req_ctx->child_req, req_ctx->in_sg, in pkcs1pad_sign() 542 if (!req_ctx->out_buf) in pkcs1pad_verify() [all …]
|
/linux-6.3-rc2/drivers/crypto/axis/ |
A D | artpec6_crypto.c | 1100 req_ctx->decrypt = 0; in artpec6_crypto_encrypt() 1145 req_ctx->decrypt = 1; in artpec6_crypto_decrypt() 1474 req_ctx->digcnt += req_ctx->partial_bytes; in artpec6_crypto_prepare_hash() 1490 req_ctx->digcnt = 0; in artpec6_crypto_prepare_hash() 1696 req_ctx->cipher_md = 0; in artpec6_crypto_prepare_crypto() 1860 req_ctx->cipher_md = 0; in artpec6_crypto_prepare_aead() 1881 if (req_ctx->decrypt) in artpec6_crypto_prepare_aead() 1888 if (req_ctx->decrypt) in artpec6_crypto_prepare_aead() 1905 if (req_ctx->decrypt) in artpec6_crypto_prepare_aead() 1970 if (req_ctx->decrypt) in artpec6_crypto_prepare_aead() [all …]
|
/linux-6.3-rc2/drivers/crypto/ |
A D | talitos.c | 1753 if (!req_ctx->last && req_ctx->to_hash_later) { in ahash_done() 1755 req_ctx->buf_idx = (req_ctx->buf_idx + 1) & 1; in ahash_done() 1756 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done() 1806 if (!req_ctx->first || req_ctx->swinit) { in common_nonsnoop_hash() 1835 req_ctx->buf[req_ctx->buf_idx], in common_nonsnoop_hash() 1996 u8 *ctx_buf = req_ctx->buf[req_ctx->buf_idx]; in ahash_process_req() 2033 req_ctx->psrc = req_ctx->bufsl; in ahash_process_req() 2061 req_ctx->buf[(req_ctx->buf_idx + 1) & 1], in ahash_process_req() 2081 if (req_ctx->first && !req_ctx->swinit) in ahash_process_req() 2146 memcpy(export->buf, req_ctx->buf[req_ctx->buf_idx], req_ctx->nbuf); in ahash_export() [all …]
|
A D | ixp4xx_crypto.c | 357 if (req_ctx->encrypt) { in finish_scattered_hmac() 382 if (req_ctx->hmac_virt) in one_packet() 397 if (req_ctx->encrypt) { in one_packet() 406 if (req_ctx->dst) in one_packet() 996 req_ctx->encrypt = encrypt; in ablk_perform() 1022 req_ctx->dst = NULL; in ablk_perform() 1030 req_ctx->dst = NULL; in ablk_perform() 1032 req_ctx->src = NULL; in ablk_perform() 1147 req_ctx->dst = NULL; in aead_perform() 1182 req_ctx->encrypt = encrypt; in aead_perform() [all …]
|
A D | mxs-dcp.c | 118 struct dcp_sha_req_ctx req_ctx; member 823 memcpy(rctx, &export->req_ctx, sizeof(struct dcp_sha_req_ctx)); in dcp_sha_import() 836 memcpy(&export->req_ctx, rctx_state, sizeof(struct dcp_sha_req_ctx)); in dcp_sha_export()
|
/linux-6.3-rc2/drivers/crypto/ccree/ |
A D | cc_cipher.c | 511 struct cipher_req_ctx *req_ctx, in cc_setup_readiv_desc() argument 567 struct cipher_req_ctx *req_ctx, in cc_setup_state_desc() argument 611 struct cipher_req_ctx *req_ctx, in cc_setup_xex_state_desc() argument 783 req_ctx->mlli_params.mlli_len, in cc_setup_mlli_desc() 830 if (req_ctx->out_nents == 0) { in cc_setup_flow_desc() 846 req_ctx->in_mlli_nents)), in cc_setup_flow_desc() 871 kfree_sensitive(req_ctx->iv); in cc_cipher_complete() 928 if (!req_ctx->iv) { in cc_cipher_process() 984 kfree_sensitive(req_ctx->iv); in cc_cipher_process() 994 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_encrypt() [all …]
|
A D | cc_aead.c | 972 if (req_ctx->cryptlen == 0) in cc_proc_cipher() 1168 !req_ctx->is_single_pass) && req_ctx->mlli_params.mlli_len) { in cc_mlli_to_sram() 1219 req_ctx->is_single_pass); in cc_hmac_authenc() 1272 req_ctx->is_single_pass); in cc_xcbc_authenc() 1476 if (req_ctx->assoclen > 0) { in cc_ccm() 1488 if (req_ctx->cryptlen) in cc_ccm() 1568 if (req_ctx->assoclen > 0) in config_ccm_adata() 1579 req_ctx->ccm_hdr_size = format_ccm_a0(a0, req_ctx->assoclen); in config_ccm_adata() 1710 if (req_ctx->cryptlen && !req_ctx->plaintext_authenticate_only) { in cc_set_gctr_desc() 1818 if (req_ctx->assoclen > 0) in cc_gcm() [all …]
|
A D | cc_buffer_mgr.c | 345 if (req_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_cipher_request() 347 &req_ctx->gen_ctx.iv_dma_addr, ivsize); in cc_unmap_cipher_request() 384 req_ctx->dma_buf_type = CC_DMA_BUF_DLLI; in cc_map_cipher_request() 391 req_ctx->gen_ctx.iv_dma_addr = in cc_map_cipher_request() 401 req_ctx->gen_ctx.iv_dma_addr = 0; in cc_map_cipher_request() 410 req_ctx->dma_buf_type = CC_DMA_BUF_MLLI; in cc_map_cipher_request() 415 req_ctx->out_nents = 0; in cc_map_cipher_request() 418 &req_ctx->in_mlli_nents); in cc_map_cipher_request() 433 &req_ctx->in_mlli_nents); in cc_map_cipher_request() 436 &req_ctx->out_mlli_nents); in cc_map_cipher_request() [all …]
|
/linux-6.3-rc2/arch/x86/crypto/ |
A D | aria_gfni_avx512_glue.c | 93 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 104 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 115 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 124 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx512_ctr_encrypt() 128 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 129 &req_ctx->keystream[0]); in aria_avx512_ctr_encrypt() 131 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 139 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx512_ctr_encrypt() 143 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt() 144 &req_ctx->keystream[0]); in aria_avx512_ctr_encrypt() [all …]
|
A D | aria_aesni_avx_glue.c | 88 struct aria_avx_request_ctx *req_ctx = skcipher_request_ctx(req); in aria_avx_ctr_encrypt() local 104 &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 113 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx_ctr_encrypt() 116 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 117 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt() 119 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 127 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx_ctr_encrypt() 131 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 132 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt() 134 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
|
A D | aria_aesni_avx2_glue.c | 90 struct aria_avx2_request_ctx *req_ctx = skcipher_request_ctx(req); in aria_avx2_ctr_encrypt() local 106 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 117 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 126 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx2_ctr_encrypt() 129 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 130 &req_ctx->keystream[0]); in aria_avx2_ctr_encrypt() 132 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 140 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx2_ctr_encrypt() 144 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 145 &req_ctx->keystream[0]); in aria_avx2_ctr_encrypt() [all …]
|
/linux-6.3-rc2/drivers/crypto/caam/ |
A D | caampkc.c | 131 edesc = req_ctx->edesc; in rsa_pub_done() 164 edesc = req_ctx->edesc; in rsa_priv_f_done() 271 req_ctx->fixup_src = scatterwalk_ffwd(req_ctx->src, req->src, in rsa_edesc_alloc() 280 req_ctx->fixup_src = req->src; in rsa_edesc_alloc() 285 req_ctx->fixup_src_len); in rsa_edesc_alloc() 325 sg_to_sec4_sg_last(req_ctx->fixup_src, req_ctx->fixup_src_len, in rsa_edesc_alloc() 336 req_ctx->edesc = edesc; in rsa_edesc_alloc() 377 u32 *desc = req_ctx->edesc->hw_desc; in akcipher_do_one_req() 380 req_ctx->edesc->bklog = true; in akcipher_do_one_req() 390 kfree(req_ctx->edesc); in akcipher_do_one_req() [all …]
|
A D | caamalg_qi2.c | 552 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc() 1240 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc() 3225 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL); in hash_digest_key() 3610 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx() 3692 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx() 3786 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx() 3854 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest() 3946 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx() 4060 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx() 4171 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx() [all …]
|
/linux-6.3-rc2/drivers/crypto/chelsio/ |
A D | chcr_algo.c | 1712 req_ctx->reqlen; in chcr_ahash_update() 1731 swap(req_ctx->reqbfr, req_ctx->skbfr); in chcr_ahash_update() 1801 create_last_hash_block(req_ctx->reqbfr, bs, req_ctx->data_len); in chcr_ahash_final() 1891 params.scmd1 = req_ctx->data_len + req_ctx->reqlen + in chcr_ahash_finup() 1899 create_last_hash_block(req_ctx->reqbfr, bs, req_ctx->data_len); in chcr_ahash_finup() 1995 create_last_hash_block(req_ctx->reqbfr, bs, req_ctx->data_len); in chcr_ahash_digest() 2171 memcpy(state->bfr1, req_ctx->reqbfr, req_ctx->reqlen); in chcr_ahash_export() 2185 req_ctx->reqbfr = req_ctx->bfr1; in chcr_ahash_import() 2186 req_ctx->skbfr = req_ctx->bfr2; in chcr_ahash_import() 2299 req_ctx->reqbfr = req_ctx->bfr1; in chcr_sha_init() [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/ |
A D | ecc-sw-bch.c | 234 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); in nand_ecc_sw_bch_init_ctx() 267 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_bch_init_ctx() 283 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_bch_cleanup_ctx() 312 nand_ecc_tweak_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_prepare_io_req() 353 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_finish_io_req() 382 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_finish_io_req()
|
A D | ecc-mxic.c | 107 struct nand_ecc_req_tweak_ctx req_ctx; member 309 ctx->req_ctx.oob_buffer_size = nanddev_per_page_oobsize(nand) + in mxic_ecc_init_ctx() 311 ret = nand_ecc_init_req_tweaking(&ctx->req_ctx, nand); in mxic_ecc_init_ctx() 355 nand_ecc_cleanup_req_tweaking(&ctx->req_ctx); in mxic_ecc_init_ctx() 417 nand_ecc_cleanup_req_tweaking(&ctx->req_ctx); in mxic_ecc_cleanup_ctx() 562 nand_ecc_tweak_req(&ctx->req_ctx, req); in mxic_ecc_prepare_io_req_external() 622 nand_ecc_restore_req(&ctx->req_ctx, req); in mxic_ecc_finish_io_req_external() 653 nand_ecc_restore_req(&ctx->req_ctx, req); in mxic_ecc_finish_io_req_external() 661 nand_ecc_restore_req(&ctx->req_ctx, req); in mxic_ecc_finish_io_req_external() 677 nand_ecc_tweak_req(&ctx->req_ctx, req); in mxic_ecc_prepare_io_req_pipelined() [all …]
|
A D | ecc-sw-hamming.c | 503 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); in nand_ecc_sw_hamming_init_ctx() 522 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_hamming_init_ctx() 537 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_hamming_cleanup_ctx() 566 nand_ecc_tweak_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_prepare_io_req() 607 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_finish_io_req() 636 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_finish_io_req()
|
/linux-6.3-rc2/include/linux/mtd/ |
A D | nand-ecc-sw-bch.h | 26 struct nand_ecc_req_tweak_ctx req_ctx; member
|
A D | nand-ecc-sw-hamming.h | 25 struct nand_ecc_req_tweak_ctx req_ctx; member
|