Home
last modified time | relevance | path

Searched refs:fallback_req (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
81 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
83 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
93 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
95 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
104 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
105 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
107 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
120 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
[all …]
Dsun8i-ce-cipher.c66 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
67 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ce_cipher_fallback()
69 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ce_cipher_fallback()
72 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
74 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
Dsun8i-ce.h261 struct skcipher_request fallback_req; // keep at the end member
298 struct ahash_request fallback_req; member
/Linux-v5.10/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c86 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
87 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_init()
90 return crypto_ahash_init(&rctx->fallback_req); in rk_ahash_init()
99 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
100 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_update()
102 rctx->fallback_req.nbytes = req->nbytes; in rk_ahash_update()
103 rctx->fallback_req.src = req->src; in rk_ahash_update()
105 return crypto_ahash_update(&rctx->fallback_req); in rk_ahash_update()
114 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
115 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_final()
[all …]
Drk3288_crypto.h241 struct ahash_request fallback_req; member
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
81 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_init()
83 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init()
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
93 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_export()
95 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export()
104 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
105 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_import()
107 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ss_hash_import()
120 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
[all …]
Dsun8i-ss-cipher.c83 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
84 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ss_cipher_fallback()
86 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ss_cipher_fallback()
89 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
91 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
Dsun8i-ss.h188 struct skcipher_request fallback_req; // keep at the end member
244 struct ahash_request fallback_req; member
/Linux-v5.10/drivers/crypto/
Dimg-hash.c104 struct ahash_request fallback_req; member
488 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_init()
489 rctx->fallback_req.base.flags = req->base.flags in img_hash_init()
492 return crypto_ahash_init(&rctx->fallback_req); in img_hash_init()
552 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_update()
553 rctx->fallback_req.base.flags = req->base.flags in img_hash_update()
555 rctx->fallback_req.nbytes = req->nbytes; in img_hash_update()
556 rctx->fallback_req.src = req->src; in img_hash_update()
558 return crypto_ahash_update(&rctx->fallback_req); in img_hash_update()
567 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_final()
[all …]
Dn2_core.c307 struct ahash_request fallback_req; member
316 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
317 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
319 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
328 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
329 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
330 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
331 rctx->fallback_req.src = req->src; in n2_hash_async_update()
333 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
342 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
[all …]
Dsahara.c154 struct skcipher_request fallback_req; // keep at the end member
660 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_ecb_encrypt()
661 skcipher_request_set_callback(&rctx->fallback_req, in sahara_aes_ecb_encrypt()
665 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in sahara_aes_ecb_encrypt()
667 return crypto_skcipher_encrypt(&rctx->fallback_req); in sahara_aes_ecb_encrypt()
680 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_ecb_decrypt()
681 skcipher_request_set_callback(&rctx->fallback_req, in sahara_aes_ecb_decrypt()
685 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in sahara_aes_ecb_decrypt()
687 return crypto_skcipher_decrypt(&rctx->fallback_req); in sahara_aes_ecb_decrypt()
700 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_cbc_encrypt()
[all …]
Dsa2ul.c1390 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run()
1520 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1521 rctx->fallback_req.base.flags = in sa_sha_init()
1524 return crypto_ahash_init(&rctx->fallback_req); in sa_sha_init()
1533 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1534 rctx->fallback_req.base.flags = in sa_sha_update()
1536 rctx->fallback_req.nbytes = req->nbytes; in sa_sha_update()
1537 rctx->fallback_req.src = req->src; in sa_sha_update()
1539 return crypto_ahash_update(&rctx->fallback_req); in sa_sha_update()
1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
[all …]
Dmxs-dcp.c108 struct skcipher_request fallback_req; // keep at the end member
434 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in mxs_dcp_block_fallback()
435 skcipher_request_set_callback(&rctx->fallback_req, req->base.flags, in mxs_dcp_block_fallback()
437 skcipher_request_set_crypt(&rctx->fallback_req, req->src, req->dst, in mxs_dcp_block_fallback()
441 ret = crypto_skcipher_encrypt(&rctx->fallback_req); in mxs_dcp_block_fallback()
443 ret = crypto_skcipher_decrypt(&rctx->fallback_req); in mxs_dcp_block_fallback()
Domap-aes.c551 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in omap_aes_crypt()
552 skcipher_request_set_callback(&rctx->fallback_req, in omap_aes_crypt()
556 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in omap_aes_crypt()
560 ret = crypto_skcipher_encrypt(&rctx->fallback_req); in omap_aes_crypt()
562 ret = crypto_skcipher_decrypt(&rctx->fallback_req); in omap_aes_crypt()
Dpicoxcell_crypto.c89 struct skcipher_request fallback_req; // keep at the end member
912 skcipher_request_set_tfm(&dev_req->fallback_req, ctx->sw_cipher); in spacc_ablk_do_fallback()
913 skcipher_request_set_callback(&dev_req->fallback_req, req->base.flags, in spacc_ablk_do_fallback()
915 skcipher_request_set_crypt(&dev_req->fallback_req, req->src, req->dst, in spacc_ablk_do_fallback()
917 err = is_encrypt ? crypto_skcipher_encrypt(&dev_req->fallback_req) : in spacc_ablk_do_fallback()
918 crypto_skcipher_decrypt(&dev_req->fallback_req); in spacc_ablk_do_fallback()
1023 fallback_req)); in spacc_ablk_init_tfm()
Dsa2ul.h329 struct ahash_request fallback_req; member
/Linux-v5.10/drivers/crypto/ccp/
Dccp-crypto-aes-xts.c151 skcipher_request_set_tfm(&rctx->fallback_req, in ccp_aes_xts_crypt()
153 skcipher_request_set_callback(&rctx->fallback_req, in ccp_aes_xts_crypt()
157 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in ccp_aes_xts_crypt()
159 ret = encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in ccp_aes_xts_crypt()
160 crypto_skcipher_decrypt(&rctx->fallback_req); in ccp_aes_xts_crypt()
Dccp-crypto.h125 struct skcipher_request fallback_req; // keep at the end member
/Linux-v5.10/drivers/crypto/qce/
Dskcipher.c239 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in qce_skcipher_crypt()
240 skcipher_request_set_callback(&rctx->fallback_req, in qce_skcipher_crypt()
244 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in qce_skcipher_crypt()
246 ret = encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in qce_skcipher_crypt()
247 crypto_skcipher_decrypt(&rctx->fallback_req); in qce_skcipher_crypt()
268 fallback_req)); in qce_skcipher_init()
Dcipher.h46 struct skcipher_request fallback_req; // keep at the end member
/Linux-v5.10/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in meson_cipher_do_fallback()
72 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in meson_cipher_do_fallback()
74 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in meson_cipher_do_fallback()
78 err = crypto_skcipher_decrypt(&rctx->fallback_req); in meson_cipher_do_fallback()
80 err = crypto_skcipher_encrypt(&rctx->fallback_req); in meson_cipher_do_fallback()
Damlogic-gxl.h112 struct skcipher_request fallback_req; // keep at the end member
/Linux-v5.10/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-cipher.c127 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback()
128 skcipher_request_set_callback(&ctx->fallback_req, areq->base.flags, in sun4i_ss_cipher_poll_fallback()
130 skcipher_request_set_crypt(&ctx->fallback_req, areq->src, areq->dst, in sun4i_ss_cipher_poll_fallback()
133 err = crypto_skcipher_decrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
135 err = crypto_skcipher_encrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
Dsun4i-ss.h178 struct skcipher_request fallback_req; // keep at the end member
/Linux-v5.10/drivers/crypto/caam/
Dcaamalg_qi2.h190 struct skcipher_request fallback_req; member

12