Lines Matching refs:ctx
51 asmlinkage void twofish_ecb_enc_8way(struct twofish_ctx *ctx, u8 *dst,
53 asmlinkage void twofish_ecb_dec_8way(struct twofish_ctx *ctx, u8 *dst,
56 asmlinkage void twofish_cbc_dec_8way(struct twofish_ctx *ctx, u8 *dst,
58 asmlinkage void twofish_ctr_8way(struct twofish_ctx *ctx, u8 *dst,
61 asmlinkage void twofish_xts_enc_8way(struct twofish_ctx *ctx, u8 *dst,
63 asmlinkage void twofish_xts_dec_8way(struct twofish_ctx *ctx, u8 *dst,
66 static inline void twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, in twofish_enc_blk_3way() argument
69 __twofish_enc_blk_3way(ctx, dst, src, false); in twofish_enc_blk_3way()
72 static void twofish_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) in twofish_xts_enc() argument
74 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in twofish_xts_enc()
78 static void twofish_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) in twofish_xts_dec() argument
80 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in twofish_xts_dec()
219 struct twofish_ctx *ctx; member
226 struct crypt_priv *ctx = priv; in encrypt_callback() local
229 ctx->fpu_enabled = twofish_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
232 twofish_ecb_enc_8way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
237 twofish_enc_blk_3way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
242 twofish_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
248 struct crypt_priv *ctx = priv; in decrypt_callback() local
251 ctx->fpu_enabled = twofish_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
254 twofish_ecb_dec_8way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
259 twofish_dec_blk_3way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
264 twofish_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
270 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
273 .ctx = &ctx->twofish_ctx, in lrw_encrypt()
280 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
296 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
299 .ctx = &ctx->twofish_ctx, in lrw_decrypt()
306 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
322 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
326 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
332 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
336 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()