blob: 46cb645c6edb8489b9a326d1fa390748c8b11ae5 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* 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
12typedef unsigned long u32;
13typedef unsigned short u16;
14typedef 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