Lines Matching refs:ctx
30 asmlinkage void camellia_ecb_enc_16way(struct camellia_ctx *ctx, u8 *dst,
34 asmlinkage void camellia_ecb_dec_16way(struct camellia_ctx *ctx, u8 *dst,
38 asmlinkage void camellia_cbc_dec_16way(struct camellia_ctx *ctx, u8 *dst,
42 asmlinkage void camellia_ctr_16way(struct camellia_ctx *ctx, u8 *dst,
46 asmlinkage void camellia_xts_enc_16way(struct camellia_ctx *ctx, u8 *dst,
50 asmlinkage void camellia_xts_dec_16way(struct camellia_ctx *ctx, u8 *dst,
54 void camellia_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) in camellia_xts_enc() argument
56 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in camellia_xts_enc()
61 void camellia_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) in camellia_xts_dec() argument
63 glue_xts_crypt_128bit_one(ctx, dst, src, iv, in camellia_xts_dec()
210 struct camellia_ctx *ctx; member
217 struct crypt_priv *ctx = priv; in encrypt_callback() local
220 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
223 camellia_ecb_enc_16way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
229 camellia_enc_blk_2way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
235 camellia_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
241 struct crypt_priv *ctx = priv; in decrypt_callback() local
244 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
247 camellia_ecb_dec_16way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
253 camellia_dec_blk_2way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
259 camellia_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
265 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
268 .ctx = &ctx->camellia_ctx, in lrw_encrypt()
275 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
291 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
294 .ctx = &ctx->camellia_ctx, in lrw_decrypt()
301 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
317 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
321 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
327 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
331 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()