Home
last modified time | relevance | path

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

/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c32 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()