Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_v1_ahash.c134 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
135 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_init()
138 return crypto_ahash_init(&rctx->fallback_req); in rk_ahash_init()
147 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
148 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_update()
150 rctx->fallback_req.nbytes = req->nbytes; in rk_ahash_update()
151 rctx->fallback_req.src = req->src; in rk_ahash_update()
153 return crypto_ahash_update(&rctx->fallback_req); in rk_ahash_update()
162 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
163 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_final()
[all …]
H A 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 …]
H A Drk_crypto_skcipher_utils.c72 skcipher_request_set_tfm(&ctx->fallback_req, ctx->fallback_tfm); in rk_cipher_fallback()
73 skcipher_request_set_callback(&ctx->fallback_req, in rk_cipher_fallback()
78 skcipher_request_set_crypt(&ctx->fallback_req, req->src, in rk_cipher_fallback()
81 ret = encrypt ? crypto_skcipher_encrypt(&ctx->fallback_req) : in rk_cipher_fallback()
82 crypto_skcipher_decrypt(&ctx->fallback_req); in rk_cipher_fallback()
H A Drk_crypto_core.h188 struct ahash_request fallback_req; member
209 struct skcipher_request fallback_req; // keep at the end member
/OK3568_Linux_fs/kernel/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, tfmctx->fallback_tfm); 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()
H A Dsun8i-ce.h261 struct skcipher_request fallback_req; // keep at the end member
298 struct ahash_request fallback_req; member
/OK3568_Linux_fs/kernel/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, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
[all …]
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()
H A Dsun8i-ss.h196 struct skcipher_request fallback_req; // keep at the end member
252 struct ahash_request fallback_req; member
/OK3568_Linux_fs/kernel/drivers/crypto/
H A 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 …]
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, ctx->fallback_tfm); in n2_hash_async_final()
[all …]
H A 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 …]
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, ctx->fallback.ahash); in sa_sha_final()
[all …]
H A Dmxs-dcp.c108 struct skcipher_request fallback_req; // keep at the end member
433 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in mxs_dcp_block_fallback()
434 skcipher_request_set_callback(&rctx->fallback_req, req->base.flags, in mxs_dcp_block_fallback()
436 skcipher_request_set_crypt(&rctx->fallback_req, req->src, req->dst, in mxs_dcp_block_fallback()
440 ret = crypto_skcipher_encrypt(&rctx->fallback_req); in mxs_dcp_block_fallback()
442 ret = crypto_skcipher_decrypt(&rctx->fallback_req); in mxs_dcp_block_fallback()
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
H A Dcipher.h46 struct skcipher_request fallback_req; // keep at the end member
/OK3568_Linux_fs/kernel/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()
H A Damlogic-gxl.h112 struct skcipher_request fallback_req; // keep at the end member
/OK3568_Linux_fs/kernel/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()
H A Dsun4i-ss.h180 struct skcipher_request fallback_req; // keep at the end member
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A Dcaamalg_qi2.h190 struct skcipher_request fallback_req; member

12