-
Notifications
You must be signed in to change notification settings - Fork 2
/
lookup.h
172 lines (164 loc) · 13 KB
/
lookup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
unsigned char s_box[256] = {
0X63, 0X7C, 0X77, 0X7B, 0XF2, 0X6B, 0X6F, 0XC5, 0X30, 0X01, 0X67, 0X2B, 0XFE, 0XD7, 0XAB, 0X76,
0XCA, 0X82, 0XC9, 0X7D, 0XFA, 0X59, 0X47, 0XF0, 0XAD, 0XD4, 0XA2, 0XAF, 0X9C, 0XA4, 0X72, 0XC0,
0XB7, 0XFD, 0X93, 0X26, 0X36, 0X3F, 0XF7, 0XCC, 0X34, 0XA5, 0XE5, 0XF1, 0X71, 0XD8, 0X31, 0X15,
0X04, 0XC7, 0X23, 0XC3, 0X18, 0X96, 0X05, 0X9A, 0X07, 0X12, 0X80, 0XE2, 0XEB, 0X27, 0XB2, 0X75,
0X09, 0X83, 0X2C, 0X1A, 0X1B, 0X6E, 0X5A, 0XA0, 0X52, 0X3B, 0XD6, 0XB3, 0X29, 0XE3, 0X2F, 0X84,
0X53, 0XD1, 0X00, 0XED, 0X20, 0XFC, 0XB1, 0X5B, 0X6A, 0XCB, 0XBE, 0X39, 0X4A, 0X4C, 0X58, 0XCF,
0XD0, 0XEF, 0XAA, 0XFB, 0X43, 0X4D, 0X33, 0X85, 0X45, 0XF9, 0X02, 0X7F, 0X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, 0X0D, 0X2D, 0XE5, 0X7A, 0X9F, 0X93, 0XC9, 0X9C, 0XEF,
0XA0, 0XE0, 0X3B, 0X4D, 0XAE, 0X2A, 0XF5, 0XB0, 0XC8, 0XEB, 0XBB, 0X3C, 0X83, 0X53, 0X99, 0X61,
0X17, 0X2B, 0X04, 0X7E, 0XBA, 0X77, 0XD6, 0X26, 0XE1, 0X69, 0X14, 0X63, 0X55, 0X21, 0X0C, 0X7D
};
unsigned char mul2[256] = {
// 0 1 2 3 4 5 6 7 8 A B C D E F 10
0X00,0X02,0X04,0X06,0X08,0X0A,0X0C,0X0E,0X10,0X12,0X14,0X16,0X18,0X1A,0X1C,0X1E, //0
0X20,0X22,0X24,0X26,0X28,0X2A,0X2C,0X2E,0X30,0X32,0X34,0X36,0X38,0X3A,0X3C,0X3E, //1
0X40,0X42,0X44,0X46,0X48,0X4A,0X4C,0X4E,0X50,0X52,0X54,0X56,0X58,0X5A,0X5C,0X5E, //2
0X60,0X62,0X64,0X66,0X68,0X6A,0X6C,0X6E,0X70,0X72,0X74,0X76,0X78,0X7A,0X7C,0X7E, //3
0X80,0X82,0X84,0X86,0X88,0X8A,0X8C,0X8E,0X90,0X92,0X94,0X96,0X98,0X9A,0X9C,0X9E, //4
0XA0,0XA2,0XA4,0XA6,0XA8,0XAA,0XAC,0XAE,0XB0,0XB2,0XB4,0XB6,0XB8,0XBA,0XBC,0XBE, //5
0XC0,0XC2,0XC4,0XC6,0XC8,0XCA,0XCC,0XCE,0XD0,0XD2,0XD4,0XD6,0XD8,0XDA,0XDC,0XDE, //6
0XE0,0XE2,0XE4,0XE6,0XE8,0XEA,0XEC,0XEE,0XF0,0XF2,0XF4,0XF6,0XF8,0XFA,0XFC,0XFE, //7
0X1B,0X19,0X1F,0X1D,0X13,0X11,0X17,0X15,0X0B,0X09,0X0F,0X0D,0X03,0X01,0X07,0X05, //8
0X3B,0X39,0X3F,0X3D,0X33,0X31,0X37,0X35,0X2B,0X29,0X2F,0X2D,0X23,0X21,0X27,0X25, //A
0X5B,0X59,0X5F,0X5D,0X53,0X51,0X57,0X55,0X4B,0X49,0X4F,0X4D,0X43,0X41,0X47,0X45, //B
0X7B,0X79,0X7F,0X7D,0X73,0X71,0X77,0X75,0X6B,0X69,0X6F,0X6D,0X63,0X61,0X67,0X65, //C
0X9B,0X99,0X9F,0X9D,0X93,0X91,0X97,0X95,0X8B,0X89,0X8F,0X8D,0X83,0X81,0X87,0X85, //D
0XBB,0XB9,0XBF,0XBD,0XB3,0XB1,0XB7,0XB5,0XAB,0XA9,0XAF,0XAD,0XA3,0XA1,0XA7,0XA5, //E
0XDB,0XD9,0XDF,0XDD,0XD3,0XD1,0XD7,0XD5,0XCB,0XC9,0XCF,0XCD,0XC3,0XC1,0XC7,0XC5, //F
0XFB,0XF9,0XFF,0XFD,0XF3,0XF1,0XF7,0XF5,0XEB,0XE9,0XEF,0XED,0XE3,0XE1,0XE7,0XE5 //10
};
unsigned char mul3[256] = {
// 0 1 2 3 4 5 6 7 8 A B C D E F 10
0X00,0X03,0X06,0X05,0X0C,0X0F,0X0A,0X09,0X18,0X1B,0X1E,0X1D,0X14,0X17,0X12,0X11, //0
0X30,0X33,0X36,0X35,0X3C,0X3F,0X3A,0X39,0X28,0X2B,0X2E,0X2D,0X24,0X27,0X22,0X21, //1
0X60,0X63,0X66,0X65,0X6C,0X6F,0X6A,0X69,0X78,0X7B,0X7E,0X7D,0X74,0X77,0X72,0X71, //2
0X50,0X53,0X56,0X55,0X5C,0X5F,0X5A,0X59,0X48,0X4B,0X4E,0X4D,0X44,0X47,0X42,0X41, //3
0XC0,0XC3,0XC6,0XC5,0XCC,0XCF,0XCA,0XC9,0XD8,0XDB,0XDE,0XDD,0XD4,0XD7,0XD2,0XD1, //4
0XF0,0XF3,0XF6,0XF5,0XFC,0XFF,0XFA,0XF9,0XE8,0XEB,0XEE,0XED,0XE4,0XE7,0XE2,0XE1, //5
0XA0,0XA3,0XA6,0XA5,0XAC,0XAF,0XAA,0XA9,0XB8,0XBB,0XBE,0XBD,0XB4,0XB7,0XB2,0XB1, //6
0X90,0X93,0X96,0X95,0X9C,0X9F,0X9A,0X99,0X88,0X8B,0X8E,0X8D,0X84,0X87,0X82,0X81, //7
0X9B,0X98,0X9D,0X9E,0X97,0X94,0X91,0X92,0X83,0X80,0X85,0X86,0X8F,0X8C,0X89,0X8A, //8
0XAB,0XA8,0XAD,0XAE,0XA7,0XA4,0XA1,0XA2,0XB3,0XB0,0XB5,0XB6,0XBF,0XBC,0XB9,0XBA, //A
0XFB,0XF8,0XFD,0XFE,0XF7,0XF4,0XF1,0XF2,0XE3,0XE0,0XE5,0XE6,0XEF,0XEC,0XE9,0XEA, //B
0XCB,0XC8,0XCD,0XCE,0XC7,0XC4,0XC1,0XC2,0XD3,0XD0,0XD5,0XD6,0XDF,0XDC,0XD9,0XDA, //C
0X5B,0X58,0X5D,0X5E,0X57,0X54,0X51,0X52,0X43,0X40,0X45,0X46,0X4F,0X4C,0X49,0X4A, //D
0X6B,0X68,0X6D,0X6E,0X67,0X64,0X61,0X62,0X73,0X70,0X75,0X76,0X7F,0X7C,0X79,0X7A, //E
0X3B,0X38,0X3D,0X3E,0X37,0X34,0X31,0X32,0X23,0X20,0X25,0X26,0X2F,0X2C,0X29,0X2A, //F
0X0B,0X08,0X0D,0X0E,0X07,0X04,0X01,0X02,0X13,0X10,0X15,0X16,0X1F,0X1C,0X19,0X1A //10
};
unsigned char rcon[256] = {
0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a,
0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39,
0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
0x74, 0xe8, 0xcb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,
0X06,0X0B,0X1C,0X11,0X32,0X3F,0X28,0X25,0X6E,0X63,0X74,0X79,0X5A,0X57,0X40,0X4D,
0XDA,0XD7,0XC0,0XCD,0XEE,0XE3,0XF4,0XF9,0XB2,0XBF,0XA8,0XA5,0X86,0X8B,0X9C,0X91,
0X0A,0X07,0X10,0X1D,0X3E,0X33,0X24,0X29,0X62,0X6F,0X78,0X75,0X56,0X5B,0X4C,0X41,
0X61,0X6C,0X7B,0X76,0X55,0X58,0X4F,0X42,0X09,0X04,0X13,0X1E,0X3D,0X30,0X27,0X2A,
0XB1,0XBC,0XAB,0XA6,0X85,0X88,0X9F,0X92,0XD9,0XD4,0XC3,0XCE,0XED,0XE0,0XF7,0XFA,
0XB7,0XBA,0XAD,0XA0,0X83,0X8E,0X99,0X94,0XDF,0XD2,0XC5,0XC8,0XEB,0XE6,0XF1,0XFC,
0X67,0X6A,0X7D,0X70,0X53,0X5E,0X49,0X44,0X0F,0X02,0X15,0X18,0X3B,0X36,0X21,0X2C,
0X0C,0X01,0X16,0X1B,0X38,0X35,0X22,0X2F,0X64,0X69,0X7E,0X73,0X50,0X5D,0X4A,0X47,
0XDC,0XD1,0XC6,0XCB,0XE8,0XE5,0XF2,0XFF,0XB4,0XB9,0XAE,0XA3,0X80,0X8D,0X9A,0X97
};
unsigned char mul14[256] = {
0x00,0x0e,0x1c,0x12,0x38,0x36,0x24,0x2a,0x70,0x7e,0x6c,0x62,0x48,0x46,0x54,0x5a,
0xe0,0xee,0xfc,0xf2,0xd8,0xd6,0xc4,0xca,0x90,0x9e,0x8c,0x82,0xa8,0xa6,0xb4,0xba,
0xdb,0xd5,0xc7,0xc9,0xe3,0xed,0xff,0xf1,0xab,0xa5,0xb7,0xb9,0x93,0x9d,0x8f,0x81,
0x3b,0x35,0x27,0x29,0x03,0x0d,0x1f,0x11,0x4b,0x45,0x57,0x59,0x73,0x7d,0x6f,0x61,
0xad,0xa3,0xb1,0xbf,0x95,0x9b,0x89,0x87,0xdd,0xd3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