Home
last modified time | relevance | path

Searched refs:fallback_req (Results 1 - 25 of 72) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c81 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
84 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
93 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
96 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
105 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
106 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
108 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
121 ahash_request_set_tfm(&rctx->fallback_req, tfmct in sun8i_ce_hash_final()
[all...]
H A Dsun8i-ce-cipher.c67 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
68 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ce_cipher_fallback()
70 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ce_cipher_fallback()
73 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
75 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ce_cipher_fallback()
/kernel/linux/linux-5.10/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c43 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
44 rctx->fallback_req.base.flags = areq->base.flags & in rk_ahash_digest_fb()
47 rctx->fallback_req.nbytes = areq->nbytes; in rk_ahash_digest_fb()
48 rctx->fallback_req.src = areq->src; in rk_ahash_digest_fb()
49 rctx->fallback_req.result = areq->result; in rk_ahash_digest_fb()
51 return crypto_ahash_digest(&rctx->fallback_req); in rk_ahash_digest_fb()
117 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
118 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_init()
121 return crypto_ahash_init(&rctx->fallback_req); in rk_ahash_init()
130 ahash_request_set_tfm(&rctx->fallback_req, ct in rk_ahash_update()
[all...]
H A Drk3288_crypto_skcipher.c62 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in rk_cipher_fallback()
63 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in rk_cipher_fallback()
65 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in rk_cipher_fallback()
68 err = crypto_skcipher_decrypt(&rctx->fallback_req); in rk_cipher_fallback()
70 err = crypto_skcipher_encrypt(&rctx->fallback_req); in rk_cipher_fallback()
/kernel/linux/linux-6.6/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
55 rctx->fallback_req.base.flags = areq->base.flags & in rk_ahash_digest_fb()
58 rctx->fallback_req.nbytes = areq->nbytes; in rk_ahash_digest_fb()
59 rctx->fallback_req.src = areq->src; in rk_ahash_digest_fb()
60 rctx->fallback_req.result = areq->result; in rk_ahash_digest_fb()
62 return crypto_ahash_digest(&rctx->fallback_req); in rk_ahash_digest_fb()
126 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
127 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_init()
130 return crypto_ahash_init(&rctx->fallback_req); in rk_ahash_init()
139 ahash_request_set_tfm(&rctx->fallback_req, ct in rk_ahash_update()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c81 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_init()
84 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init()
93 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_export()
96 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export()
105 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
106 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_import()
108 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ss_hash_import()
121 ahash_request_set_tfm(&rctx->fallback_req, tfmct in sun8i_ss_hash_final()
[all...]
H A Dsun8i-ss.h182 * @fallback_req: request struct for invoking the fallback skcipher TFM
196 struct skcipher_request fallback_req; // keep at the end member
245 * @fallback_req: pre-allocated fallback request
252 struct ahash_request fallback_req; member
H A Dsun8i-ss-cipher.c84 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
85 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sun8i_ss_cipher_fallback()
87 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sun8i_ss_cipher_fallback()
90 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
92 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sun8i_ss_cipher_fallback()
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ce/
H A 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()
116 ahash_request_set_tfm(&rctx->fallback_req, tfmct in sun8i_ce_hash_final()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c169 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
170 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_init()
172 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init()
181 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
182 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_export()
184 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export()
193 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
194 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_import()
196 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ss_hash_import()
205 ahash_request_set_tfm(&rctx->fallback_req, tfmct in sun8i_ss_hash_final()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dimg-hash.c104 struct ahash_request fallback_req; member
492 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_init()
493 rctx->fallback_req.base.flags = req->base.flags in img_hash_init()
496 return crypto_ahash_init(&rctx->fallback_req); in img_hash_init()
556 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_update()
557 rctx->fallback_req.base.flags = req->base.flags in img_hash_update()
559 rctx->fallback_req.nbytes = req->nbytes; in img_hash_update()
560 rctx->fallback_req.src = req->src; in img_hash_update()
562 return crypto_ahash_update(&rctx->fallback_req); in img_hash_update()
571 ahash_request_set_tfm(&rctx->fallback_req, ct in img_hash_final()
[all...]
H A 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, ct in n2_hash_async_final()
[all...]
H A Dsa2ul.c1394 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run()
1524 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1525 rctx->fallback_req.base.flags = in sa_sha_init()
1528 return crypto_ahash_init(&rctx->fallback_req); in sa_sha_init()
1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1538 rctx->fallback_req.base.flags = in sa_sha_update()
1540 rctx->fallback_req.nbytes = req->nbytes; in sa_sha_update()
1541 rctx->fallback_req.src = req->src; in sa_sha_update()
1543 return crypto_ahash_update(&rctx->fallback_req); in sa_sha_update()
1552 ahash_request_set_tfm(&rctx->fallback_req, ct in sa_sha_final()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/
H A Dimg-hash.c105 struct ahash_request fallback_req; member
493 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_init()
494 rctx->fallback_req.base.flags = req->base.flags in img_hash_init()
497 return crypto_ahash_init(&rctx->fallback_req); in img_hash_init()
557 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback); in img_hash_update()
558 rctx->fallback_req.base.flags = req->base.flags in img_hash_update()
560 rctx->fallback_req.nbytes = req->nbytes; in img_hash_update()
561 rctx->fallback_req.src = req->src; in img_hash_update()
563 return crypto_ahash_update(&rctx->fallback_req); in img_hash_update()
572 ahash_request_set_tfm(&rctx->fallback_req, ct in img_hash_final()
[all...]
H A Dn2_core.c309 struct ahash_request fallback_req; member
318 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
319 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
321 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
330 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
331 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
332 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
333 rctx->fallback_req.src = req->src; in n2_hash_async_update()
335 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
344 ahash_request_set_tfm(&rctx->fallback_req, ct in n2_hash_async_final()
[all...]
H A 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, ct in sa_sha_final()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
H A 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()
/kernel/linux/linux-6.6/drivers/crypto/ccp/
H A 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()
/kernel/linux/linux-5.10/drivers/crypto/qce/
H A Dskcipher.c244 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in qce_skcipher_crypt()
245 skcipher_request_set_callback(&rctx->fallback_req, in qce_skcipher_crypt()
249 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in qce_skcipher_crypt()
251 ret = encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in qce_skcipher_crypt()
252 crypto_skcipher_decrypt(&rctx->fallback_req); in qce_skcipher_crypt()
273 fallback_req)); in qce_skcipher_init()
/kernel/linux/linux-6.6/drivers/crypto/qce/
H A 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()
/kernel/linux/linux-5.10/drivers/crypto/amlogic/
H A 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()
/kernel/linux/linux-6.6/drivers/crypto/amlogic/
H A 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()
/kernel/linux/linux-6.6/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback()
116 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sl3516_ce_cipher_fallback()
118 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sl3516_ce_cipher_fallback()
121 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
123 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c151 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback()
152 skcipher_request_set_callback(&ctx->fallback_req, areq->base.flags, in sun4i_ss_cipher_poll_fallback()
154 skcipher_request_set_crypt(&ctx->fallback_req, areq->src, areq->dst, in sun4i_ss_cipher_poll_fallback()
157 err = crypto_skcipher_decrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
159 err = crypto_skcipher_encrypt(&ctx->fallback_req); in sun4i_ss_cipher_poll_fallback()
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun4i-ss/
H A 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()

Completed in 24 milliseconds

123