Lines Matching refs:ctx
29 asmlinkage void camellia_ecb_enc_16way(struct camellia_ctx *ctx, u8 *dst,
33 asmlinkage void camellia_ecb_dec_16way(struct camellia_ctx *ctx, u8 *dst,
37 asmlinkage void camellia_cbc_dec_16way(struct camellia_ctx *ctx, u8 *dst,
41 asmlinkage void camellia_ctr_16way(struct camellia_ctx *ctx, u8 *dst,
45 asmlinkage void camellia_xts_enc_16way(struct camellia_ctx *ctx, u8 *dst,
49 asmlinkage void camellia_xts_dec_16way(struct camellia_ctx *ctx, u8 *dst,
53 void camellia_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) in camellia_xts_enc() argument
55 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in camellia_xts_enc()
60 void camellia_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) in camellia_xts_dec() argument
62 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in camellia_xts_dec()
209 struct camellia_ctx *ctx; member
216 struct crypt_priv *ctx = priv; in encrypt_callback() local
219 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
222 camellia_ecb_enc_16way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
228 camellia_enc_blk_2way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
234 camellia_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
240 struct crypt_priv *ctx = priv; in decrypt_callback() local
243 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
246 camellia_ecb_dec_16way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
252 camellia_dec_blk_2way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
258 camellia_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
264 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
267 .ctx = &ctx->camellia_ctx, in lrw_encrypt()
274 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
290 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
293 .ctx = &ctx->camellia_ctx, in lrw_decrypt()
300 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
316 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
320 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
326 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
330 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()