Lines Matching refs:shash
113 struct crypto_shash *shash;
580 int bs = crypto_shash_blocksize(bctx->shash);
581 int ds = crypto_shash_digestsize(bctx->shash);
583 struct shash_desc shash;
584 char ctx[crypto_shash_descsize(bctx->shash)];
587 desc.shash.tfm = bctx->shash;
588 desc.shash.flags = 0; /* not CRYPTO_TFM_REQ_MAY_SLEEP */
590 return crypto_shash_init(&desc.shash) ?:
591 crypto_shash_update(&desc.shash, bctx->opad, bs) ?:
592 crypto_shash_finup(&desc.shash, req->result, ds, req->result);
733 static int omap_sham_shash_digest(struct crypto_shash *shash, u32 flags,
737 struct shash_desc shash;
738 char ctx[crypto_shash_descsize(shash)];
741 desc.shash.tfm = shash;
742 desc.shash.flags = flags & CRYPTO_TFM_REQ_MAY_SLEEP;
744 return crypto_shash_digest(&desc.shash, data, len, out);
804 int bs = crypto_shash_blocksize(bctx->shash);
805 int ds = crypto_shash_digestsize(bctx->shash);
812 err = omap_sham_shash_digest(bctx->shash,
813 crypto_shash_get_flags(bctx->shash),
853 bctx->shash = crypto_alloc_shash(alg_base, 0,
855 if (IS_ERR(bctx->shash)) {
859 return PTR_ERR(bctx->shash);
891 crypto_free_shash(bctx->shash);