Lines Matching defs:bctx
310 struct omap_sham_hmac_ctx *bctx = tctx->base;
311 u32 *opad = (u32 *)bctx->opad;
475 struct omap_sham_hmac_ctx *bctx = tctx->base;
485 (u32 *)bctx->ipad, nr_dr);
487 (u32 *)bctx->ipad + nr_dr, nr_dr);
1015 struct omap_sham_hmac_ctx *bctx = tctx->base;
1017 memcpy(ctx->buffer, bctx->ipad, bs);
1118 struct omap_sham_hmac_ctx *bctx = tctx->base;
1119 int bs = crypto_shash_blocksize(bctx->shash);
1120 int ds = crypto_shash_digestsize(bctx->shash);
1121 SHASH_DESC_ON_STACK(shash, bctx->shash);
1123 shash->tfm = bctx->shash;
1126 crypto_shash_update(shash, bctx->opad, bs) ?:
1303 struct omap_sham_hmac_ctx *bctx = tctx->base;
1304 int bs = crypto_shash_blocksize(bctx->shash);
1305 int ds = crypto_shash_digestsize(bctx->shash);
1313 err = crypto_shash_tfm_digest(bctx->shash, key, keylen,
1314 bctx->ipad);
1319 memcpy(bctx->ipad, key, keylen);
1322 memset(bctx->ipad + keylen, 0, bs - keylen);
1325 memcpy(bctx->opad, bctx->ipad, bs);
1328 bctx->ipad[i] ^= HMAC_IPAD_VALUE;
1329 bctx->opad[i] ^= HMAC_OPAD_VALUE;
1354 struct omap_sham_hmac_ctx *bctx = tctx->base;
1356 bctx->shash = crypto_alloc_shash(alg_base, 0,
1358 if (IS_ERR(bctx->shash)) {
1362 return PTR_ERR(bctx->shash);
1417 struct omap_sham_hmac_ctx *bctx = tctx->base;
1418 crypto_free_shash(bctx->shash);