Home
last modified time | relevance | path

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

12

/linux-5.19.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 …]
/linux-5.19.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c82 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
83 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
85 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
94 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
95 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
97 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
106 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
107 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
109 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
122 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
[all …]
Dsun8i-ce-cipher.c103 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
104 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ce_cipher_fallback()
106 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ce_cipher_fallback()
109 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
111 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
Dsun8i-ce.h263 struct skcipher_request fallback_req; // keep at the end member
300 struct ahash_request fallback_req; member
/linux-5.19.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c172 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
173 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_init()
175 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init()
184 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
185 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_export()
187 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export()
196 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
197 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_import()
199 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ss_hash_import()
212 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
[all …]
Dsun8i-ss.h199 struct skcipher_request fallback_req; // keep at the end member
259 struct ahash_request fallback_req; member
Dsun8i-ss-cipher.c103 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
104 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ss_cipher_fallback()
106 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ss_cipher_fallback()
109 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
111 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
/linux-5.19.10/drivers/crypto/
Dimg-hash.c105 struct ahash_request fallback_req; member
489 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_init()
490 rctx->fallback_req.base.flags = req->base.flags in img_hash_init()
493 return crypto_ahash_init(&rctx->fallback_req); in img_hash_init()
553 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_update()
554 rctx->fallback_req.base.flags = req->base.flags in img_hash_update()
556 rctx->fallback_req.nbytes = req->nbytes; in img_hash_update()
557 rctx->fallback_req.src = req->src; in img_hash_update()
559 return crypto_ahash_update(&rctx->fallback_req); in img_hash_update()
568 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_final()
[all …]
Dn2_core.c308 struct ahash_request fallback_req; member
317 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
318 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
320 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
329 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
330 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
331 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
332 rctx->fallback_req.src = req->src; in n2_hash_async_update()
334 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
343 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
[all …]
Dsahara.c155 struct skcipher_request fallback_req; // keep at the end member
661 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_ecb_encrypt()
662 skcipher_request_set_callback(&rctx->fallback_req, in sahara_aes_ecb_encrypt()
666 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in sahara_aes_ecb_encrypt()
668 return crypto_skcipher_encrypt(&rctx->fallback_req); in sahara_aes_ecb_encrypt()
681 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_ecb_decrypt()
682 skcipher_request_set_callback(&rctx->fallback_req, in sahara_aes_ecb_decrypt()
686 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in sahara_aes_ecb_decrypt()
688 return crypto_skcipher_decrypt(&rctx->fallback_req); in sahara_aes_ecb_decrypt()
701 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in sahara_aes_cbc_encrypt()
[all …]
Dsa2ul.c1417 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run()
1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1549 rctx->fallback_req.base.flags = in sa_sha_init()
1552 return crypto_ahash_init(&rctx->fallback_req); in sa_sha_init()
1561 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1562 rctx->fallback_req.base.flags = in sa_sha_update()
1564 rctx->fallback_req.nbytes = req->nbytes; in sa_sha_update()
1565 rctx->fallback_req.src = req->src; in sa_sha_update()
1567 return crypto_ahash_update(&rctx->fallback_req); in sa_sha_update()
1576 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
[all …]
Dmxs-dcp.c109 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()
/linux-5.19.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()
/linux-5.19.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-5.19.10/drivers/crypto/gemini/
Dsl3516-ce-cipher.c111 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback()
112 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sl3516_ce_cipher_fallback()
114 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sl3516_ce_cipher_fallback()
117 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
119 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
/linux-5.19.10/drivers/crypto/qce/
Dskcipher.c295 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in qce_skcipher_crypt()
296 skcipher_request_set_callback(&rctx->fallback_req, in qce_skcipher_crypt()
300 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in qce_skcipher_crypt()
302 ret = encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in qce_skcipher_crypt()
303 crypto_skcipher_decrypt(&rctx->fallback_req); in qce_skcipher_crypt()
324 fallback_req)); in qce_skcipher_init()
Dcipher.h45 struct skcipher_request fallback_req; // keep at the end member
Daead.h44 struct aead_request fallback_req; member
Daead.c529 aead_request_set_tfm(&rctx->fallback_req, ctx->fallback); in qce_aead_crypt()
530 aead_request_set_callback(&rctx->fallback_req, req->base.flags, in qce_aead_crypt()
532 aead_request_set_crypt(&rctx->fallback_req, req->src, in qce_aead_crypt()
534 aead_request_set_ad(&rctx->fallback_req, req->assoclen); in qce_aead_crypt()
536 return encrypt ? crypto_aead_encrypt(&rctx->fallback_req) : in qce_aead_crypt()
537 crypto_aead_decrypt(&rctx->fallback_req); in qce_aead_crypt()
/linux-5.19.10/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-cipher.c162 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback()
163 skcipher_request_set_callback(&ctx->fallback_req, areq->base.flags, in sun4i_ss_cipher_poll_fallback()
165 skcipher_request_set_crypt(&ctx->fallback_req, areq->src, areq->dst, in sun4i_ss_cipher_poll_fallback()
168 err = crypto_skcipher_decrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
170 err = crypto_skcipher_encrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
Dsun4i-ss.h187 struct skcipher_request fallback_req; // keep at the end member
/linux-5.19.10/drivers/crypto/caam/
Dcaamalg_qi2.h190 struct skcipher_request fallback_req; member
/linux-5.19.10/arch/riscv/kvm/
Dtlb.c347 unsigned int req, unsigned int fallback_req, in make_xfence_request() argument
375 actual_req = fallback_req; in make_xfence_request()

12