File: twofish.h

package info (click to toggle)
libmcrypt 2.5.8-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,060 kB
  • sloc: ansic: 15,868; sh: 8,579; makefile: 196
file content (24 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define Q_TABLES
#define M_TABLE
#define MK_TABLE
#define ONE_STEP

typedef struct twofish_instance {
	word32  k_len;
	word32  l_key[40];
	word32  s_key[4];
#ifdef  Q_TABLES
	word32 qt_gen;
	byte q_tab[2][256];
#endif
#ifdef  M_TABLE
	word32 mt_gen;
	word32 m_tab[4][256];
#endif
#ifdef  ONE_STEP
	word32 mk_tab[4][256];
#else
	byte sb[4][256];
#endif
} TWI;