Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_v1_ahash.c134 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
147 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
162 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
176 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup()
193 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import()
206 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export()
354 ctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_cra_hash_init()
356 if (IS_ERR(ctx->fallback_tfm)) { in rk_cra_hash_init()
358 return PTR_ERR(ctx->fallback_tfm); in rk_cra_hash_init()
362 crypto_ahash_reqsize(ctx->fallback_tfm)); in rk_cra_hash_init()
[all …]
H A Drk3288_crypto_ahash.c86 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()
H A Drk_crypto_v2_skcipher.c442 ctx->fallback_tfm = crypto_alloc_skcipher(alg_name, 0, in rk_ablk_init_tfm()
445 if (IS_ERR(ctx->fallback_tfm)) { in rk_ablk_init_tfm()
447 alg_name, PTR_ERR(ctx->fallback_tfm)); in rk_ablk_init_tfm()
448 ctx->fallback_tfm = NULL; in rk_ablk_init_tfm()
462 if (ctx->fallback_tfm) { in rk_ablk_exit_tfm()
464 crypto_free_skcipher(ctx->fallback_tfm); in rk_ablk_exit_tfm()
H A Drk_crypto_v3_skcipher.c441 ctx->fallback_tfm = crypto_alloc_skcipher(alg_name, 0, in rk_ablk_init_tfm()
444 if (IS_ERR(ctx->fallback_tfm)) { in rk_ablk_init_tfm()
446 alg_name, PTR_ERR(ctx->fallback_tfm)); in rk_ablk_init_tfm()
447 ctx->fallback_tfm = NULL; in rk_ablk_init_tfm()
461 if (ctx->fallback_tfm) { in rk_ablk_exit_tfm()
463 crypto_free_skcipher(ctx->fallback_tfm); in rk_ablk_exit_tfm()
H A Drk_crypto_skcipher_utils.c54 if (!ctx->fallback_tfm) { in rk_cipher_fallback()
61 ret = crypto_skcipher_setkey(ctx->fallback_tfm, in rk_cipher_fallback()
72 skcipher_request_set_tfm(&ctx->fallback_req, ctx->fallback_tfm); in rk_cipher_fallback()
H A Drk_crypto_core.h183 struct crypto_ahash *fallback_tfm; member
208 struct crypto_skcipher *fallback_tfm; member
H A Drk3288_crypto.h236 struct crypto_ahash *fallback_tfm; member
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c38 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 …]
H A Dsun8i-ce-cipher.c67 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 …]
H A Dsun8i-ce.h277 struct crypto_skcipher *fallback_tfm; member
289 struct crypto_ahash *fallback_tfm; member
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c38 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 …]
H A Dsun8i-ss-cipher.c84 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 …]
H A Dsun8i-ss.h214 struct crypto_skcipher *fallback_tfm; member
237 struct crypto_ahash *fallback_tfm; member
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c151 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 …]
H A Dsun4i-ss.h175 struct crypto_skcipher *fallback_tfm; member
/OK3568_Linux_fs/kernel/drivers/crypto/amlogic/
H A 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()
H A Damlogic-gxl.h130 struct crypto_skcipher *fallback_tfm; member
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dn2_core.c286 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 …]
H A Dpadlock-sha.c197 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()
/OK3568_Linux_fs/kernel/drivers/crypto/ccree/
H A Dcc_cipher.c58 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 …]