Searched refs:tctx (Results 1 – 5 of 5) sorted by relevance
467 static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data) in tgr192_transform() argument477 a = aa = tctx->a; in tgr192_transform()478 b = bb = tctx->b; in tgr192_transform()479 c = cc = tctx->c; in tgr192_transform()493 tctx->a = a; in tgr192_transform()494 tctx->b = b; in tgr192_transform()495 tctx->c = c; in tgr192_transform()500 struct tgr192_ctx *tctx = shash_desc_ctx(desc); in tgr192_init() local502 tctx->a = 0x0123456789abcdefULL; in tgr192_init()503 tctx->b = 0xfedcba9876543210ULL; in tgr192_init()[all …]
398 static void vhash_blocks(const struct vmac_tfm_ctx *tctx, in vhash_blocks() argument402 const u64 *kptr = tctx->nhkey; in vhash_blocks()403 const u64 pkh = tctx->polykey[0]; in vhash_blocks()404 const u64 pkl = tctx->polykey[1]; in vhash_blocks()432 struct vmac_tfm_ctx *tctx = crypto_shash_ctx(tfm); in vmac_setkey() local443 err = crypto_cipher_setkey(tctx->cipher, key, keylen); in vmac_setkey()449 for (i = 0; i < ARRAY_SIZE(tctx->nhkey); i += 2) { in vmac_setkey()450 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey()451 tctx->nhkey[i] = be64_to_cpu(out[0]); in vmac_setkey()452 tctx->nhkey[i+1] = be64_to_cpu(out[1]); in vmac_setkey()[all …]
99 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() local101 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()145 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_final() local147 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final()149 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
127 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() local129 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()173 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_final() local175 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final()177 u8 *consts = PTR_ALIGN((void *)tctx->ctx, in crypto_cmac_digest_final()
876 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update() local878 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update()902 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_final() local904 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_final()