.. | .. |
---|
7 | 7 | #include <crypto/b128ops.h> |
---|
8 | 8 | |
---|
9 | 9 | /* regular block cipher functions from twofish_x86_64 module */ |
---|
10 | | -asmlinkage void twofish_enc_blk(struct twofish_ctx *ctx, u8 *dst, |
---|
11 | | - const u8 *src); |
---|
12 | | -asmlinkage void twofish_dec_blk(struct twofish_ctx *ctx, u8 *dst, |
---|
13 | | - const u8 *src); |
---|
| 10 | +asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src); |
---|
| 11 | +asmlinkage void twofish_dec_blk(const void *ctx, u8 *dst, const u8 *src); |
---|
14 | 12 | |
---|
15 | 13 | /* 3-way parallel cipher functions */ |
---|
16 | | -asmlinkage void __twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, |
---|
17 | | - const u8 *src, bool xor); |
---|
18 | | -asmlinkage void twofish_dec_blk_3way(struct twofish_ctx *ctx, u8 *dst, |
---|
19 | | - const u8 *src); |
---|
| 14 | +asmlinkage void __twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src, |
---|
| 15 | + bool xor); |
---|
| 16 | +asmlinkage void twofish_dec_blk_3way(const void *ctx, u8 *dst, const u8 *src); |
---|
20 | 17 | |
---|
21 | 18 | /* helpers from twofish_x86_64-3way module */ |
---|
22 | | -extern void twofish_dec_blk_cbc_3way(void *ctx, u128 *dst, const u128 *src); |
---|
23 | | -extern void twofish_enc_blk_ctr(void *ctx, u128 *dst, const u128 *src, |
---|
| 19 | +extern void twofish_dec_blk_cbc_3way(const void *ctx, u8 *dst, const u8 *src); |
---|
| 20 | +extern void twofish_enc_blk_ctr(const void *ctx, u8 *dst, const u8 *src, |
---|
24 | 21 | le128 *iv); |
---|
25 | | -extern void twofish_enc_blk_ctr_3way(void *ctx, u128 *dst, const u128 *src, |
---|
| 22 | +extern void twofish_enc_blk_ctr_3way(const void *ctx, u8 *dst, const u8 *src, |
---|
26 | 23 | le128 *iv); |
---|
27 | 24 | |
---|
28 | 25 | #endif /* ASM_X86_TWOFISH_H */ |
---|