Home
last modified time | relevance | path

Searched refs:fallback_tfm (Results 1 – 24 of 24) 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()
53 memcpy(algt->fbname, 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.c103 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
412 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
413 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
415 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
416 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
420 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init()
423 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ce_cipher_init()
437 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
446 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
473 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
[all …]
Dsun8i-ce.h279 struct crypto_skcipher *fallback_tfm; member
291 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/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c103 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ss_cipher_fallback()
396 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_cipher_init()
397 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_cipher_init()
399 name, PTR_ERR(op->fallback_tfm)); in sun8i_ss_cipher_init()
400 return PTR_ERR(op->fallback_tfm); in sun8i_ss_cipher_init()
404 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ss_cipher_init()
408 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ss_cipher_init()
423 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_init()
432 crypto_free_skcipher(op->fallback_tfm); in sun8i_ss_cipher_exit()
459 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey()
[all …]
Dsun8i-ss-hash.c99 ret = crypto_ahash_setkey(tfmctx->fallback_tfm, key, keylen); in sun8i_ss_hmac_setkey()
127 op->fallback_tfm = crypto_alloc_ahash(crypto_tfm_alg_name(tfm), 0, in sun8i_ss_hash_crainit()
129 if (IS_ERR(op->fallback_tfm)) { in sun8i_ss_hash_crainit()
131 return PTR_ERR(op->fallback_tfm); in sun8i_ss_hash_crainit()
134 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit()
135 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit()
139 crypto_ahash_reqsize(op->fallback_tfm)); in sun8i_ss_hash_crainit()
141 memcpy(algt->fbname, crypto_tfm_alg_driver_name(&op->fallback_tfm->base), CRYPTO_MAX_ALG_NAME); in sun8i_ss_hash_crainit()
149 crypto_free_ahash(op->fallback_tfm); in sun8i_ss_hash_crainit()
160 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ss_hash_craexit()
[all …]
Dsun8i-ss.h217 struct crypto_skcipher *fallback_tfm; member
240 struct crypto_ahash *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.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 …]
Dsun4i-ss.h181 struct crypto_skcipher *fallback_tfm; member
/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/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/
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.c190 struct crypto_skcipher *fallback_tfm; member
634 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in init_tfm_ablk()
635 if (IS_ERR(ctx->fallback_tfm)) { in init_tfm_ablk()
637 name, PTR_ERR(ctx->fallback_tfm)); in init_tfm_ablk()
638 return PTR_ERR(ctx->fallback_tfm); in init_tfm_ablk()
643 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(ctx->fallback_tfm)) in init_tfm_ablk()
646 …to_skcipher_set_reqsize(tfm, sizeof(struct ablk_ctx) + crypto_skcipher_reqsize(ctx->fallback_tfm)); in init_tfm_ablk()
669 crypto_free_skcipher(ctx->fallback_tfm); in exit_tfm_ablk()
923 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in ablk_setkey()
924 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/xilinx/
Dzynqmp-sha.c52 struct crypto_shash *fallback_tfm; in zynqmp_sha_init_tfm() local
59 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0, in zynqmp_sha_init_tfm()
61 if (IS_ERR(fallback_tfm)) in zynqmp_sha_init_tfm()
62 return PTR_ERR(fallback_tfm); in zynqmp_sha_init_tfm()
64 tfm_ctx->fbk_tfm = fallback_tfm; in zynqmp_sha_init_tfm()
/drivers/crypto/aspeed/
Daspeed-hace-crypto.c23 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in aspeed_crypto_do_fallback()
446 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_des_setkey()
447 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_des_setkey()
450 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_des_setkey()
634 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_aes_setkey()
635 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_aes_setkey()
638 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_aes_setkey()
705 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC | in aspeed_crypto_cra_init()
707 if (IS_ERR(ctx->fallback_tfm)) { in aspeed_crypto_cra_init()
709 name, PTR_ERR(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
[all …]
Daspeed-hace.h247 struct crypto_skcipher *fallback_tfm; member
/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 …]