Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
twofish.h
Go to the documentation of this file.
1 #ifndef ASM_X86_TWOFISH_H
2 #define ASM_X86_TWOFISH_H
3 
4 #include <linux/crypto.h>
5 #include <crypto/twofish.h>
6 #include <crypto/lrw.h>
7 #include <crypto/b128ops.h>
8 
12 };
13 
17 };
18 
19 /* regular block cipher functions from twofish_x86_64 module */
21  const u8 *src);
23  const u8 *src);
24 
25 /* 3-way parallel cipher functions */
27  const u8 *src, bool xor);
29  const u8 *src);
30 
31 /* helpers from twofish_x86_64-3way module */
32 extern void twofish_dec_blk_cbc_3way(void *ctx, u128 *dst, const u128 *src);
33 extern void twofish_enc_blk_ctr(void *ctx, u128 *dst, const u128 *src,
34  u128 *iv);
35 extern void twofish_enc_blk_ctr_3way(void *ctx, u128 *dst, const u128 *src,
36  u128 *iv);
37 
38 extern int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key,
39  unsigned int keylen);
40 
41 extern void lrw_twofish_exit_tfm(struct crypto_tfm *tfm);
42 
43 extern int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key,
44  unsigned int keylen);
45 
46 #endif /* ASM_X86_TWOFISH_H */