Lines Matching refs:tctx
119 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
131 crypto_skcipher_clear_flags(tctx->streamcipher, CRYPTO_TFM_REQ_MASK);
132 crypto_skcipher_set_flags(tctx->streamcipher,
135 err = crypto_skcipher_setkey(tctx->streamcipher, key, keylen);
141 crypto_skcipher_reqsize(tctx->streamcipher), GFP_KERNEL);
147 skcipher_request_set_tfm(&data->req, tctx->streamcipher);
159 crypto_cipher_clear_flags(tctx->blockcipher, CRYPTO_TFM_REQ_MASK);
160 crypto_cipher_set_flags(tctx->blockcipher,
163 err = crypto_cipher_setkey(tctx->blockcipher, keyp,
170 poly1305_core_setkey(&tctx->header_hash_key, keyp);
173 crypto_shash_clear_flags(tctx->hash, CRYPTO_TFM_REQ_MASK);
174 crypto_shash_set_flags(tctx->hash, crypto_skcipher_get_flags(tfm) &
176 err = crypto_shash_setkey(tctx->hash, keyp, NHPOLY1305_KEY_SIZE);
221 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
235 poly1305_core_blocks(&state, &tctx->header_hash_key,
239 poly1305_core_blocks(&state, &tctx->header_hash_key, req->iv,
250 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
258 hash_desc->tfm = tctx->hash;
284 const struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
292 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);