Home
last modified time | relevance | path

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

/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c39 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ce_hash_crainit()
41 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_hash_crainit()
43 return PTR_ERR(op->fallback_tfm); in sun8i_ce_hash_crainit()
46 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit()
47 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit()
51 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ce_hash_crainit()
55 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ce_hash_crainit()
62 crypto_free_ahash(op->fallback_tfm); in sun8i_ce_hash_crainit()
70 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_craexit()
82 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
[all …]
Dsun8i-ce-cipher.c67 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
391 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
392 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
394 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
395 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
399 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init()
404 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ce_cipher_init()
417 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
426 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
453 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
[all …]
Dsun8i-ce.h278 struct crypto_skcipher *fallback_tfm; member
290 struct crypto_ahash *fallback_tfm; member
/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c39 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ss_hash_crainit()
41 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_crainit()
43 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_crainit()
46 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit()
47 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit()
51 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_crainit()
55 crypto_tfm_alg_driver_name(&op->fallback_tfm->base)); in sun8i_ss_hash_crainit()
62 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_crainit()
70 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_craexit()
82 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init()
[all …]
Dsun8i-ss-cipher.c84 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
381 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init()
382 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init()
384 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init()
385 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init()
389 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ss_cipher_init()
394 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ss_cipher_init()
408 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init()
417 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit()
444 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey()
[all …]
Dsun8i-ss.h215 struct crypto_skcipher *fallback_tfm; member
238 struct crypto_ahash *fallback_tfm; member
/drivers/crypto/gemini/
Dsl3516-ce-cipher.c111 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback()
324 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sl3516_ce_cipher_init()
325 if (IS_ERR(op->fallback_tfm)) { in sl3516_ce_cipher_init()
327 name, PTR_ERR(op->fallback_tfm)); in sl3516_ce_cipher_init()
328 return PTR_ERR(op->fallback_tfm); in sl3516_ce_cipher_init()
332 crypto_skcipher_reqsize(op->fallback_tfm); in sl3516_ce_cipher_init()
336 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 …]
Dsl3516-ce.h308 struct crypto_skcipher *fallback_tfm; member
/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c43 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 …]
Drk3288_crypto_skcipher.c62 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()
Drk3288_crypto.h209 struct crypto_ahash *fallback_tfm; member
226 struct crypto_skcipher *fallback_tfm; member
/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-cipher.c165 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 …]
Dsun4i-ss.h181 struct crypto_skcipher *fallback_tfm; member
/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()
214 crypto_skcipher_reqsize(fallback_tfm)); in ccp_aes_xts_init_tfm()
/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c71 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()
Damlogic-gxl.h130 struct crypto_skcipher *fallback_tfm; member
/drivers/crypto/
Dn2_core.c287 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 …]
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()
Dixp4xx_crypto.c191 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 …]
Datmel-aes.c146 struct crypto_skcipher *fallback_tfm; member
1085 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in atmel_aes_xts_fallback()
1886 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in atmel_aes_xts_setkey()
1887 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags & in atmel_aes_xts_setkey()
1889 err = crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in atmel_aes_xts_setkey()
1920 ctx->fallback_tfm = crypto_alloc_skcipher(tfm_name, 0, in atmel_aes_xts_init_tfm()
1922 if (IS_ERR(ctx->fallback_tfm)) in atmel_aes_xts_init_tfm()
1923 return PTR_ERR(ctx->fallback_tfm); in atmel_aes_xts_init_tfm()
1926 crypto_skcipher_reqsize(ctx->fallback_tfm)); in atmel_aes_xts_init_tfm()
1937 crypto_free_skcipher(ctx->fallback_tfm); in atmel_aes_xts_exit_tfm()
/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()
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 …]