Home
last modified time | relevance | path

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

/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c152 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
153 ahash_request_set_callback(&rctx->fallback_req, in sun8i_ss_hash_init()
157 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init()
166 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export()
167 ahash_request_set_callback(&rctx->fallback_req, in sun8i_ss_hash_export()
171 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export()
180 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_import()
181 ahash_request_set_callback(&rctx->fallback_req, in sun8i_ss_hash_import()
185 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ss_hash_import()
194 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_final()
[all …]
/linux/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()
H A Dccp-crypto.h126 struct skcipher_request fallback_req; // keep at the end member
/linux/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()
H A Dcipher.h45 struct skcipher_request fallback_req; // keep at the end member
H A 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()
H A Daead.h44 struct aead_request fallback_req; member
/linux/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
/linux/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()
H A Dsl3516-ce.h289 struct skcipher_request fallback_req; // keep at the end member
/linux/drivers/crypto/
H A Dsa2ul.c1417 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run()
1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1538 …ahash_request_set_callback(&rctx->fallback_req, req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP, NULL, … in sa_sha_init()
1539 ahash_request_set_crypt(&rctx->fallback_req, NULL, NULL, 0); in sa_sha_init()
1541 return crypto_ahash_init(&rctx->fallback_req); in sa_sha_init()
1548 …ahash_request_set_callback(&rctx->fallback_req, req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP, NULL, … in sa_sha_update()
1549 ahash_request_set_crypt(&rctx->fallback_req, req->src, NULL, req->nbytes); in sa_sha_update()
1551 return crypto_ahash_update(&rctx->fallback_req); in sa_sha_update()
1558 …ahash_request_set_callback(&rctx->fallback_req, req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP, NULL, … in sa_sha_final()
1559 ahash_request_set_crypt(&rctx->fallback_req, NULL, req->result, 0); in sa_sha_final()
[all …]
H A Dsa2ul.h333 struct ahash_request fallback_req; member
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c79 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in rk_cipher_fallback()
80 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in rk_cipher_fallback()
82 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in rk_cipher_fallback()
85 err = crypto_skcipher_decrypt(&rctx->fallback_req); in rk_cipher_fallback()
87 err = crypto_skcipher_encrypt(&rctx->fallback_req); in rk_cipher_fallback()
H A Drk3288_crypto.h238 struct ahash_request fallback_req; member
255 struct skcipher_request fallback_req; // keep at the end member
/linux/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()
H A Dsun4i-ss.h187 struct skcipher_request fallback_req; // keep at the end member
/linux/arch/riscv/kvm/
H A Dtlb.c330 unsigned int req, unsigned int fallback_req, in make_xfence_request() argument
358 actual_req = fallback_req; in make_xfence_request()
/linux/drivers/crypto/caam/
H A Dcaamalg_qi.c82 struct skcipher_request fallback_req; member
1440 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in skcipher_crypt()
1441 skcipher_request_set_callback(&rctx->fallback_req, in skcipher_crypt()
1445 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in skcipher_crypt()
1448 return encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in skcipher_crypt()
1449 crypto_skcipher_decrypt(&rctx->fallback_req); in skcipher_crypt()
H A Dcaamalg.c139 struct skcipher_request fallback_req; member
1914 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in skcipher_crypt()
1915 skcipher_request_set_callback(&rctx->fallback_req, in skcipher_crypt()
1919 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in skcipher_crypt()
1922 return encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in skcipher_crypt()
1923 crypto_skcipher_decrypt(&rctx->fallback_req); in skcipher_crypt()
H A Dcaamalg_qi2.c1496 skcipher_request_set_tfm(&caam_req->fallback_req, ctx->fallback); in skcipher_encrypt()
1497 skcipher_request_set_callback(&caam_req->fallback_req, in skcipher_encrypt()
1501 skcipher_request_set_crypt(&caam_req->fallback_req, req->src, in skcipher_encrypt()
1504 return crypto_skcipher_encrypt(&caam_req->fallback_req); in skcipher_encrypt()
1546 skcipher_request_set_tfm(&caam_req->fallback_req, ctx->fallback); in skcipher_decrypt()
1547 skcipher_request_set_callback(&caam_req->fallback_req, in skcipher_decrypt()
1551 skcipher_request_set_crypt(&caam_req->fallback_req, req->src, in skcipher_decrypt()
1554 return crypto_skcipher_decrypt(&caam_req->fallback_req); in skcipher_decrypt()