Lines Matching refs:hash
26 struct crypto_shash *hash; member
51 struct crypto_shash *hash = ctx->hash; in hmac_setkey() local
52 SHASH_DESC_ON_STACK(shash, hash); in hmac_setkey()
58 shash->tfm = hash; in hmac_setkey()
99 desc->tfm = ctx->hash; in hmac_import()
147 struct crypto_shash *hash; in hmac_init_tfm() local
152 hash = crypto_spawn_shash(spawn); in hmac_init_tfm()
153 if (IS_ERR(hash)) in hmac_init_tfm()
154 return PTR_ERR(hash); in hmac_init_tfm()
157 crypto_shash_descsize(hash); in hmac_init_tfm()
159 ctx->hash = hash; in hmac_init_tfm()
167 struct crypto_shash *hash; in hmac_clone_tfm() local
169 hash = crypto_clone_shash(sctx->hash); in hmac_clone_tfm()
170 if (IS_ERR(hash)) in hmac_clone_tfm()
171 return PTR_ERR(hash); in hmac_clone_tfm()
173 dctx->hash = hash; in hmac_clone_tfm()
181 crypto_free_shash(ctx->hash); in hmac_exit_tfm()