Searched refs:xtfm (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 32 struct crypto_shash *xtfm; in sun8i_ss_hashkey() local 35 xtfm = crypto_alloc_shash("sha1", 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ss_hashkey() 36 if (IS_ERR(xtfm)) in sun8i_ss_hashkey() 37 return PTR_ERR(xtfm); in sun8i_ss_hashkey() 39 ret = crypto_shash_tfm_digest(xtfm, key, keylen, tfmctx->key); in sun8i_ss_hashkey() 43 crypto_free_shash(xtfm); in sun8i_ss_hashkey()
|
| /linux/drivers/crypto/stm32/ |
| H A D | stm32-hash.c | 136 struct crypto_shash *xtfm; member 938 if (!ctx->xtfm) { in stm32_hash_emptymsg_fallback() 944 ret = crypto_shash_setkey(ctx->xtfm, ctx->key, ctx->keylen); in stm32_hash_emptymsg_fallback() 951 ret = crypto_shash_tfm_digest(ctx->xtfm, NULL, 0, rctx->digest); in stm32_hash_emptymsg_fallback() 1492 struct crypto_shash *xtfm; in stm32_hash_init_fallback() local 1498 xtfm = crypto_alloc_shash(name, 0, CRYPTO_ALG_NEED_FALLBACK); in stm32_hash_init_fallback() 1499 if (IS_ERR(xtfm)) { in stm32_hash_init_fallback() 1502 return PTR_ERR(xtfm); in stm32_hash_init_fallback() 1505 ctx->xtfm = xtfm; in stm32_hash_init_fallback() 1550 if (ctx->xtfm) in stm32_hash_cra_exit() [all …]
|