4 #if defined(__cplusplus)
10 #define u4byte unsigned __int32
13 #define u1byte unsigned char
17 #define extract_byte(x,n) ((u1byte)((x) >> (8 * n)))
24 #pragma intrinsic(_lrotr,_lrotl)
25 #define rotr(x,n) _lrotr(x,n)
26 #define rotl(x,n) _lrotl(x,n)
28 #define rotr(x,n) (((x)>>(n))|((x)<<(32-(n))))
29 #define rotl(x,n) (((x)<<(n))|((x)>>(32-(n))))
37 #if !defined (TC_MINIMIZE_CODE_SIZE) || defined (TC_WINDOWS_BOOT_TWOFISH)
38 u4byte mk_tab
[4 * 256];
43 #define TWOFISH_KS sizeof(TwofishInstance)
45 u4byte
* twofish_set_key(TwofishInstance
*instance
, const u4byte in_key
[], const u4byte key_len
);
46 void twofish_encrypt(TwofishInstance
*instance
, const u4byte in_blk
[4], u4byte out_blk
[]);
47 void twofish_decrypt(TwofishInstance
*instance
, const u4byte in_blk
[4], u4byte out_blk
[4]);
49 #if defined(__cplusplus)