/[mcrypt]/libmcrypt-nm/lib/twofish.h
ViewVC logotype

Contents of /libmcrypt-nm/lib/twofish.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Mon May 22 13:09:10 2000 UTC (23 years, 11 months ago) by nmav
Branch: MAIN, mcrypt
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain

1 #define Q_TABLES
2 #define M_TABLE
3 #define MK_TABLE
4 #define ONE_STEP
5
6 typedef struct twofish_instance {
7 word32 k_len;
8 word32 l_key[40];
9 word32 s_key[4];
10 #ifdef Q_TABLES
11 word32 qt_gen;
12 word8 q_tab[2][256];
13 #endif
14 #ifdef M_TABLE
15 word32 mt_gen;
16 word32 m_tab[4][256];
17 #endif
18 #ifdef ONE_STEP
19 word32 mk_tab[4][256];
20 #else
21 word8 sb[4][256];
22 #endif
23 } TWI;
24
25 void _mcrypt_twofish_set_key(TWI *pkey, const word32 in_key[], const word32 key_len);
26 void _mcrypt_twofish_encrypt(TWI * pkey, word32 *in_blk);
27 void _mcrypt_twofish_decrypt(TWI * pkey, word32 *in_blk);

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26