Home
last modified time | relevance | path

Searched refs:req_ctx (Results 1 – 16 of 16) sorted by relevance

/linux/crypto/
A Drsa-pkcs1pad.c208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
250 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
259 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
267 akcipher_request_set_crypt(&req_ctx->child_req, req_ctx->in_sg, in pkcs1pad_encrypt()
357 if (!req_ctx->out_buf) in pkcs1pad_decrypt()
360 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt()
406 if (!req_ctx->in_buf) in pkcs1pad_sign()
418 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_sign()
426 akcipher_request_set_crypt(&req_ctx->child_req, req_ctx->in_sg, in pkcs1pad_sign()
545 if (!req_ctx->out_buf) in pkcs1pad_verify()
[all …]
/linux/drivers/crypto/axis/
A Dartpec6_crypto.c1100 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/drivers/crypto/
A Dtalitos.c1753 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 Dixp4xx_crypto.c358 if (req_ctx->encrypt) { in finish_scattered_hmac()
383 if (req_ctx->hmac_virt) in one_packet()
398 if (req_ctx->encrypt) { in one_packet()
407 if (req_ctx->dst) in one_packet()
997 req_ctx->encrypt = encrypt; in ablk_perform()
1023 req_ctx->dst = NULL; in ablk_perform()
1031 req_ctx->dst = NULL; in ablk_perform()
1033 req_ctx->src = NULL; in ablk_perform()
1148 req_ctx->dst = NULL; in aead_perform()
1183 req_ctx->encrypt = encrypt; in aead_perform()
[all …]
A Dmxs-dcp.c118 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/drivers/crypto/ccree/
A Dcc_cipher.c511 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 Dcc_aead.c972 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 Dcc_buffer_mgr.c338 if (req_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_cipher_request()
340 &req_ctx->gen_ctx.iv_dma_addr, ivsize); in cc_unmap_cipher_request()
374 req_ctx->dma_buf_type = CC_DMA_BUF_DLLI; in cc_map_cipher_request()
381 req_ctx->gen_ctx.iv_dma_addr = in cc_map_cipher_request()
391 req_ctx->gen_ctx.iv_dma_addr = 0; in cc_map_cipher_request()
400 req_ctx->dma_buf_type = CC_DMA_BUF_MLLI; in cc_map_cipher_request()
405 req_ctx->out_nents = 0; in cc_map_cipher_request()
408 &req_ctx->in_mlli_nents); in cc_map_cipher_request()
423 &req_ctx->in_mlli_nents); in cc_map_cipher_request()
426 &req_ctx->out_mlli_nents); in cc_map_cipher_request()
[all …]
/linux/drivers/crypto/caam/
A Dcaampkc.c129 edesc = req_ctx->edesc; in rsa_pub_done()
162 edesc = req_ctx->edesc; in rsa_priv_f_done()
269 req_ctx->fixup_src = scatterwalk_ffwd(req_ctx->src, req->src, in rsa_edesc_alloc()
278 req_ctx->fixup_src = req->src; in rsa_edesc_alloc()
283 req_ctx->fixup_src_len); in rsa_edesc_alloc()
324 sg_to_sec4_sg_last(req_ctx->fixup_src, req_ctx->fixup_src_len, in rsa_edesc_alloc()
335 req_ctx->edesc = edesc; in rsa_edesc_alloc()
376 u32 *desc = req_ctx->edesc->hw_desc; in akcipher_do_one_req()
379 req_ctx->edesc->bklog = true; in akcipher_do_one_req()
386 kfree(req_ctx->edesc); in akcipher_do_one_req()
[all …]
A Dcaamalg_qi2.c550 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1238 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
3222 if (!req_ctx) in hash_digest_key()
3600 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3682 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3776 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3844 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3936 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
4050 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4161 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
[all …]
/linux/drivers/crypto/chelsio/
A Dchcr_algo.c1712 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/drivers/crypto/ux500/hash/
A Dhash_core.c560 req_ctx->updated = 0; in ux500_hash_init()
782 if (req_ctx->updated) { in hash_process_data()
802 req_ctx->updated = 1; in hash_process_data()
837 req_ctx->state.buffer, in hash_process_data()
872 if (req_ctx->updated) { in hash_dma_final()
882 if (!req_ctx->updated) { in hash_dma_final()
909 req_ctx->updated = 1; in hash_dma_final()
978 if (req_ctx->updated) { in hash_hw_final()
1020 if (!req_ctx->updated) { in hash_hw_final()
1031 req_ctx->state.index); in hash_hw_final()
[all …]
/linux/drivers/mtd/nand/
A Decc-sw-bch.c234 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 Decc-sw-hamming.c503 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/include/linux/mtd/
A Dnand-ecc-sw-bch.h26 struct nand_ecc_req_tweak_ctx req_ctx; member
A Dnand-ecc-sw-hamming.h25 struct nand_ecc_req_tweak_ctx req_ctx; member

Completed in 100 milliseconds