Lines Matching refs:ctx
22 asmlinkage void __blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src,
24 asmlinkage void blowfish_dec_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src);
27 asmlinkage void __blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst,
29 asmlinkage void blowfish_dec_blk_4way(struct bf_ctx *ctx, u8 *dst,
32 static inline void blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src)
34 __blowfish_enc_blk(ctx, dst, src, false);
37 static inline void blowfish_enc_blk_xor(struct bf_ctx *ctx, u8 *dst,
40 __blowfish_enc_blk(ctx, dst, src, true);
43 static inline void blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst,
46 __blowfish_enc_blk_4way(ctx, dst, src, false);
49 static inline void blowfish_enc_blk_xor_4way(struct bf_ctx *ctx, u8 *dst,
52 __blowfish_enc_blk_4way(ctx, dst, src, true);
77 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm);
91 fn_4way(ctx, wdst, wsrc);
104 fn(ctx, wdst, wsrc);
128 static unsigned int __cbc_encrypt(struct bf_ctx *ctx,
139 blowfish_enc_blk(ctx, (u8 *)dst, (u8 *)dst);
154 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm);
162 nbytes = __cbc_encrypt(ctx, &walk);
169 static unsigned int __cbc_decrypt(struct bf_ctx *ctx,
196 blowfish_dec_blk_4way(ctx, (u8 *)dst, (u8 *)src);
214 blowfish_dec_blk(ctx, (u8 *)dst, (u8 *)src);
235 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm);
243 nbytes = __cbc_decrypt(ctx, &walk);
250 static void ctr_crypt_final(struct bf_ctx *ctx, struct skcipher_walk *walk)
258 blowfish_enc_blk(ctx, keystream, ctrblk);
264 static unsigned int __ctr_crypt(struct bf_ctx *ctx, struct skcipher_walk *walk)
289 blowfish_enc_blk_xor_4way(ctx, (u8 *)dst,
307 blowfish_enc_blk_xor(ctx, (u8 *)dst, (u8 *)ctrblocks);
321 struct bf_ctx *ctx = crypto_skcipher_ctx(tfm);
329 nbytes = __ctr_crypt(ctx, &walk);
334 ctr_crypt_final(ctx, &walk);