Lines Matching refs:ctx
49 asmlinkage void twofish_ecb_enc_8way(struct twofish_ctx *ctx, u8 *dst,
51 asmlinkage void twofish_ecb_dec_8way(struct twofish_ctx *ctx, u8 *dst,
54 asmlinkage void twofish_cbc_dec_8way(struct twofish_ctx *ctx, u8 *dst,
56 asmlinkage void twofish_ctr_8way(struct twofish_ctx *ctx, u8 *dst,
59 asmlinkage void twofish_xts_enc_8way(struct twofish_ctx *ctx, u8 *dst,
61 asmlinkage void twofish_xts_dec_8way(struct twofish_ctx *ctx, u8 *dst,
64 static inline void twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, in twofish_enc_blk_3way() argument
67 __twofish_enc_blk_3way(ctx, dst, src, false); in twofish_enc_blk_3way()
70 static void twofish_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) in twofish_xts_enc() argument
72 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in twofish_xts_enc()
76 static void twofish_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) in twofish_xts_dec() argument
78 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in twofish_xts_dec()
217 struct twofish_ctx *ctx; member
224 struct crypt_priv *ctx = priv; in encrypt_callback() local
227 ctx->fpu_enabled = twofish_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
230 twofish_ecb_enc_8way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
235 twofish_enc_blk_3way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
240 twofish_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
246 struct crypt_priv *ctx = priv; in decrypt_callback() local
249 ctx->fpu_enabled = twofish_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
252 twofish_ecb_dec_8way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
257 twofish_dec_blk_3way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
262 twofish_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
268 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
271 .ctx = &ctx->twofish_ctx, in lrw_encrypt()
278 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
294 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
297 .ctx = &ctx->twofish_ctx, in lrw_decrypt()
304 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
320 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
324 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
330 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
334 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()