Home
last modified time | relevance | path

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

/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()
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 …]
/linux/drivers/crypto/allwinner/sun8i-ss/
H A 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 …]
/linux/drivers/crypto/
H A Dpadlock-sha.c162 struct crypto_ahash *fallback_tfm; in padlock_init_tfm() local
165 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in padlock_init_tfm()
168 if (IS_ERR(fallback_tfm)) { in padlock_init_tfm()
171 return PTR_ERR(fallback_tfm); in padlock_init_tfm()
175 crypto_ahash_statesize(fallback_tfm)) { in padlock_init_tfm()
176 crypto_free_ahash(fallback_tfm); in padlock_init_tfm()
180 ctx->fallback = fallback_tfm; in padlock_init_tfm()
H A Datmel-aes.c133 struct crypto_skcipher *fallback_tfm; member
1046 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in atmel_aes_xts_fallback()
1682 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in atmel_aes_xts_setkey()
1683 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & in atmel_aes_xts_setkey()
1685 err = crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in atmel_aes_xts_setkey()
1716 ctx->fallback_tfm = crypto_alloc_skcipher(tfm_name, 0, in atmel_aes_xts_init_tfm()
1718 if (IS_ERR(ctx->fallback_tfm)) in atmel_aes_xts_init_tfm()
1719 return PTR_ERR(ctx->fallback_tfm); in atmel_aes_xts_init_tfm()
1722 crypto_skcipher_reqsize(ctx->fallback_tfm)); in atmel_aes_xts_init_tfm()
1733 crypto_free_skcipher(ctx->fallback_tfm); in atmel_aes_xts_exit_tfm()
/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()
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()
H A Damlogic-gxl.h128 struct crypto_skcipher *fallback_tfm; member
/linux/drivers/crypto/tegra/
H A Dtegra-se-hash.c30 struct crypto_ahash *fallback_tfm; member
120 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_init()
134 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_update()
149 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_final()
164 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_finup()
180 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_digest()
196 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_import()
210 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_export()
562 ctx->fallback_tfm = crypto_alloc_ahash(algname, 0, CRYPTO_ALG_ASYNC | in tegra_sha_init_fallback()
565 if (IS_ERR(ctx->fallback_tfm)) { in tegra_sha_init_fallback()
[all …]
H A Dtegra-se-aes.c76 struct crypto_shash *fallback_tfm; member
1650 if (!req->nbytes && !rctx->total_len && ctx->fallback_tfm) { in tegra_cmac_do_final()
1651 return crypto_shash_tfm_digest(ctx->fallback_tfm, in tegra_cmac_do_final()
1755 ctx->fallback_tfm = crypto_alloc_shash(algname, 0, CRYPTO_ALG_NEED_FALLBACK); in tegra_cmac_init_fallback()
1757 if (IS_ERR(ctx->fallback_tfm)) { in tegra_cmac_init_fallback()
1759 ctx->fallback_tfm = NULL; in tegra_cmac_init_fallback()
1763 statesize = crypto_shash_statesize(ctx->fallback_tfm); in tegra_cmac_init_fallback()
1804 if (ctx->fallback_tfm) in tegra_cmac_cra_exit()
1805 crypto_free_shash(ctx->fallback_tfm); in tegra_cmac_cra_exit()
1821 if (ctx->fallback_tfm) in tegra_cmac_setkey()
[all …]
/linux/drivers/crypto/rockchip/
H A 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()
440 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in rk_cipher_tfm_init()
441 if (IS_ERR(ctx->fallback_tfm)) { in rk_cipher_tfm_init()
443 name, PTR_ERR(ctx->fallback_tfm)); in rk_cipher_tfm_init()
444 return PTR_ERR(ctx->fallback_tfm); in rk_cipher_tfm_init()
448 crypto_skcipher_reqsize(ctx->fallback_tfm)); in rk_cipher_tfm_init()
458 crypto_free_skcipher(ctx->fallback_tfm); in rk_cipher_tfm_exit()
H A Drk3288_crypto.h232 struct crypto_ahash *fallback_tfm; member
248 struct crypto_skcipher *fallback_tfm; member
/linux/drivers/crypto/gemini/
H A Dsl3516-ce.h303 struct crypto_skcipher *fallback_tfm; member