Home
last modified time | relevance | path

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

/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c125 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback()
128 skcipher_request_set_sync_tfm(subreq, op->fallback_tfm); in sun4i_ss_cipher_poll_fallback()
499 op->fallback_tfm = crypto_alloc_sync_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init()
500 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init()
502 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init()
503 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init()
512 crypto_free_sync_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit()
540 crypto_sync_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
541 crypto_sync_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
543 return crypto_sync_skcipher_setkey(op->fallback_tfm, key, keylen); in sun4i_ss_aes_setkey()
[all …]
Dsun4i-ss.h163 struct crypto_sync_skcipher *fallback_tfm; member
/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c85 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
98 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
113 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
127 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup()
144 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import()
157 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export()
293 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_cra_hash_init()
295 if (IS_ERR(tctx->fallback_tfm)) { in rk_cra_hash_init()
297 return PTR_ERR(tctx->fallback_tfm); in rk_cra_hash_init()
301 crypto_ahash_reqsize(tctx->fallback_tfm)); in rk_cra_hash_init()
Drk3288_crypto.h234 struct crypto_ahash *fallback_tfm; member
/drivers/crypto/
Dn2_core.c285 struct crypto_ahash *fallback_tfm; member
315 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
327 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
341 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
354 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
378 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init() local
381 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0, in n2_hash_cra_init()
383 if (IS_ERR(fallback_tfm)) { in n2_hash_cra_init()
386 err = PTR_ERR(fallback_tfm); in n2_hash_cra_init()
391 crypto_ahash_reqsize(fallback_tfm))); in n2_hash_cra_init()
[all …]
Dpadlock-sha.c198 struct crypto_shash *fallback_tfm; in padlock_cra_init() local
202 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0, in padlock_cra_init()
204 if (IS_ERR(fallback_tfm)) { in padlock_cra_init()
207 err = PTR_ERR(fallback_tfm); in padlock_cra_init()
211 ctx->fallback = fallback_tfm; in padlock_cra_init()
212 hash->descsize += crypto_shash_descsize(fallback_tfm); in padlock_cra_init()
/drivers/crypto/ccp/
Dccp-crypto-aes-xts.c201 struct crypto_sync_skcipher *fallback_tfm; in ccp_aes_xts_cra_init() local
206 fallback_tfm = crypto_alloc_sync_skcipher("xts(aes)", 0, in ccp_aes_xts_cra_init()
209 if (IS_ERR(fallback_tfm)) { in ccp_aes_xts_cra_init()
211 return PTR_ERR(fallback_tfm); in ccp_aes_xts_cra_init()
213 ctx->u.aes.tfm_skcipher = fallback_tfm; in ccp_aes_xts_cra_init()