/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 | 67 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 | 277 struct crypto_skcipher *fallback_tfm; member 289 struct crypto_ahash *fallback_tfm; member
|
/drivers/crypto/allwinner/sun8i-ss/ |
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-cipher.c | 84 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback() 378 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init() 379 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init() 381 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init() 382 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init() 386 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ss_cipher_init() 391 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ss_cipher_init() 405 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init() 414 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit() 441 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey() [all …]
|
D | sun8i-ss.h | 214 struct crypto_skcipher *fallback_tfm; member 237 struct crypto_ahash *fallback_tfm; member
|
/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-cipher.c | 151 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback() 534 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init() 535 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init() 537 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init() 538 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init() 543 crypto_skcipher_reqsize(op->fallback_tfm)); in sun4i_ss_cipher_init() 552 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_init() 560 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit() 588 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey() 589 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 | 175 struct crypto_skcipher *fallback_tfm; member
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 43 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb() 117 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init() 130 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update() 145 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final() 159 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup() 176 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import() 189 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export() 329 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_cra_hash_init() 331 if (IS_ERR(tctx->fallback_tfm)) { in rk_cra_hash_init() 333 return PTR_ERR(tctx->fallback_tfm); in rk_cra_hash_init() [all …]
|
D | rk3288_crypto_skcipher.c | 62 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in rk_cipher_fallback() 97 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_aes_setkey() 113 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_des_setkey() 129 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in rk_tdes_setkey() 447 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in rk_ablk_init_tfm() 448 if (IS_ERR(ctx->fallback_tfm)) { in rk_ablk_init_tfm() 450 name, PTR_ERR(ctx->fallback_tfm)); in rk_ablk_init_tfm() 451 return PTR_ERR(ctx->fallback_tfm); in rk_ablk_init_tfm() 455 crypto_skcipher_reqsize(ctx->fallback_tfm); in rk_ablk_init_tfm() 467 crypto_free_skcipher(ctx->fallback_tfm); in rk_ablk_exit_tfm()
|
D | rk3288_crypto.h | 208 struct crypto_ahash *fallback_tfm; member 225 struct crypto_skcipher *fallback_tfm; member
|
/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()
|
/drivers/crypto/amlogic/ |
D | amlogic-gxl-cipher.c | 71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in meson_cipher_do_fallback() 324 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in meson_cipher_init() 325 if (IS_ERR(op->fallback_tfm)) { in meson_cipher_init() 327 name, PTR_ERR(op->fallback_tfm)); in meson_cipher_init() 328 return PTR_ERR(op->fallback_tfm); in meson_cipher_init() 332 crypto_skcipher_reqsize(op->fallback_tfm); in meson_cipher_init() 346 crypto_free_skcipher(op->fallback_tfm); in meson_cipher_exit() 375 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in meson_aes_setkey()
|
D | amlogic-gxl.h | 130 struct crypto_skcipher *fallback_tfm; member
|
/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()
|
/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 …]
|