| /Linux-v5.15/drivers/crypto/allwinner/sun8i-ce/ |
| D | sun8i-ce-hash.c | 38 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ce_hash_crainit() 40 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_hash_crainit() 42 return PTR_ERR(op->fallback_tfm); in sun8i_ce_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit() 50 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ce_hash_crainit() 54 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ce_hash_crainit() 61 crypto_free_ahash(op->fallback_tfm); in sun8i_ce_hash_crainit() 69 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_craexit() 81 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() 388 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init() 389 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init() 391 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init() 392 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init() 396 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init() 401 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ce_cipher_init() 414 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init() 423 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit() 450 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey() [all …]
|
| D | sun8i-ce.h | 278 struct crypto_skcipher *fallback_tfm; member 290 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.15/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() 338 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init() 339 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init() 341 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init() 342 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init() 346 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ss_cipher_init() 351 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ss_cipher_init() 365 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init() 374 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit() 401 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey() [all …]
|
| D | sun8i-ss-hash.c | 38 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ss_hash_crainit() 40 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_crainit() 42 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit() 50 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_crainit() 54 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ss_hash_crainit() 61 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_crainit() 69 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_craexit() 81 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init() [all …]
|
| D | sun8i-ss.h | 207 struct crypto_skcipher *fallback_tfm; member 230 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.15/drivers/crypto/gemini/ |
| D | sl3516-ce-cipher.c | 111 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback() 322 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sl3516_ce_cipher_init() 323 if (IS_ERR(op->fallback_tfm)) { in sl3516_ce_cipher_init() 325 name, PTR_ERR(op->fallback_tfm)); in sl3516_ce_cipher_init() 326 return PTR_ERR(op->fallback_tfm); in sl3516_ce_cipher_init() 330 crypto_skcipher_reqsize(op->fallback_tfm); in sl3516_ce_cipher_init() 334 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sl3516_ce_cipher_init() 347 crypto_free_skcipher(op->fallback_tfm); in sl3516_ce_cipher_init() 356 crypto_free_skcipher(op->fallback_tfm); in sl3516_ce_cipher_exit() 383 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sl3516_ce_aes_setkey() [all …]
|
| D | sl3516-ce.h | 308 struct crypto_skcipher *fallback_tfm; member
|
| /Linux-v5.15/drivers/crypto/allwinner/sun4i-ss/ |
| D | sun4i-ss-cipher.c | 165 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback() 553 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init() 554 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init() 556 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init() 557 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init() 562 crypto_skcipher_reqsize(op->fallback_tfm)); in sun4i_ss_cipher_init() 570 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_init() 578 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit() 606 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey() 607 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 | 181 struct crypto_skcipher *fallback_tfm; member
|
| /Linux-v5.15/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 | 237 struct crypto_ahash *fallback_tfm; member
|
| /Linux-v5.15/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.15/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.15/drivers/crypto/ |
| D | n2_core.c | 287 struct crypto_ahash *fallback_tfm; member 317 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init() 329 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update() 343 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final() 356 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup() 380 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local 383 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init() 385 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init() 388 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init() 393 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init() [all …]
|
| D | padlock-sha.c | 198 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()
|
| D | ixp4xx_crypto.c | 191 struct crypto_skcipher *fallback_tfm; member 635 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in init_tfm_ablk() 636 if (IS_ERR(ctx->fallback_tfm)) { in init_tfm_ablk() 638 name, PTR_ERR(ctx->fallback_tfm)); in init_tfm_ablk() 639 return PTR_ERR(ctx->fallback_tfm); in init_tfm_ablk() 644 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(ctx->fallback_tfm)) in init_tfm_ablk() 647 …to_skcipher_set_reqsize(tfm, sizeof(struct ablk_ctx) + crypto_skcipher_reqsize(ctx->fallback_tfm)); in init_tfm_ablk() 670 crypto_free_skcipher(ctx->fallback_tfm); in exit_tfm_ablk() 924 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in ablk_setkey() 925 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in ablk_setkey() [all …]
|
| D | atmel-aes.c | 146 struct crypto_skcipher *fallback_tfm; member 1084 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in atmel_aes_xts_fallback() 1888 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in atmel_aes_xts_setkey() 1889 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & in atmel_aes_xts_setkey() 1891 err = crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in atmel_aes_xts_setkey() 1922 ctx->fallback_tfm = crypto_alloc_skcipher(tfm_name, 0, in atmel_aes_xts_init_tfm() 1924 if (IS_ERR(ctx->fallback_tfm)) in atmel_aes_xts_init_tfm() 1925 return PTR_ERR(ctx->fallback_tfm); in atmel_aes_xts_init_tfm() 1928 crypto_skcipher_reqsize(ctx->fallback_tfm)); in atmel_aes_xts_init_tfm() 1940 crypto_free_skcipher(ctx->fallback_tfm); in atmel_aes_xts_exit_tfm()
|
| /Linux-v5.15/drivers/crypto/ccree/ |
| D | cc_cipher.c | 58 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() 429 if (likely(ctx_p->fallback_tfm)) { in cc_cipher_setkey() 431 crypto_skcipher_clear_flags(ctx_p->fallback_tfm, in cc_cipher_setkey() [all …]
|