Home
last modified time | relevance | path

Searched refs:fallback_tfm (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.12.1/drivers/crypto/gemini/
Dsl3516-ce-cipher.c115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback()
328 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sl3516_ce_cipher_init()
329 if (IS_ERR(op->fallback_tfm)) { in sl3516_ce_cipher_init()
331 name, PTR_ERR(op->fallback_tfm)); in sl3516_ce_cipher_init()
332 return PTR_ERR(op->fallback_tfm); in sl3516_ce_cipher_init()
336 crypto_skcipher_reqsize(op->fallback_tfm)); in sl3516_ce_cipher_init()
340 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sl3516_ce_cipher_init()
349 crypto_free_skcipher(op->fallback_tfm); in sl3516_ce_cipher_init()
358 crypto_free_skcipher(op->fallback_tfm); in sl3516_ce_cipher_exit()
385 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sl3516_ce_aes_setkey()
[all …]
/linux-6.12.1/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c37 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ce_hash_init_tfm()
39 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_hash_init_tfm()
41 return PTR_ERR(op->fallback_tfm); in sun8i_ce_hash_init_tfm()
45 crypto_ahash_statesize(op->fallback_tfm)); in sun8i_ce_hash_init_tfm()
49 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ce_hash_init_tfm()
51 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ce_hash_init_tfm()
60 crypto_free_ahash(op->fallback_tfm); in sun8i_ce_hash_init_tfm()
68 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_exit_tfm()
80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
[all …]
Dsun8i-ce-cipher.c108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
427 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
428 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
430 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
431 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
435 crypto_skcipher_reqsize(op->fallback_tfm)); in sun8i_ce_cipher_init()
438 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ce_cipher_init()
448 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
457 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
484 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
[all …]
Dsun8i-ce.h292 struct crypto_skcipher *fallback_tfm; member
302 struct crypto_ahash *fallback_tfm; member
/linux-6.12.1/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
401 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init()
402 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init()
404 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init()
405 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init()
409 crypto_skcipher_reqsize(op->fallback_tfm)); in sun8i_ss_cipher_init()
412 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ss_cipher_init()
423 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init()
432 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit()
459 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey()
[all …]
Dsun8i-ss-hash.c84 ret = crypto_ahash_setkey(tfmctx->fallback_tfm, key, keylen); in sun8i_ss_hmac_setkey()
106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0, in sun8i_ss_hash_init_tfm()
108 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_init_tfm()
110 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_init_tfm()
114 crypto_ahash_statesize(op->fallback_tfm)); in sun8i_ss_hash_init_tfm()
118 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_init_tfm()
120 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm), in sun8i_ss_hash_init_tfm()
129 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_init_tfm()
140 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_exit_tfm()
152 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
[all …]
Dsun8i-ss.h213 struct crypto_skcipher *fallback_tfm; member
232 struct crypto_ahash *fallback_tfm; member
/linux-6.12.1/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
126 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
139 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
154 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
168 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup()
185 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import()
198 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export()
352 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_hash_init_tfm()
354 if (IS_ERR(tctx->fallback_tfm)) { in rk_hash_init_tfm()
356 return PTR_ERR(tctx->fallback_tfm); in rk_hash_init_tfm()
[all …]
Drk3288_crypto_skcipher.c79 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in rk_cipher_fallback()
120 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_aes_setkey()
136 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_des_setkey()
152 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_tdes_setkey()
441 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in rk_cipher_tfm_init()
442 if (IS_ERR(ctx->fallback_tfm)) { in rk_cipher_tfm_init()
444 name, PTR_ERR(ctx->fallback_tfm)); in rk_cipher_tfm_init()
445 return PTR_ERR(ctx->fallback_tfm); in rk_cipher_tfm_init()
449 crypto_skcipher_reqsize(ctx->fallback_tfm)); in rk_cipher_tfm_init()
459 crypto_free_skcipher(ctx->fallback_tfm); in rk_cipher_tfm_exit()
Drk3288_crypto.h232 struct crypto_ahash *fallback_tfm; member
248 struct crypto_skcipher *fallback_tfm; member
/linux-6.12.1/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()
547 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init()
548 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init()
550 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init()
551 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init()
556 crypto_skcipher_reqsize(op->fallback_tfm)); in sun4i_ss_cipher_init()
564 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_init()
572 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit()
600 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
601 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
[all …]
Dsun4i-ss.h181 struct crypto_skcipher *fallback_tfm; member
/linux-6.12.1/drivers/crypto/ccp/
Dccp-crypto-aes-xts.c200 struct crypto_skcipher *fallback_tfm; in ccp_aes_xts_init_tfm() local
205 fallback_tfm = crypto_alloc_skcipher("xts(aes)", 0, in ccp_aes_xts_init_tfm()
207 if (IS_ERR(fallback_tfm)) { in ccp_aes_xts_init_tfm()
209 return PTR_ERR(fallback_tfm); in ccp_aes_xts_init_tfm()
211 ctx->u.aes.tfm_skcipher = fallback_tfm; in ccp_aes_xts_init_tfm()
215 crypto_skcipher_reqsize(fallback_tfm)); in ccp_aes_xts_init_tfm()
/linux-6.12.1/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in meson_cipher_do_fallback()
323 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in meson_cipher_init()
324 if (IS_ERR(op->fallback_tfm)) { in meson_cipher_init()
326 name, PTR_ERR(op->fallback_tfm)); in meson_cipher_init()
327 return PTR_ERR(op->fallback_tfm); in meson_cipher_init()
331 crypto_skcipher_reqsize(op->fallback_tfm)); in meson_cipher_init()
341 crypto_free_skcipher(op->fallback_tfm); in meson_cipher_exit()
370 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in meson_aes_setkey()
Damlogic-gxl.h128 struct crypto_skcipher *fallback_tfm; member
/linux-6.12.1/drivers/crypto/xilinx/
Dzynqmp-sha.c51 struct crypto_shash *fallback_tfm; in zynqmp_sha_init_tfm() local
58 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0, in zynqmp_sha_init_tfm()
60 if (IS_ERR(fallback_tfm)) in zynqmp_sha_init_tfm()
61 return PTR_ERR(fallback_tfm); in zynqmp_sha_init_tfm()
63 tfm_ctx->fbk_tfm = fallback_tfm; in zynqmp_sha_init_tfm()
/linux-6.12.1/drivers/crypto/
Dn2_core.c288 struct crypto_ahash *fallback_tfm; member
318 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
330 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
344 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
357 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
381 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
384 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
386 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
389 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
394 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
[all …]
Dpadlock-sha.c198 struct crypto_shash *fallback_tfm; in padlock_init_tfm() local
201 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0, in padlock_init_tfm()
203 if (IS_ERR(fallback_tfm)) { in padlock_init_tfm()
206 return PTR_ERR(fallback_tfm); in padlock_init_tfm()
209 ctx->fallback = fallback_tfm; in padlock_init_tfm()
210 hash->descsize += crypto_shash_descsize(fallback_tfm); in padlock_init_tfm()
Datmel-aes.c134 struct crypto_skcipher *fallback_tfm; member
1051 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in atmel_aes_xts_fallback()
1687 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in atmel_aes_xts_setkey()
1688 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & in atmel_aes_xts_setkey()
1690 err = crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in atmel_aes_xts_setkey()
1721 ctx->fallback_tfm = crypto_alloc_skcipher(tfm_name, 0, in atmel_aes_xts_init_tfm()
1723 if (IS_ERR(ctx->fallback_tfm)) in atmel_aes_xts_init_tfm()
1724 return PTR_ERR(ctx->fallback_tfm); in atmel_aes_xts_init_tfm()
1727 crypto_skcipher_reqsize(ctx->fallback_tfm)); in atmel_aes_xts_init_tfm()
1738 crypto_free_skcipher(ctx->fallback_tfm); in atmel_aes_xts_exit_tfm()
/linux-6.12.1/drivers/crypto/tegra/
Dtegra-se-hash.c29 struct crypto_ahash *fallback_tfm; member
118 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_init()
131 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_update()
146 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_final()
160 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_finup()
177 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_digest()
194 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_import()
207 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_export()
437 ctx->fallback_tfm = crypto_alloc_ahash(algname, 0, CRYPTO_ALG_ASYNC | in tegra_sha_init_fallback()
440 if (IS_ERR(ctx->fallback_tfm)) { in tegra_sha_init_fallback()
[all …]
Dtegra-se-aes.c70 struct crypto_shash *fallback_tfm; member
1546 if (!req->nbytes && !rctx->total_len && ctx->fallback_tfm) { in tegra_cmac_do_final()
1547 return crypto_shash_tfm_digest(ctx->fallback_tfm, in tegra_cmac_do_final()
1606 ctx->fallback_tfm = crypto_alloc_shash(algname, 0, CRYPTO_ALG_NEED_FALLBACK); in tegra_cmac_init_fallback()
1608 if (IS_ERR(ctx->fallback_tfm)) { in tegra_cmac_init_fallback()
1610 ctx->fallback_tfm = NULL; in tegra_cmac_init_fallback()
1614 statesize = crypto_shash_statesize(ctx->fallback_tfm); in tegra_cmac_init_fallback()
1654 if (ctx->fallback_tfm) in tegra_cmac_cra_exit()
1655 crypto_free_shash(ctx->fallback_tfm); in tegra_cmac_cra_exit()
1711 if (ctx->fallback_tfm) in tegra_cmac_setkey()
[all …]
/linux-6.12.1/drivers/crypto/aspeed/
Daspeed-hace-crypto.c34 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in aspeed_crypto_do_fallback()
457 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_des_setkey()
458 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_des_setkey()
461 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_des_setkey()
597 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_aes_setkey()
598 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_aes_setkey()
601 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_aes_setkey()
648 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC | in aspeed_crypto_cra_init()
650 if (IS_ERR(ctx->fallback_tfm)) { in aspeed_crypto_cra_init()
652 name, PTR_ERR(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
[all …]
Daspeed-acry.c126 struct crypto_akcipher *fallback_tfm; member
152 akcipher_request_set_tfm(req, ctx->fallback_tfm); in aspeed_acry_do_fallback()
539 ret = crypto_akcipher_set_pub_key(ctx->fallback_tfm, key, keylen); in aspeed_acry_rsa_set_pub_key()
553 ret = crypto_akcipher_set_priv_key(ctx->fallback_tfm, key, keylen); in aspeed_acry_rsa_set_priv_key()
565 return crypto_akcipher_maxsize(ctx->fallback_tfm); in aspeed_acry_rsa_max_size()
581 ctx->fallback_tfm = crypto_alloc_akcipher(name, 0, CRYPTO_ALG_ASYNC | in aspeed_acry_rsa_init_tfm()
583 if (IS_ERR(ctx->fallback_tfm)) { in aspeed_acry_rsa_init_tfm()
585 name, PTR_ERR(ctx->fallback_tfm)); in aspeed_acry_rsa_init_tfm()
586 return PTR_ERR(ctx->fallback_tfm); in aspeed_acry_rsa_init_tfm()
596 crypto_free_akcipher(ctx->fallback_tfm); in aspeed_acry_rsa_exit_tfm()
/linux-6.12.1/drivers/crypto/ccree/
Dcc_cipher.c58 struct crypto_skcipher *fallback_tfm; member
183 ctx_p->fallback_tfm = in cc_cipher_init()
186 if (IS_ERR(ctx_p->fallback_tfm)) { in cc_cipher_init()
192 ctx_p->fallback_tfm = NULL; in cc_cipher_init()
194 fallback_req_size = crypto_skcipher_reqsize(ctx_p->fallback_tfm); in cc_cipher_init()
226 crypto_free_skcipher(ctx_p->fallback_tfm); in cc_cipher_init()
249 crypto_free_skcipher(ctx_p->fallback_tfm); in cc_cipher_exit()
250 ctx_p->fallback_tfm = NULL; in cc_cipher_exit()
423 if (likely(ctx_p->fallback_tfm)) { in cc_cipher_setkey()
425 crypto_skcipher_clear_flags(ctx_p->fallback_tfm, in cc_cipher_setkey()
[all …]
/linux-6.12.1/drivers/crypto/intel/ixp4xx/
Dixp4xx_crypto.c190 struct crypto_skcipher *fallback_tfm; member
636 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in init_tfm_ablk()
637 if (IS_ERR(ctx->fallback_tfm)) { in init_tfm_ablk()
639 name, PTR_ERR(ctx->fallback_tfm)); in init_tfm_ablk()
640 return PTR_ERR(ctx->fallback_tfm); in init_tfm_ablk()
645 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(ctx->fallback_tfm)) in init_tfm_ablk()
648 …to_skcipher_set_reqsize(tfm, sizeof(struct ablk_ctx) + crypto_skcipher_reqsize(ctx->fallback_tfm)); in init_tfm_ablk()
671 crypto_free_skcipher(ctx->fallback_tfm); in exit_tfm_ablk()
925 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in ablk_setkey()
926 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in ablk_setkey()
[all …]

12