1 /* aes_locl.h
2  * Jason Holt
3  */
4 
5 #ifndef AES_LOCL_H
6 #define AES_LOCL_H
7 
8 #define GETU32(p) (((u32)(p)[3]) ^ ((u32)(p)[2] << 8) ^ ((u32)(p)[1] << 16) ^ ((u32)(p)[0] << 24))
9 
10 #define PUTU32(c, s) { (c)[3] = (u8)(s); (c)[2] = (u8)((s)>>8); (c)[1] = (u8)((s)>>16); (c)[0] = (u8)((s)>>24); }
11 
12 typedef unsigned long u32;
13 typedef unsigned short u16;
14 typedef unsigned char u8;
15 
16 #define MAXKC   (256/32)
17 #define MAXKB   (256/8)
18 #define MAXNR   14
19 
20 #undef FULL_UNROLL
21 
22 #endif
23