Lines Matching refs: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,
251 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
259 hash_desc->tfm = tctx->hash;
285 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
293 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->rbuf.bytes,
324 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
352 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->rbuf.bytes,
376 skcipher_request_set_tfm(&rctx->u.streamcipher_req, tctx->streamcipher);
400 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
423 tctx->streamcipher = streamcipher;
424 tctx->blockcipher = blockcipher;
425 tctx->hash = hash;
450 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
452 crypto_free_skcipher(tctx->streamcipher);
453 crypto_free_cipher(tctx->blockcipher);
454 crypto_free_shash(tctx->hash);