Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ASM_X86_TWOFISH_H
0003 #define ASM_X86_TWOFISH_H
0004 
0005 #include <linux/crypto.h>
0006 #include <crypto/twofish.h>
0007 #include <crypto/b128ops.h>
0008 
0009 /* regular block cipher functions from twofish_x86_64 module */
0010 asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src);
0011 asmlinkage void twofish_dec_blk(const void *ctx, u8 *dst, const u8 *src);
0012 
0013 /* 3-way parallel cipher functions */
0014 asmlinkage void __twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src,
0015                        bool xor);
0016 asmlinkage void twofish_dec_blk_3way(const void *ctx, u8 *dst, const u8 *src);
0017 
0018 /* helpers from twofish_x86_64-3way module */
0019 extern void twofish_dec_blk_cbc_3way(const void *ctx, u8 *dst, const u8 *src);
0020 
0021 #endif /* ASM_X86_TWOFISH_H */