Lines Matching defs:base_hash
282 struct crypto_shash *base_hash = ERR_PTR(-EINVAL);
286 base_hash = crypto_alloc_shash("sha1", 0, 0);
289 base_hash = crypto_alloc_shash("sha224", 0, 0);
292 base_hash = crypto_alloc_shash("sha256", 0, 0);
295 base_hash = crypto_alloc_shash("sha384", 0, 0);
298 base_hash = crypto_alloc_shash("sha512", 0, 0);
302 return base_hash;
1550 static inline void chcr_free_shash(struct crypto_shash *base_hash)
1552 crypto_free_shash(base_hash);
2202 SHASH_DESC_ON_STACK(shash, hmacctx->base_hash);
2208 shash->tfm = hmacctx->base_hash;
2347 hmacctx->base_hash = chcr_alloc_shash(digestsize);
2348 if (IS_ERR(hmacctx->base_hash))
2349 return PTR_ERR(hmacctx->base_hash);
2358 if (hmacctx->base_hash) {
2359 chcr_free_shash(hmacctx->base_hash);
2360 hmacctx->base_hash = NULL;
3558 struct crypto_shash *base_hash = ERR_PTR(-EINVAL);
3609 base_hash = chcr_alloc_shash(max_authsize);
3610 if (IS_ERR(base_hash)) {
3615 SHASH_DESC_ON_STACK(shash, base_hash);
3617 shash->tfm = base_hash;
3618 bs = crypto_shash_blocksize(base_hash);
3661 chcr_free_shash(base_hash);
3669 if (!IS_ERR(base_hash))
3670 chcr_free_shash(base_hash);