Home
last modified time | relevance | path

Searched refs:xtfm (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c32 struct crypto_shash *xtfm; in sun8i_ss_hashkey() local
37 xtfm = crypto_alloc_shash("sha1", 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_hashkey()
38 if (IS_ERR(xtfm)) in sun8i_ss_hashkey()
39 return PTR_ERR(xtfm); in sun8i_ss_hashkey()
41 len = sizeof(*sdesc) + crypto_shash_descsize(xtfm); in sun8i_ss_hashkey()
47 sdesc->tfm = xtfm; in sun8i_ss_hashkey()
60 crypto_free_shash(xtfm); in sun8i_ss_hashkey()
/linux-6.6.21/drivers/crypto/stm32/
Dstm32-hash.c135 struct crypto_shash *xtfm; member
909 if (!ctx->xtfm) { in stm32_hash_emptymsg_fallback()
915 ret = crypto_shash_setkey(ctx->xtfm, ctx->key, ctx->keylen); in stm32_hash_emptymsg_fallback()
922 ret = crypto_shash_tfm_digest(ctx->xtfm, NULL, 0, rctx->digest); in stm32_hash_emptymsg_fallback()
1164 struct crypto_shash *xtfm; in stm32_hash_init_fallback() local
1170 xtfm = crypto_alloc_shash(name, 0, CRYPTO_ALG_NEED_FALLBACK); in stm32_hash_init_fallback()
1171 if (IS_ERR(xtfm)) { in stm32_hash_init_fallback()
1174 return PTR_ERR(xtfm); in stm32_hash_init_fallback()
1177 ctx->xtfm = xtfm; in stm32_hash_init_fallback()
1223 if (ctx->xtfm) in stm32_hash_cra_exit()
[all …]