Lines Matching defs:bctx
305 struct omap_sham_hmac_ctx *bctx = tctx->base;
306 u32 *opad = (u32 *)bctx->opad;
452 struct omap_sham_hmac_ctx *bctx = tctx->base;
462 (u32 *)bctx->ipad, nr_dr);
464 (u32 *)bctx->ipad + nr_dr, nr_dr);
992 struct omap_sham_hmac_ctx *bctx = tctx->base;
994 memcpy(ctx->buffer, bctx->ipad, bs);
1102 struct omap_sham_hmac_ctx *bctx = tctx->base;
1103 int bs = crypto_shash_blocksize(bctx->shash);
1104 int ds = crypto_shash_digestsize(bctx->shash);
1105 SHASH_DESC_ON_STACK(shash, bctx->shash);
1107 shash->tfm = bctx->shash;
1110 crypto_shash_update(shash, bctx->opad, bs) ?:
1287 struct omap_sham_hmac_ctx *bctx = tctx->base;
1288 int bs = crypto_shash_blocksize(bctx->shash);
1289 int ds = crypto_shash_digestsize(bctx->shash);
1297 err = crypto_shash_tfm_digest(bctx->shash, key, keylen,
1298 bctx->ipad);
1303 memcpy(bctx->ipad, key, keylen);
1306 memset(bctx->ipad + keylen, 0, bs - keylen);
1309 memcpy(bctx->opad, bctx->ipad, bs);
1312 bctx->ipad[i] ^= HMAC_IPAD_VALUE;
1313 bctx->opad[i] ^= HMAC_OPAD_VALUE;
1338 struct omap_sham_hmac_ctx *bctx = tctx->base;
1340 bctx->shash = crypto_alloc_shash(alg_base, 0,
1342 if (IS_ERR(bctx->shash)) {
1346 return PTR_ERR(bctx->shash);
1397 struct omap_sham_hmac_ctx *bctx = tctx->base;
1398 crypto_free_shash(bctx->shash);