Lines Matching defs:base_hash
286 struct crypto_shash *base_hash = ERR_PTR(-EINVAL);
290 base_hash = crypto_alloc_shash("sha1", 0, 0);
293 base_hash = crypto_alloc_shash("sha224", 0, 0);
296 base_hash = crypto_alloc_shash("sha256", 0, 0);
299 base_hash = crypto_alloc_shash("sha384", 0, 0);
302 base_hash = crypto_alloc_shash("sha512", 0, 0);
306 return base_hash;
1557 static inline void chcr_free_shash(struct crypto_shash *base_hash)
1559 crypto_free_shash(base_hash);
2208 SHASH_DESC_ON_STACK(shash, hmacctx->base_hash);
2214 shash->tfm = hmacctx->base_hash;
2352 hmacctx->base_hash = chcr_alloc_shash(digestsize);
2353 if (IS_ERR(hmacctx->base_hash))
2354 return PTR_ERR(hmacctx->base_hash);
2363 if (hmacctx->base_hash) {
2364 chcr_free_shash(hmacctx->base_hash);
2365 hmacctx->base_hash = NULL;
3562 struct crypto_shash *base_hash = ERR_PTR(-EINVAL);
3613 base_hash = chcr_alloc_shash(max_authsize);
3614 if (IS_ERR(base_hash)) {
3619 SHASH_DESC_ON_STACK(shash, base_hash);
3621 shash->tfm = base_hash;
3622 bs = crypto_shash_blocksize(base_hash);
3665 chcr_free_shash(base_hash);
3673 if (!IS_ERR(base_hash))
3674 chcr_free_shash(base_hash);