Home
last modified time | relevance | path

Searched refs:bctx (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c353 struct aspeed_sha_hmac_ctx *bctx = tctx->base; in aspeed_ahash_hmac_resume() local
766 err = aspeed_sham_shash_digest(bctx->shash, in aspeed_sham_setkey()
768 key, keylen, bctx->ipad); in aspeed_sham_setkey()
774 memcpy(bctx->ipad, key, keylen); in aspeed_sham_setkey()
777 memset(bctx->ipad + keylen, 0, bs - keylen); in aspeed_sham_setkey()
778 memcpy(bctx->opad, bctx->ipad, bs); in aspeed_sham_setkey()
781 bctx->ipad[i] ^= HMAC_IPAD_VALUE; in aspeed_sham_setkey()
782 bctx->opad[i] ^= HMAC_OPAD_VALUE; in aspeed_sham_setkey()
808 if (IS_ERR(bctx->shash)) { in aspeed_sham_cra_init()
812 return PTR_ERR(bctx->shash); in aspeed_sham_cra_init()
[all …]
/linux-6.15/drivers/crypto/
H A Domap-sham.c306 u32 *opad = (u32 *)bctx->opad; in omap_sham_copy_hash_omap4()
462 (u32 *)bctx->ipad, nr_dr); in omap_sham_write_ctrl_omap4()
1107 shash->tfm = bctx->shash; in omap_sham_finish_hmac()
1298 bctx->ipad); in omap_sham_setkey()
1303 memcpy(bctx->ipad, key, keylen); in omap_sham_setkey()
1309 memcpy(bctx->opad, bctx->ipad, bs); in omap_sham_setkey()
1312 bctx->ipad[i] ^= HMAC_IPAD_VALUE; in omap_sham_setkey()
1313 bctx->opad[i] ^= HMAC_OPAD_VALUE; in omap_sham_setkey()
1342 if (IS_ERR(bctx->shash)) { in omap_sham_cra_init_alg()
1346 return PTR_ERR(bctx->shash); in omap_sham_cra_init_alg()
[all …]
/linux-6.15/crypto/
H A Dblowfish_common.c311 static void encrypt_block(struct bf_ctx *bctx, u32 *dst, u32 *src) in encrypt_block() argument
313 const u32 *P = bctx->p; in encrypt_block()
314 const u32 *S = bctx->s; in encrypt_block()
/linux-6.15/fs/btrfs/
H A Dsend.c1331 struct backref_ctx *bctx = ctx_; in iterate_backrefs() local
1344 ino == bctx->cur_objectid && in iterate_backrefs()
1345 offset == bctx->cur_offset) in iterate_backrefs()
1358 if (ino > bctx->cur_objectid) in iterate_backrefs()
1366 if (ino == bctx->cur_objectid && in iterate_backrefs()
1367 offset + bctx->extent_len > in iterate_backrefs()
1372 bctx->found++; in iterate_backrefs()
1400 struct backref_ctx *bctx = ctx; in lookup_backref_cache() local
1440 struct backref_ctx *bctx = ctx; in store_backref_cache() local
1516 if (bytenr == bctx->bytenr) { in check_extent_item()
[all …]