Lines Matching defs:tctx

120 	struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
132 crypto_skcipher_clear_flags(tctx->streamcipher, CRYPTO_TFM_REQ_MASK);
133 crypto_skcipher_set_flags(tctx->streamcipher,
136 err = crypto_skcipher_setkey(tctx->streamcipher, key, keylen);
142 crypto_skcipher_reqsize(tctx->streamcipher), GFP_KERNEL);
148 skcipher_request_set_tfm(&data->req, tctx->streamcipher);
160 crypto_cipher_clear_flags(tctx->blockcipher, CRYPTO_TFM_REQ_MASK);
161 crypto_cipher_set_flags(tctx->blockcipher,
164 err = crypto_cipher_setkey(tctx->blockcipher, keyp,
171 poly1305_core_setkey(&tctx->header_hash_key, keyp);
174 crypto_shash_clear_flags(tctx->hash, CRYPTO_TFM_REQ_MASK);
175 crypto_shash_set_flags(tctx->hash, crypto_skcipher_get_flags(tfm) &
177 err = crypto_shash_setkey(tctx->hash, keyp, NHPOLY1305_KEY_SIZE);
222 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
236 poly1305_core_blocks(&state, &tctx->header_hash_key,
240 poly1305_core_blocks(&state, &tctx->header_hash_key, req->iv,
281 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
291 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes,
299 rctx->u.hash_desc.tfm = tctx->hash;
341 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
361 rctx->u.hash_desc.tfm = tctx->hash;
383 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes,
407 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher);
431 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
454 tctx->streamcipher = streamcipher;
455 tctx->blockcipher = blockcipher;
456 tctx->hash = hash;
481 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
483 crypto_free_skcipher(tctx->streamcipher);
484 crypto_free_cipher(tctx->blockcipher);
485 crypto_free_shash(tctx->hash);