| /Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/ |
| D | sun8i-ce-hash.c | 37 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ce_hash_crainit() 39 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_hash_crainit() 41 return PTR_ERR(op->fallback_tfm); in sun8i_ce_hash_crainit() 44 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit() 45 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit() 49 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ce_hash_crainit() 53 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ce_hash_crainit() 60 crypto_free_ahash(op->fallback_tfm); in sun8i_ce_hash_crainit() 68 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_craexit() 80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init() [all …]
|
| D | sun8i-ce-cipher.c | 66 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback() 385 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init() 386 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init() 388 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init() 389 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init() 393 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init() 398 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ce_cipher_init() 411 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init() 420 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit() 447 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey() [all …]
|
| D | sun8i-ce.h | 277 struct crypto_skcipher *fallback_tfm; member 289 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/ |
| D | sun8i-ss-cipher.c | 83 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback() 335 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init() 336 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init() 338 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init() 339 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init() 343 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ss_cipher_init() 348 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ss_cipher_init() 362 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init() 371 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit() 398 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey() [all …]
|
| D | sun8i-ss-hash.c | 37 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ss_hash_crainit() 39 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_crainit() 41 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_crainit() 44 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit() 45 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit() 49 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_crainit() 53 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ss_hash_crainit() 60 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_crainit() 68 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_craexit() 80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init() [all …]
|
| D | sun8i-ss.h | 206 struct crypto_skcipher *fallback_tfm; member 229 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.10/drivers/crypto/allwinner/sun4i-ss/ |
| D | sun4i-ss-cipher.c | 127 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback() 495 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init() 496 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init() 498 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init() 499 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init() 504 crypto_skcipher_reqsize(op->fallback_tfm)); in sun4i_ss_cipher_init() 513 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_init() 521 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit() 549 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey() 550 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey() [all …]
|
| D | sun4i-ss.h | 173 struct crypto_skcipher *fallback_tfm; member
|
| /Linux-v5.10/drivers/crypto/rockchip/ |
| D | rk3288_crypto_ahash.c | 86 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init() 99 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update() 114 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final() 128 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup() 145 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import() 158 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export() 294 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_cra_hash_init() 296 if (IS_ERR(tctx->fallback_tfm)) { in rk_cra_hash_init() 298 return PTR_ERR(tctx->fallback_tfm); in rk_cra_hash_init() 302 crypto_ahash_reqsize(tctx->fallback_tfm)); in rk_cra_hash_init()
|
| D | rk3288_crypto.h | 236 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.10/drivers/crypto/ccp/ |
| D | ccp-crypto-aes-xts.c | 200 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() 214 crypto_skcipher_reqsize(fallback_tfm)); in ccp_aes_xts_init_tfm()
|
| /Linux-v5.10/drivers/crypto/amlogic/ |
| D | amlogic-gxl-cipher.c | 71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in meson_cipher_do_fallback() 322 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in meson_cipher_init() 323 if (IS_ERR(op->fallback_tfm)) { in meson_cipher_init() 325 name, PTR_ERR(op->fallback_tfm)); in meson_cipher_init() 326 return PTR_ERR(op->fallback_tfm); in meson_cipher_init() 330 crypto_skcipher_reqsize(op->fallback_tfm); in meson_cipher_init() 344 crypto_free_skcipher(op->fallback_tfm); in meson_cipher_exit() 373 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in meson_aes_setkey()
|
| D | amlogic-gxl.h | 130 struct crypto_skcipher *fallback_tfm; member
|
| /Linux-v5.10/drivers/crypto/ |
| D | n2_core.c | 286 struct crypto_ahash *fallback_tfm; member 316 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init() 328 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update() 342 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final() 355 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup() 379 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local 382 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init() 384 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init() 387 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init() 392 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init() [all …]
|
| D | padlock-sha.c | 197 struct crypto_shash *fallback_tfm; in padlock_init_tfm() local 200 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0, in padlock_init_tfm() 202 if (IS_ERR(fallback_tfm)) { in padlock_init_tfm() 205 return PTR_ERR(fallback_tfm); in padlock_init_tfm() 208 ctx->fallback = fallback_tfm; in padlock_init_tfm() 209 hash->descsize += crypto_shash_descsize(fallback_tfm); in padlock_init_tfm()
|
| /Linux-v5.10/drivers/crypto/ccree/ |
| D | cc_cipher.c | 58 struct crypto_skcipher *fallback_tfm; member 180 ctx_p->fallback_tfm = in cc_cipher_init() 183 if (IS_ERR(ctx_p->fallback_tfm)) { in cc_cipher_init() 189 ctx_p->fallback_tfm = NULL; in cc_cipher_init() 191 fallback_req_size = crypto_skcipher_reqsize(ctx_p->fallback_tfm); in cc_cipher_init() 223 crypto_free_skcipher(ctx_p->fallback_tfm); in cc_cipher_init() 246 crypto_free_skcipher(ctx_p->fallback_tfm); in cc_cipher_exit() 247 ctx_p->fallback_tfm = NULL; in cc_cipher_exit() 426 if (likely(ctx_p->fallback_tfm)) { in cc_cipher_setkey() 428 crypto_skcipher_clear_flags(ctx_p->fallback_tfm, in cc_cipher_setkey() [all …]
|