Home
last modified time | relevance | path

Searched refs:tctx (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/crypto/
Dtgr192.c467 static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data) in tgr192_transform() argument
477 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() local
502 tctx->a = 0x0123456789abcdefULL; in tgr192_init()
503 tctx->b = 0xfedcba9876543210ULL; in tgr192_init()
[all …]
Dvmac.c398 static void vhash_blocks(const struct vmac_tfm_ctx *tctx, in vhash_blocks() argument
402 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() local
443 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 …]
Dxcbc.c99 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() local
101 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() local
147 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()
Dcmac.c127 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() local
129 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() local
175 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final()
177 u8 *consts = PTR_ALIGN((void *)tctx->ctx, in crypto_cmac_digest_final()
Dccm.c876 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update() local
878 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() local
904 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_final()