Lines Matching refs:shash
165 struct crypto_shash *shash; member
1104 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_finish_hmac()
1105 int ds = crypto_shash_digestsize(bctx->shash); in omap_sham_finish_hmac()
1106 SHASH_DESC_ON_STACK(shash, bctx->shash); in omap_sham_finish_hmac()
1108 shash->tfm = bctx->shash; in omap_sham_finish_hmac()
1110 return crypto_shash_init(shash) ?: in omap_sham_finish_hmac()
1111 crypto_shash_update(shash, bctx->opad, bs) ?: in omap_sham_finish_hmac()
1112 crypto_shash_finup(shash, req->result, ds, req->result); in omap_sham_finish_hmac()
1289 int bs = crypto_shash_blocksize(bctx->shash); in omap_sham_setkey()
1290 int ds = crypto_shash_digestsize(bctx->shash); in omap_sham_setkey()
1298 err = crypto_shash_tfm_digest(bctx->shash, key, keylen, in omap_sham_setkey()
1341 bctx->shash = crypto_alloc_shash(alg_base, 0, in omap_sham_cra_init_alg()
1343 if (IS_ERR(bctx->shash)) { in omap_sham_cra_init_alg()
1347 return PTR_ERR(bctx->shash); in omap_sham_cra_init_alg()
1403 crypto_free_shash(bctx->shash); in omap_sham_cra_exit()