1 #ifndef ASM_X86_BLOWFISH_H
2 #define ASM_X86_BLOWFISH_H
4 #include <linux/crypto.h>
5 #include <crypto/blowfish.h>
7 #define BF_PARALLEL_BLOCKS 4
9 /* regular block cipher functions */
10 asmlinkage void __blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src,
12 asmlinkage void blowfish_dec_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src);
14 /* 4-way parallel cipher functions */
15 asmlinkage void __blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst,
16 const u8 *src, bool xor);
17 asmlinkage void blowfish_dec_blk_4way(struct bf_ctx *ctx, u8 *dst,
20 static inline void blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src)
22 __blowfish_enc_blk(ctx, dst, src, false);
25 static inline void blowfish_enc_blk_xor(struct bf_ctx *ctx, u8 *dst,
28 __blowfish_enc_blk(ctx, dst, src, true);
31 static inline void blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst,
34 __blowfish_enc_blk_4way(ctx, dst, src, false);
37 static inline void blowfish_enc_blk_xor_4way(struct bf_ctx *ctx, u8 *dst,
40 __blowfish_enc_blk_4way(ctx, dst, src, true);