Home
last modified time | relevance | path

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

/crypto/
A Dhctr2.c86 u8 *p = (u8 *)tctx + sizeof(*tctx); in hctr2_hashed_tweaklen()
115 shash->tfm = tctx->polyval; in hctr2_hash_tweaklen()
155 memset(tctx->L, 0, sizeof(tctx->L)); in hctr2_setkey()
156 tctx->L[0] = 0x01; in hctr2_setkey()
157 crypto_cipher_encrypt_one(tctx->blockcipher, tctx->L, tctx->L); in hctr2_setkey()
167 return hctr2_hash_tweaklen(tctx, true) ?: hctr2_hash_tweaklen(tctx, false); in hctr2_setkey()
179 hash_desc->tfm = tctx->polyval; in hctr2_hash_tweak()
240 hash_desc->tfm = tctx->polyval; in hctr2_finish()
361 tctx->xctr = xctr; in hctr2_init_tfm()
362 tctx->blockcipher = blockcipher; in hctr2_init_tfm()
[all …]
A Dessiv.c112 desc->tfm = tctx->hash; in essiv_aead_setkey()
271 struct essiv_tfm_ctx *tctx) in essiv_init_tfm() argument
287 tctx->essiv_cipher = essiv_cipher; in essiv_init_tfm()
288 tctx->hash = hash; in essiv_init_tfm()
312 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm()
318 tctx->u.skcipher = skcipher; in essiv_skcipher_init_tfm()
345 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm()
351 tctx->u.aead = aead; in essiv_aead_init_tfm()
361 crypto_free_shash(tctx->hash); in essiv_skcipher_exit_tfm()
368 crypto_free_aead(tctx->u.aead); in essiv_aead_exit_tfm()
[all …]
A Dhmac.c43 u8 *ipad = &tctx->pads[0]; in hmac_setkey()
44 u8 *opad = &tctx->pads[ss]; in hmac_setkey()
94 desc->tfm = tctx->hash; in hmac_import()
111 desc->tfm = tctx->hash; in hmac_import_core()
138 const u8 *opad = &tctx->pads[ss]; in hmac_finup()
157 tctx->hash = hash; in hmac_init_tfm()
179 crypto_free_shash(tctx->hash); in hmac_exit_tfm()
260 u8 *opad = &tctx->pads[ss]; in hmac_setkey_ahash()
261 u8 *ipad = &tctx->pads[0]; in hmac_setkey_ahash()
422 tctx->hash = hash; in hmac_init_ahash_tfm()
[all …]
A Dadiantum.c133 crypto_skcipher_set_flags(tctx->streamcipher, in adiantum_setkey()
161 crypto_cipher_set_flags(tctx->blockcipher, in adiantum_setkey()
164 err = crypto_cipher_setkey(tctx->blockcipher, keyp, in adiantum_setkey()
299 rctx->u.hash_desc.tfm = tctx->hash; in adiantum_finish()
361 rctx->u.hash_desc.tfm = tctx->hash; in adiantum_crypt()
454 tctx->streamcipher = streamcipher; in adiantum_init_tfm()
455 tctx->blockcipher = blockcipher; in adiantum_init_tfm()
456 tctx->hash = hash; in adiantum_init_tfm()
483 crypto_free_skcipher(tctx->streamcipher); in adiantum_exit_tfm()
484 crypto_free_cipher(tctx->blockcipher); in adiantum_exit_tfm()
[all …]
A Dxxhash_generic.c23 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm); in xxhash64_setkey() local
25 if (keylen != sizeof(tctx->seed)) in xxhash64_setkey()
27 tctx->seed = get_unaligned_le64(key); in xxhash64_setkey()
33 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_init() local
36 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init()
63 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_digest() local
65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
A Dxcbc.c71 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() local
72 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()
89 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_finup() local
90 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_finup()
100 crypto_xor(prev, &tctx->consts[offset], bs); in crypto_xcbc_digest_finup()
A Dcmac.c103 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() local
104 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()
121 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_finup() local
122 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_finup()
132 crypto_xor(prev, (const u8 *)tctx->consts + offset, bs); in crypto_cmac_digest_finup()
A Dccm.c793 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update() local
794 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update()
811 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_finup() local
812 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_finup()

Completed in 17 milliseconds