Lines Matching full:hash
15 #include <crypto/internal/hash.h>
26 struct crypto_shash *hash; member
38 struct crypto_shash *hash = tctx->hash; in hmac_setkey() local
41 SHASH_DESC_ON_STACK(shash, hash); in hmac_setkey()
47 shash->tfm = hash; in hmac_setkey()
88 desc->tfm = tctx->hash; in hmac_import()
140 struct crypto_shash *hash; in hmac_init_tfm() local
145 hash = crypto_spawn_shash(spawn); in hmac_init_tfm()
146 if (IS_ERR(hash)) in hmac_init_tfm()
147 return PTR_ERR(hash); in hmac_init_tfm()
150 crypto_shash_descsize(hash); in hmac_init_tfm()
152 tctx->hash = hash; in hmac_init_tfm()
160 struct crypto_shash *hash; in hmac_clone_tfm() local
162 hash = crypto_clone_shash(sctx->hash); in hmac_clone_tfm()
163 if (IS_ERR(hash)) in hmac_clone_tfm()
164 return PTR_ERR(hash); in hmac_clone_tfm()
166 dctx->hash = hash; in hmac_clone_tfm()
174 crypto_free_shash(tctx->hash); in hmac_exit_tfm()
204 /* The underlying hash algorithm must not require a key */ in hmac_create()
266 MODULE_DESCRIPTION("HMAC hash algorithm");