Fixed HMAC for SHA-384 and SHA-512 with keys longer than 64 bytes.
[libgcrypt.git] / cipher / rijndael-tables.h
1 /* rijndael-tables.h - Rijndael (AES) for GnuPG, 
2  * Copyright (C) 2000, 2001, 2002, 2003, 2007,
3  *               2008 Free Software Foundation, Inc.
4  *
5  * This file is part of Libgcrypt.
6  *
7  * Libgcrypt is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * Libgcrypt is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this program; if not, see <http://www.gnu.org/licenses/>.
19  */
20
21 /* To keep the actual implementation at a readable size we use this
22    include file to define the tables.  */
23
24 static const unsigned char S[256] = 
25   {
26      99, 124, 119, 123, 242, 107, 111, 197,
27      48,   1, 103,  43, 254, 215, 171, 118, 
28     202, 130, 201, 125, 250,  89,  71, 240,
29     173, 212, 162, 175, 156, 164, 114, 192, 
30     183, 253, 147,  38,  54,  63, 247, 204,
31      52, 165, 229, 241, 113, 216,  49,  21, 
32       4, 199,  35, 195,  24, 150,   5, 154,
33       7,  18, 128, 226, 235,  39, 178, 117, 
34       9, 131,  44,  26,  27, 110,  90, 160, 
35      82,  59, 214, 179,  41, 227,  47, 132, 
36      83, 209,   0, 237,  32, 252, 177,  91,
37     106, 203, 190,  57,  74,  76,  88, 207, 
38     208, 239, 170, 251,  67,  77,  51, 133,
39      69, 249,   2, 127,  80,  60, 159, 168, 
40      81, 163,  64, 143, 146, 157,  56, 245,
41     188, 182, 218,  33,  16, 255, 243, 210, 
42     205,  12,  19, 236,  95, 151,  68,  23,
43     196, 167, 126,  61, 100,  93,  25, 115, 
44      96, 129,  79, 220,  34,  42, 144, 136,
45      70, 238, 184,  20, 222,  94,  11, 219, 
46     224,  50,  58,  10,  73,   6,  36,  92,
47     194, 211, 172,  98, 145, 149, 228, 121, 
48     231, 200,  55, 109, 141, 213,  78, 169, 
49     108,  86, 244, 234, 101, 122, 174,   8, 
50     186, 120,  37,  46,  28, 166, 180, 198, 
51     232, 221, 116,  31,  75, 189, 139, 138, 
52     112,  62, 181, 102,  72,   3, 246,  14,
53      97,  53,  87, 185, 134, 193,  29, 158, 
54     225, 248, 152,  17, 105, 217, 142, 148,
55     155,  30, 135, 233, 206,  85,  40, 223, 
56     140, 161, 137,  13, 191, 230,  66, 104, 
57      65, 153,  45,  15, 176,  84, 187,  22
58   };
59
60
61 static const unsigned char T1[256][4] = 
62   {
63     { 0xc6,0x63,0x63,0xa5 }, { 0xf8,0x7c,0x7c,0x84 },
64     { 0xee,0x77,0x77,0x99 }, { 0xf6,0x7b,0x7b,0x8d }, 
65     { 0xff,0xf2,0xf2,0x0d }, { 0xd6,0x6b,0x6b,0xbd },
66     { 0xde,0x6f,0x6f,0xb1 }, { 0x91,0xc5,0xc5,0x54 }, 
67     { 0x60,0x30,0x30,0x50 }, { 0x02,0x01,0x01,0x03 },
68     { 0xce,0x67,0x67,0xa9 }, { 0x56,0x2b,0x2b,0x7d }, 
69     { 0xe7,0xfe,0xfe,0x19 }, { 0xb5,0xd7,0xd7,0x62 },
70     { 0x4d,0xab,0xab,0xe6 }, { 0xec,0x76,0x76,0x9a }, 
71     { 0x8f,0xca,0xca,0x45 }, { 0x1f,0x82,0x82,0x9d },
72     { 0x89,0xc9,0xc9,0x40 }, { 0xfa,0x7d,0x7d,0x87 }, 
73     { 0xef,0xfa,0xfa,0x15 }, { 0xb2,0x59,0x59,0xeb }, 
74     { 0x8e,0x47,0x47,0xc9 }, { 0xfb,0xf0,0xf0,0x0b }, 
75     { 0x41,0xad,0xad,0xec }, { 0xb3,0xd4,0xd4,0x67 },
76     { 0x5f,0xa2,0xa2,0xfd }, { 0x45,0xaf,0xaf,0xea }, 
77     { 0x23,0x9c,0x9c,0xbf }, { 0x53,0xa4,0xa4,0xf7 },
78     { 0xe4,0x72,0x72,0x96 }, { 0x9b,0xc0,0xc0,0x5b }, 
79     { 0x75,0xb7,0xb7,0xc2 }, { 0xe1,0xfd,0xfd,0x1c },
80     { 0x3d,0x93,0x93,0xae }, { 0x4c,0x26,0x26,0x6a }, 
81     { 0x6c,0x36,0x36,0x5a }, { 0x7e,0x3f,0x3f,0x41 },
82     { 0xf5,0xf7,0xf7,0x02 }, { 0x83,0xcc,0xcc,0x4f }, 
83     { 0x68,0x34,0x34,0x5c }, { 0x51,0xa5,0xa5,0xf4 }, 
84     { 0xd1,0xe5,0xe5,0x34 }, { 0xf9,0xf1,0xf1,0x08 }, 
85     { 0xe2,0x71,0x71,0x93 }, { 0xab,0xd8,0xd8,0x73 },
86     { 0x62,0x31,0x31,0x53 }, { 0x2a,0x15,0x15,0x3f }, 
87     { 0x08,0x04,0x04,0x0c }, { 0x95,0xc7,0xc7,0x52 },
88     { 0x46,0x23,0x23,0x65 }, { 0x9d,0xc3,0xc3,0x5e }, 
89     { 0x30,0x18,0x18,0x28 }, { 0x37,0x96,0x96,0xa1 },
90     { 0x0a,0x05,0x05,0x0f }, { 0x2f,0x9a,0x9a,0xb5 }, 
91     { 0x0e,0x07,0x07,0x09 }, { 0x24,0x12,0x12,0x36 },
92     { 0x1b,0x80,0x80,0x9b }, { 0xdf,0xe2,0xe2,0x3d }, 
93     { 0xcd,0xeb,0xeb,0x26 }, { 0x4e,0x27,0x27,0x69 },
94     { 0x7f,0xb2,0xb2,0xcd }, { 0xea,0x75,0x75,0x9f }, 
95     { 0x12,0x09,0x09,0x1b }, { 0x1d,0x83,0x83,0x9e },
96     { 0x58,0x2c,0x2c,0x74 }, { 0x34,0x1a,0x1a,0x2e }, 
97     { 0x36,0x1b,0x1b,0x2d }, { 0xdc,0x6e,0x6e,0xb2 }, 
98     { 0xb4,0x5a,0x5a,0xee }, { 0x5b,0xa0,0xa0,0xfb }, 
99     { 0xa4,0x52,0x52,0xf6 }, { 0x76,0x3b,0x3b,0x4d },
100     { 0xb7,0xd6,0xd6,0x61 }, { 0x7d,0xb3,0xb3,0xce }, 
101     { 0x52,0x29,0x29,0x7b }, { 0xdd,0xe3,0xe3,0x3e }, 
102     { 0x5e,0x2f,0x2f,0x71 }, { 0x13,0x84,0x84,0x97 }, 
103     { 0xa6,0x53,0x53,0xf5 }, { 0xb9,0xd1,0xd1,0x68 }, 
104     { 0x00,0x00,0x00,0x00 }, { 0xc1,0xed,0xed,0x2c }, 
105     { 0x40,0x20,0x20,0x60 }, { 0xe3,0xfc,0xfc,0x1f },
106     { 0x79,0xb1,0xb1,0xc8 }, { 0xb6,0x5b,0x5b,0xed }, 
107     { 0xd4,0x6a,0x6a,0xbe }, { 0x8d,0xcb,0xcb,0x46 },
108     { 0x67,0xbe,0xbe,0xd9 }, { 0x72,0x39,0x39,0x4b }, 
109     { 0x94,0x4a,0x4a,0xde }, { 0x98,0x4c,0x4c,0xd4 },
110     { 0xb0,0x58,0x58,0xe8 }, { 0x85,0xcf,0xcf,0x4a }, 
111     { 0xbb,0xd0,0xd0,0x6b }, { 0xc5,0xef,0xef,0x2a },
112     { 0x4f,0xaa,0xaa,0xe5 }, { 0xed,0xfb,0xfb,0x16 }, 
113     { 0x86,0x43,0x43,0xc5 }, { 0x9a,0x4d,0x4d,0xd7 },
114     { 0x66,0x33,0x33,0x55 }, { 0x11,0x85,0x85,0x94 }, 
115     { 0x8a,0x45,0x45,0xcf }, { 0xe9,0xf9,0xf9,0x10 },
116     { 0x04,0x02,0x02,0x06 }, { 0xfe,0x7f,0x7f,0x81 }, 
117     { 0xa0,0x50,0x50,0xf0 }, { 0x78,0x3c,0x3c,0x44 },
118     { 0x25,0x9f,0x9f,0xba }, { 0x4b,0xa8,0xa8,0xe3 }, 
119     { 0xa2,0x51,0x51,0xf3 }, { 0x5d,0xa3,0xa3,0xfe },
120     { 0x80,0x40,0x40,0xc0 }, { 0x05,0x8f,0x8f,0x8a }, 
121     { 0x3f,0x92,0x92,0xad }, { 0x21,0x9d,0x9d,0xbc },
122     { 0x70,0x38,0x38,0x48 }, { 0xf1,0xf5,0xf5,0x04 }, 
123     { 0x63,0xbc,0xbc,0xdf }, { 0x77,0xb6,0xb6,0xc1 },
124     { 0xaf,0xda,0xda,0x75 }, { 0x42,0x21,0x21,0x63 }, 
125     { 0x20,0x10,0x10,0x30 }, { 0xe5,0xff,0xff,0x1a },
126     { 0xfd,0xf3,0xf3,0x0e }, { 0xbf,0xd2,0xd2,0x6d }, 
127     { 0x81,0xcd,0xcd,0x4c }, { 0x18,0x0c,0x0c,0x14 },
128     { 0x26,0x13,0x13,0x35 }, { 0xc3,0xec,0xec,0x2f }, 
129     { 0xbe,0x5f,0x5f,0xe1 }, { 0x35,0x97,0x97,0xa2 },
130     { 0x88,0x44,0x44,0xcc }, { 0x2e,0x17,0x17,0x39 }, 
131     { 0x93,0xc4,0xc4,0x57 }, { 0x55,0xa7,0xa7,0xf2 },
132     { 0xfc,0x7e,0x7e,0x82 }, { 0x7a,0x3d,0x3d,0x47 }, 
133     { 0xc8,0x64,0x64,0xac }, { 0xba,0x5d,0x5d,0xe7 },
134     { 0x32,0x19,0x19,0x2b }, { 0xe6,0x73,0x73,0x95 }, 
135     { 0xc0,0x60,0x60,0xa0 }, { 0x19,0x81,0x81,0x98 },
136     { 0x9e,0x4f,0x4f,0xd1 }, { 0xa3,0xdc,0xdc,0x7f }, 
137     { 0x44,0x22,0x22,0x66 }, { 0x54,0x2a,0x2a,0x7e },
138     { 0x3b,0x90,0x90,0xab }, { 0x0b,0x88,0x88,0x83 }, 
139     { 0x8c,0x46,0x46,0xca }, { 0xc7,0xee,0xee,0x29 },
140     { 0x6b,0xb8,0xb8,0xd3 }, { 0x28,0x14,0x14,0x3c }, 
141     { 0xa7,0xde,0xde,0x79 }, { 0xbc,0x5e,0x5e,0xe2 },
142     { 0x16,0x0b,0x0b,0x1d }, { 0xad,0xdb,0xdb,0x76 }, 
143     { 0xdb,0xe0,0xe0,0x3b }, { 0x64,0x32,0x32,0x56 },
144     { 0x74,0x3a,0x3a,0x4e }, { 0x14,0x0a,0x0a,0x1e }, 
145     { 0x92,0x49,0x49,0xdb }, { 0x0c,0x06,0x06,0x0a },
146     { 0x48,0x24,0x24,0x6c }, { 0xb8,0x5c,0x5c,0xe4 }, 
147     { 0x9f,0xc2,0xc2,0x5d }, { 0xbd,0xd3,0xd3,0x6e },
148     { 0x43,0xac,0xac,0xef }, { 0xc4,0x62,0x62,0xa6 }, 
149     { 0x39,0x91,0x91,0xa8 }, { 0x31,0x95,0x95,0xa4 },
150     { 0xd3,0xe4,0xe4,0x37 }, { 0xf2,0x79,0x79,0x8b }, 
151     { 0xd5,0xe7,0xe7,0x32 }, { 0x8b,0xc8,0xc8,0x43 },
152     { 0x6e,0x37,0x37,0x59 }, { 0xda,0x6d,0x6d,0xb7 }, 
153     { 0x01,0x8d,0x8d,0x8c }, { 0xb1,0xd5,0xd5,0x64 },
154     { 0x9c,0x4e,0x4e,0xd2 }, { 0x49,0xa9,0xa9,0xe0 }, 
155     { 0xd8,0x6c,0x6c,0xb4 }, { 0xac,0x56,0x56,0xfa },
156     { 0xf3,0xf4,0xf4,0x07 }, { 0xcf,0xea,0xea,0x25 }, 
157     { 0xca,0x65,0x65,0xaf }, { 0xf4,0x7a,0x7a,0x8e },
158     { 0x47,0xae,0xae,0xe9 }, { 0x10,0x08,0x08,0x18 }, 
159     { 0x6f,0xba,0xba,0xd5 }, { 0xf0,0x78,0x78,0x88 },
160     { 0x4a,0x25,0x25,0x6f }, { 0x5c,0x2e,0x2e,0x72 }, 
161     { 0x38,0x1c,0x1c,0x24 }, { 0x57,0xa6,0xa6,0xf1 },
162     { 0x73,0xb4,0xb4,0xc7 }, { 0x97,0xc6,0xc6,0x51 }, 
163     { 0xcb,0xe8,0xe8,0x23 }, { 0xa1,0xdd,0xdd,0x7c },
164     { 0xe8,0x74,0x74,0x9c }, { 0x3e,0x1f,0x1f,0x21 }, 
165     { 0x96,0x4b,0x4b,0xdd }, { 0x61,0xbd,0xbd,0xdc }, 
166     { 0x0d,0x8b,0x8b,0x86 }, { 0x0f,0x8a,0x8a,0x85 }, 
167     { 0xe0,0x70,0x70,0x90 }, { 0x7c,0x3e,0x3e,0x42 },
168     { 0x71,0xb5,0xb5,0xc4 }, { 0xcc,0x66,0x66,0xaa }, 
169     { 0x90,0x48,0x48,0xd8 }, { 0x06,0x03,0x03,0x05 },
170     { 0xf7,0xf6,0xf6,0x01 }, { 0x1c,0x0e,0x0e,0x12 }, 
171     { 0xc2,0x61,0x61,0xa3 }, { 0x6a,0x35,0x35,0x5f },
172     { 0xae,0x57,0x57,0xf9 }, { 0x69,0xb9,0xb9,0xd0 }, 
173     { 0x17,0x86,0x86,0x91 }, { 0x99,0xc1,0xc1,0x58 },
174     { 0x3a,0x1d,0x1d,0x27 }, { 0x27,0x9e,0x9e,0xb9 }, 
175     { 0xd9,0xe1,0xe1,0x38 }, { 0xeb,0xf8,0xf8,0x13 },
176     { 0x2b,0x98,0x98,0xb3 }, { 0x22,0x11,0x11,0x33 }, 
177     { 0xd2,0x69,0x69,0xbb }, { 0xa9,0xd9,0xd9,0x70 },
178     { 0x07,0x8e,0x8e,0x89 }, { 0x33,0x94,0x94,0xa7 }, 
179     { 0x2d,0x9b,0x9b,0xb6 }, { 0x3c,0x1e,0x1e,0x22 },
180     { 0x15,0x87,0x87,0x92 }, { 0xc9,0xe9,0xe9,0x20 }, 
181     { 0x87,0xce,0xce,0x49 }, { 0xaa,0x55,0x55,0xff },
182     { 0x50,0x28,0x28,0x78 }, { 0xa5,0xdf,0xdf,0x7a }, 
183     { 0x03,0x8c,0x8c,0x8f }, { 0x59,0xa1,0xa1,0xf8 },
184     { 0x09,0x89,0x89,0x80 }, { 0x1a,0x0d,0x0d,0x17 }, 
185     { 0x65,0xbf,0xbf,0xda }, { 0xd7,0xe6,0xe6,0x31 },
186     { 0x84,0x42,0x42,0xc6 }, { 0xd0,0x68,0x68,0xb8 }, 
187     { 0x82,0x41,0x41,0xc3 }, { 0x29,0x99,0x99,0xb0 },
188     { 0x5a,0x2d,0x2d,0x77 }, { 0x1e,0x0f,0x0f,0x11 }, 
189     { 0x7b,0xb0,0xb0,0xcb }, { 0xa8,0x54,0x54,0xfc },
190     { 0x6d,0xbb,0xbb,0xd6 }, { 0x2c,0x16,0x16,0x3a }
191   };
192
193 static const unsigned char T2[256][4] = 
194   {
195     { 0xa5,0xc6,0x63,0x63 }, { 0x84,0xf8,0x7c,0x7c },
196     { 0x99,0xee,0x77,0x77 }, { 0x8d,0xf6,0x7b,0x7b }, 
197     { 0x0d,0xff,0xf2,0xf2 }, { 0xbd,0xd6,0x6b,0x6b },
198     { 0xb1,0xde,0x6f,0x6f }, { 0x54,0x91,0xc5,0xc5 }, 
199     { 0x50,0x60,0x30,0x30 }, { 0x03,0x02,0x01,0x01 },
200     { 0xa9,0xce,0x67,0x67 }, { 0x7d,0x56,0x2b,0x2b }, 
201     { 0x19,0xe7,0xfe,0xfe }, { 0x62,0xb5,0xd7,0xd7 }, 
202     { 0xe6,0x4d,0xab,0xab }, { 0x9a,0xec,0x76,0x76 }, 
203     { 0x45,0x8f,0xca,0xca }, { 0x9d,0x1f,0x82,0x82 }, 
204     { 0x40,0x89,0xc9,0xc9 }, { 0x87,0xfa,0x7d,0x7d }, 
205     { 0x15,0xef,0xfa,0xfa }, { 0xeb,0xb2,0x59,0x59 }, 
206     { 0xc9,0x8e,0x47,0x47 }, { 0x0b,0xfb,0xf0,0xf0 }, 
207     { 0xec,0x41,0xad,0xad }, { 0x67,0xb3,0xd4,0xd4 }, 
208     { 0xfd,0x5f,0xa2,0xa2 }, { 0xea,0x45,0xaf,0xaf }, 
209     { 0xbf,0x23,0x9c,0x9c }, { 0xf7,0x53,0xa4,0xa4 }, 
210     { 0x96,0xe4,0x72,0x72 }, { 0x5b,0x9b,0xc0,0xc0 }, 
211     { 0xc2,0x75,0xb7,0xb7 }, { 0x1c,0xe1,0xfd,0xfd }, 
212     { 0xae,0x3d,0x93,0x93 }, { 0x6a,0x4c,0x26,0x26 }, 
213     { 0x5a,0x6c,0x36,0x36 }, { 0x41,0x7e,0x3f,0x3f },
214     { 0x02,0xf5,0xf7,0xf7 }, { 0x4f,0x83,0xcc,0xcc }, 
215     { 0x5c,0x68,0x34,0x34 }, { 0xf4,0x51,0xa5,0xa5 },
216     { 0x34,0xd1,0xe5,0xe5 }, { 0x08,0xf9,0xf1,0xf1 }, 
217     { 0x93,0xe2,0x71,0x71 }, { 0x73,0xab,0xd8,0xd8 },
218     { 0x53,0x62,0x31,0x31 }, { 0x3f,0x2a,0x15,0x15 }, 
219     { 0x0c,0x08,0x04,0x04 }, { 0x52,0x95,0xc7,0xc7 }, 
220     { 0x65,0x46,0x23,0x23 }, { 0x5e,0x9d,0xc3,0xc3 }, 
221     { 0x28,0x30,0x18,0x18 }, { 0xa1,0x37,0x96,0x96 }, 
222     { 0x0f,0x0a,0x05,0x05 }, { 0xb5,0x2f,0x9a,0x9a }, 
223     { 0x09,0x0e,0x07,0x07 }, { 0x36,0x24,0x12,0x12 },
224     { 0x9b,0x1b,0x80,0x80 }, { 0x3d,0xdf,0xe2,0xe2 }, 
225     { 0x26,0xcd,0xeb,0xeb }, { 0x69,0x4e,0x27,0x27 }, 
226     { 0xcd,0x7f,0xb2,0xb2 }, { 0x9f,0xea,0x75,0x75 }, 
227     { 0x1b,0x12,0x09,0x09 }, { 0x9e,0x1d,0x83,0x83 },
228     { 0x74,0x58,0x2c,0x2c }, { 0x2e,0x34,0x1a,0x1a }, 
229     { 0x2d,0x36,0x1b,0x1b }, { 0xb2,0xdc,0x6e,0x6e },
230     { 0xee,0xb4,0x5a,0x5a }, { 0xfb,0x5b,0xa0,0xa0 }, 
231     { 0xf6,0xa4,0x52,0x52 }, { 0x4d,0x76,0x3b,0x3b },
232     { 0x61,0xb7,0xd6,0xd6 }, { 0xce,0x7d,0xb3,0xb3 }, 
233     { 0x7b,0x52,0x29,0x29 }, { 0x3e,0xdd,0xe3,0xe3 }, 
234     { 0x71,0x5e,0x2f,0x2f }, { 0x97,0x13,0x84,0x84 }, 
235     { 0xf5,0xa6,0x53,0x53 }, { 0x68,0xb9,0xd1,0xd1 }, 
236     { 0x00,0x00,0x00,0x00 }, { 0x2c,0xc1,0xed,0xed }, 
237     { 0x60,0x40,0x20,0x20 }, { 0x1f,0xe3,0xfc,0xfc }, 
238     { 0xc8,0x79,0xb1,0xb1 }, { 0xed,0xb6,0x5b,0x5b }, 
239     { 0xbe,0xd4,0x6a,0x6a }, { 0x46,0x8d,0xcb,0xcb }, 
240     { 0xd9,0x67,0xbe,0xbe }, { 0x4b,0x72,0x39,0x39 }, 
241     { 0xde,0x94,0x4a,0x4a }, { 0xd4,0x98,0x4c,0x4c }, 
242     { 0xe8,0xb0,0x58,0x58 }, { 0x4a,0x85,0xcf,0xcf }, 
243     { 0x6b,0xbb,0xd0,0xd0 }, { 0x2a,0xc5,0xef,0xef },
244     { 0xe5,0x4f,0xaa,0xaa }, { 0x16,0xed,0xfb,0xfb }, 
245     { 0xc5,0x86,0x43,0x43 }, { 0xd7,0x9a,0x4d,0x4d }, 
246     { 0x55,0x66,0x33,0x33 }, { 0x94,0x11,0x85,0x85 }, 
247     { 0xcf,0x8a,0x45,0x45 }, { 0x10,0xe9,0xf9,0xf9 }, 
248     { 0x06,0x04,0x02,0x02 }, { 0x81,0xfe,0x7f,0x7f }, 
249     { 0xf0,0xa0,0x50,0x50 }, { 0x44,0x78,0x3c,0x3c },
250     { 0xba,0x25,0x9f,0x9f }, { 0xe3,0x4b,0xa8,0xa8 }, 
251     { 0xf3,0xa2,0x51,0x51 }, { 0xfe,0x5d,0xa3,0xa3 },
252     { 0xc0,0x80,0x40,0x40 }, { 0x8a,0x05,0x8f,0x8f }, 
253     { 0xad,0x3f,0x92,0x92 }, { 0xbc,0x21,0x9d,0x9d },
254     { 0x48,0x70,0x38,0x38 }, { 0x04,0xf1,0xf5,0xf5 }, 
255     { 0xdf,0x63,0xbc,0xbc }, { 0xc1,0x77,0xb6,0xb6 },
256     { 0x75,0xaf,0xda,0xda }, { 0x63,0x42,0x21,0x21 }, 
257     { 0x30,0x20,0x10,0x10 }, { 0x1a,0xe5,0xff,0xff },
258     { 0x0e,0xfd,0xf3,0xf3 }, { 0x6d,0xbf,0xd2,0xd2 }, 
259     { 0x4c,0x81,0xcd,0xcd }, { 0x14,0x18,0x0c,0x0c },
260     { 0x35,0x26,0x13,0x13 }, { 0x2f,0xc3,0xec,0xec }, 
261     { 0xe1,0xbe,0x5f,0x5f }, { 0xa2,0x35,0x97,0x97 },
262     { 0xcc,0x88,0x44,0x44 }, { 0x39,0x2e,0x17,0x17 }, 
263     { 0x57,0x93,0xc4,0xc4 }, { 0xf2,0x55,0xa7,0xa7 },
264     { 0x82,0xfc,0x7e,0x7e }, { 0x47,0x7a,0x3d,0x3d }, 
265     { 0xac,0xc8,0x64,0x64 }, { 0xe7,0xba,0x5d,0x5d },
266     { 0x2b,0x32,0x19,0x19 }, { 0x95,0xe6,0x73,0x73 }, 
267     { 0xa0,0xc0,0x60,0x60 }, { 0x98,0x19,0x81,0x81 }, 
268     { 0xd1,0x9e,0x4f,0x4f }, { 0x7f,0xa3,0xdc,0xdc }, 
269     { 0x66,0x44,0x22,0x22 }, { 0x7e,0x54,0x2a,0x2a }, 
270     { 0xab,0x3b,0x90,0x90 }, { 0x83,0x0b,0x88,0x88 }, 
271     { 0xca,0x8c,0x46,0x46 }, { 0x29,0xc7,0xee,0xee },
272     { 0xd3,0x6b,0xb8,0xb8 }, { 0x3c,0x28,0x14,0x14 }, 
273     { 0x79,0xa7,0xde,0xde }, { 0xe2,0xbc,0x5e,0x5e },
274     { 0x1d,0x16,0x0b,0x0b }, { 0x76,0xad,0xdb,0xdb }, 
275     { 0x3b,0xdb,0xe0,0xe0 }, { 0x56,0x64,0x32,0x32 },
276     { 0x4e,0x74,0x3a,0x3a }, { 0x1e,0x14,0x0a,0x0a }, 
277     { 0xdb,0x92,0x49,0x49 }, { 0x0a,0x0c,0x06,0x06 },
278     { 0x6c,0x48,0x24,0x24 }, { 0xe4,0xb8,0x5c,0x5c }, 
279     { 0x5d,0x9f,0xc2,0xc2 }, { 0x6e,0xbd,0xd3,0xd3 }, 
280     { 0xef,0x43,0xac,0xac }, { 0xa6,0xc4,0x62,0x62 }, 
281     { 0xa8,0x39,0x91,0x91 }, { 0xa4,0x31,0x95,0x95 },
282     { 0x37,0xd3,0xe4,0xe4 }, { 0x8b,0xf2,0x79,0x79 }, 
283     { 0x32,0xd5,0xe7,0xe7 }, { 0x43,0x8b,0xc8,0xc8 },
284     { 0x59,0x6e,0x37,0x37 }, { 0xb7,0xda,0x6d,0x6d }, 
285     { 0x8c,0x01,0x8d,0x8d }, { 0x64,0xb1,0xd5,0xd5 },
286     { 0xd2,0x9c,0x4e,0x4e }, { 0xe0,0x49,0xa9,0xa9 }, 
287     { 0xb4,0xd8,0x6c,0x6c }, { 0xfa,0xac,0x56,0x56 },
288     { 0x07,0xf3,0xf4,0xf4 }, { 0x25,0xcf,0xea,0xea }, 
289     { 0xaf,0xca,0x65,0x65 }, { 0x8e,0xf4,0x7a,0x7a },
290     { 0xe9,0x47,0xae,0xae }, { 0x18,0x10,0x08,0x08 }, 
291     { 0xd5,0x6f,0xba,0xba }, { 0x88,0xf0,0x78,0x78 }, 
292     { 0x6f,0x4a,0x25,0x25 }, { 0x72,0x5c,0x2e,0x2e }, 
293     { 0x24,0x38,0x1c,0x1c }, { 0xf1,0x57,0xa6,0xa6 }, 
294     { 0xc7,0x73,0xb4,0xb4 }, { 0x51,0x97,0xc6,0xc6 }, 
295     { 0x23,0xcb,0xe8,0xe8 }, { 0x7c,0xa1,0xdd,0xdd },
296     { 0x9c,0xe8,0x74,0x74 }, { 0x21,0x3e,0x1f,0x1f }, 
297     { 0xdd,0x96,0x4b,0x4b }, { 0xdc,0x61,0xbd,0xbd },
298     { 0x86,0x0d,0x8b,0x8b }, { 0x85,0x0f,0x8a,0x8a }, 
299     { 0x90,0xe0,0x70,0x70 }, { 0x42,0x7c,0x3e,0x3e }, 
300     { 0xc4,0x71,0xb5,0xb5 }, { 0xaa,0xcc,0x66,0x66 }, 
301     { 0xd8,0x90,0x48,0x48 }, { 0x05,0x06,0x03,0x03 },
302     { 0x01,0xf7,0xf6,0xf6 }, { 0x12,0x1c,0x0e,0x0e }, 
303     { 0xa3,0xc2,0x61,0x61 }, { 0x5f,0x6a,0x35,0x35 },
304     { 0xf9,0xae,0x57,0x57 }, { 0xd0,0x69,0xb9,0xb9 }, 
305     { 0x91,0x17,0x86,0x86 }, { 0x58,0x99,0xc1,0xc1 }, 
306     { 0x27,0x3a,0x1d,0x1d }, { 0xb9,0x27,0x9e,0x9e }, 
307     { 0x38,0xd9,0xe1,0xe1 }, { 0x13,0xeb,0xf8,0xf8 },
308     { 0xb3,0x2b,0x98,0x98 }, { 0x33,0x22,0x11,0x11 }, 
309     { 0xbb,0xd2,0x69,0x69 }, { 0x70,0xa9,0xd9,0xd9 },
310     { 0x89,0x07,0x8e,0x8e }, { 0xa7,0x33,0x94,0x94 }, 
311     { 0xb6,0x2d,0x9b,0x9b }, { 0x22,0x3c,0x1e,0x1e },
312     { 0x92,0x15,0x87,0x87 }, { 0x20,0xc9,0xe9,0xe9 }, 
313     { 0x49,0x87,0xce,0xce }, { 0xff,0xaa,0x55,0x55 },
314     { 0x78,0x50,0x28,0x28 }, { 0x7a,0xa5,0xdf,0xdf }, 
315     { 0x8f,0x03,0x8c,0x8c }, { 0xf8,0x59,0xa1,0xa1 }, 
316     { 0x80,0x09,0x89,0x89 }, { 0x17,0x1a,0x0d,0x0d }, 
317     { 0xda,0x65,0xbf,0xbf }, { 0x31,0xd7,0xe6,0xe6 },
318     { 0xc6,0x84,0x42,0x42 }, { 0xb8,0xd0,0x68,0x68 }, 
319     { 0xc3,0x82,0x41,0x41 }, { 0xb0,0x29,0x99,0x99 }, 
320     { 0x77,0x5a,0x2d,0x2d }, { 0x11,0x1e,0x0f,0x0f }, 
321     { 0xcb,0x7b,0xb0,0xb0 }, { 0xfc,0xa8,0x54,0x54 }, 
322     { 0xd6,0x6d,0xbb,0xbb }, { 0x3a,0x2c,0x16,0x16 }
323   };
324
325 static const unsigned char T3[256][4] = 
326   {
327     { 0x63,0xa5,0xc6,0x63 }, { 0x7c,0x84,0xf8,0x7c },
328     { 0x77,0x99,0xee,0x77 }, { 0x7b,0x8d,0xf6,0x7b }, 
329     { 0xf2,0x0d,0xff,0xf2 }, { 0x6b,0xbd,0xd6,0x6b },
330     { 0x6f,0xb1,0xde,0x6f }, { 0xc5,0x54,0x91,0xc5 }, 
331     { 0x30,0x50,0x60,0x30 }, { 0x01,0x03,0x02,0x01 },
332     { 0x67,0xa9,0xce,0x67 }, { 0x2b,0x7d,0x56,0x2b }, 
333     { 0xfe,0x19,0xe7,0xfe }, { 0xd7,0x62,0xb5,0xd7 }, 
334     { 0xab,0xe6,0x4d,0xab }, { 0x76,0x9a,0xec,0x76 }, 
335     { 0xca,0x45,0x8f,0xca }, { 0x82,0x9d,0x1f,0x82 },
336     { 0xc9,0x40,0x89,0xc9 }, { 0x7d,0x87,0xfa,0x7d }, 
337     { 0xfa,0x15,0xef,0xfa }, { 0x59,0xeb,0xb2,0x59 }, 
338     { 0x47,0xc9,0x8e,0x47 }, { 0xf0,0x0b,0xfb,0xf0 }, 
339     { 0xad,0xec,0x41,0xad }, { 0xd4,0x67,0xb3,0xd4 }, 
340     { 0xa2,0xfd,0x5f,0xa2 }, { 0xaf,0xea,0x45,0xaf }, 
341     { 0x9c,0xbf,0x23,0x9c }, { 0xa4,0xf7,0x53,0xa4 },
342     { 0x72,0x96,0xe4,0x72 }, { 0xc0,0x5b,0x9b,0xc0 }, 
343     { 0xb7,0xc2,0x75,0xb7 }, { 0xfd,0x1c,0xe1,0xfd }, 
344     { 0x93,0xae,0x3d,0x93 }, { 0x26,0x6a,0x4c,0x26 }, 
345     { 0x36,0x5a,0x6c,0x36 }, { 0x3f,0x41,0x7e,0x3f },
346     { 0xf7,0x02,0xf5,0xf7 }, { 0xcc,0x4f,0x83,0xcc }, 
347     { 0x34,0x5c,0x68,0x34 }, { 0xa5,0xf4,0x51,0xa5 },
348     { 0xe5,0x34,0xd1,0xe5 }, { 0xf1,0x08,0xf9,0xf1 }, 
349     { 0x71,0x93,0xe2,0x71 }, { 0xd8,0x73,0xab,0xd8 },
350     { 0x31,0x53,0x62,0x31 }, { 0x15,0x3f,0x2a,0x15 }, 
351     { 0x04,0x0c,0x08,0x04 }, { 0xc7,0x52,0x95,0xc7 }, 
352     { 0x23,0x65,0x46,0x23 }, { 0xc3,0x5e,0x9d,0xc3 }, 
353     { 0x18,0x28,0x30,0x18 }, { 0x96,0xa1,0x37,0x96 },
354     { 0x05,0x0f,0x0a,0x05 }, { 0x9a,0xb5,0x2f,0x9a }, 
355     { 0x07,0x09,0x0e,0x07 }, { 0x12,0x36,0x24,0x12 }, 
356     { 0x80,0x9b,0x1b,0x80 }, { 0xe2,0x3d,0xdf,0xe2 }, 
357     { 0xeb,0x26,0xcd,0xeb }, { 0x27,0x69,0x4e,0x27 },
358     { 0xb2,0xcd,0x7f,0xb2 }, { 0x75,0x9f,0xea,0x75 }, 
359     { 0x09,0x1b,0x12,0x09 }, { 0x83,0x9e,0x1d,0x83 },
360     { 0x2c,0x74,0x58,0x2c }, { 0x1a,0x2e,0x34,0x1a }, 
361     { 0x1b,0x2d,0x36,0x1b }, { 0x6e,0xb2,0xdc,0x6e },
362     { 0x5a,0xee,0xb4,0x5a }, { 0xa0,0xfb,0x5b,0xa0 }, 
363     { 0x52,0xf6,0xa4,0x52 }, { 0x3b,0x4d,0x76,0x3b },
364     { 0xd6,0x61,0xb7,0xd6 }, { 0xb3,0xce,0x7d,0xb3 }, 
365     { 0x29,0x7b,0x52,0x29 }, { 0xe3,0x3e,0xdd,0xe3 }, 
366     { 0x2f,0x71,0x5e,0x2f }, { 0x84,0x97,0x13,0x84 }, 
367     { 0x53,0xf5,0xa6,0x53 }, { 0xd1,0x68,0xb9,0xd1 },
368     { 0x00,0x00,0x00,0x00 }, { 0xed,0x2c,0xc1,0xed }, 
369     { 0x20,0x60,0x40,0x20 }, { 0xfc,0x1f,0xe3,0xfc },
370     { 0xb1,0xc8,0x79,0xb1 }, { 0x5b,0xed,0xb6,0x5b }, 
371     { 0x6a,0xbe,0xd4,0x6a }, { 0xcb,0x46,0x8d,0xcb },
372     { 0xbe,0xd9,0x67,0xbe }, { 0x39,0x4b,0x72,0x39 }, 
373     { 0x4a,0xde,0x94,0x4a }, { 0x4c,0xd4,0x98,0x4c },
374     { 0x58,0xe8,0xb0,0x58 }, { 0xcf,0x4a,0x85,0xcf }, 
375     { 0xd0,0x6b,0xbb,0xd0 }, { 0xef,0x2a,0xc5,0xef },
376     { 0xaa,0xe5,0x4f,0xaa }, { 0xfb,0x16,0xed,0xfb }, 
377     { 0x43,0xc5,0x86,0x43 }, { 0x4d,0xd7,0x9a,0x4d },
378     { 0x33,0x55,0x66,0x33 }, { 0x85,0x94,0x11,0x85 }, 
379     { 0x45,0xcf,0x8a,0x45 }, { 0xf9,0x10,0xe9,0xf9 },
380     { 0x02,0x06,0x04,0x02 }, { 0x7f,0x81,0xfe,0x7f }, 
381     { 0x50,0xf0,0xa0,0x50 }, { 0x3c,0x44,0x78,0x3c },
382     { 0x9f,0xba,0x25,0x9f }, { 0xa8,0xe3,0x4b,0xa8 }, 
383     { 0x51,0xf3,0xa2,0x51 }, { 0xa3,0xfe,0x5d,0xa3 },
384     { 0x40,0xc0,0x80,0x40 }, { 0x8f,0x8a,0x05,0x8f }, 
385     { 0x92,0xad,0x3f,0x92 }, { 0x9d,0xbc,0x21,0x9d },
386     { 0x38,0x48,0x70,0x38 }, { 0xf5,0x04,0xf1,0xf5 }, 
387     { 0xbc,0xdf,0x63,0xbc }, { 0xb6,0xc1,0x77,0xb6 },
388     { 0xda,0x75,0xaf,0xda }, { 0x21,0x63,0x42,0x21 }, 
389     { 0x10,0x30,0x20,0x10 }, { 0xff,0x1a,0xe5,0xff },
390     { 0xf3,0x0e,0xfd,0xf3 }, { 0xd2,0x6d,0xbf,0xd2 }, 
391     { 0xcd,0x4c,0x81,0xcd }, { 0x0c,0x14,0x18,0x0c }, 
392     { 0x13,0x35,0x26,0x13 }, { 0xec,0x2f,0xc3,0xec }, 
393     { 0x5f,0xe1,0xbe,0x5f }, { 0x97,0xa2,0x35,0x97 },
394     { 0x44,0xcc,0x88,0x44 }, { 0x17,0x39,0x2e,0x17 }, 
395     { 0xc4,0x57,0x93,0xc4 }, { 0xa7,0xf2,0x55,0xa7 },
396     { 0x7e,0x82,0xfc,0x7e }, { 0x3d,0x47,0x7a,0x3d }, 
397     { 0x64,0xac,0xc8,0x64 }, { 0x5d,0xe7,0xba,0x5d },
398     { 0x19,0x2b,0x32,0x19 }, { 0x73,0x95,0xe6,0x73 }, 
399     { 0x60,0xa0,0xc0,0x60 }, { 0x81,0x98,0x19,0x81 },
400     { 0x4f,0xd1,0x9e,0x4f }, { 0xdc,0x7f,0xa3,0xdc }, 
401     { 0x22,0x66,0x44,0x22 }, { 0x2a,0x7e,0x54,0x2a },
402     { 0x90,0xab,0x3b,0x90 }, { 0x88,0x83,0x0b,0x88 }, 
403     { 0x46,0xca,0x8c,0x46 }, { 0xee,0x29,0xc7,0xee },
404     { 0xb8,0xd3,0x6b,0xb8 }, { 0x14,0x3c,0x28,0x14 }, 
405     { 0xde,0x79,0xa7,0xde }, { 0x5e,0xe2,0xbc,0x5e }, 
406     { 0x0b,0x1d,0x16,0x0b }, { 0xdb,0x76,0xad,0xdb }, 
407     { 0xe0,0x3b,0xdb,0xe0 }, { 0x32,0x56,0x64,0x32 },
408     { 0x3a,0x4e,0x74,0x3a }, { 0x0a,0x1e,0x14,0x0a }, 
409     { 0x49,0xdb,0x92,0x49 }, { 0x06,0x0a,0x0c,0x06 },
410     { 0x24,0x6c,0x48,0x24 }, { 0x5c,0xe4,0xb8,0x5c }, 
411     { 0xc2,0x5d,0x9f,0xc2 }, { 0xd3,0x6e,0xbd,0xd3 },
412     { 0xac,0xef,0x43,0xac }, { 0x62,0xa6,0xc4,0x62 }, 
413     { 0x91,0xa8,0x39,0x91 }, { 0x95,0xa4,0x31,0x95 },
414     { 0xe4,0x37,0xd3,0xe4 }, { 0x79,0x8b,0xf2,0x79 }, 
415     { 0xe7,0x32,0xd5,0xe7 }, { 0xc8,0x43,0x8b,0xc8 }, 
416     { 0x37,0x59,0x6e,0x37 }, { 0x6d,0xb7,0xda,0x6d }, 
417     { 0x8d,0x8c,0x01,0x8d }, { 0xd5,0x64,0xb1,0xd5 }, 
418     { 0x4e,0xd2,0x9c,0x4e }, { 0xa9,0xe0,0x49,0xa9 }, 
419     { 0x6c,0xb4,0xd8,0x6c }, { 0x56,0xfa,0xac,0x56 },
420     { 0xf4,0x07,0xf3,0xf4 }, { 0xea,0x25,0xcf,0xea }, 
421     { 0x65,0xaf,0xca,0x65 }, { 0x7a,0x8e,0xf4,0x7a }, 
422     { 0xae,0xe9,0x47,0xae }, { 0x08,0x18,0x10,0x08 }, 
423     { 0xba,0xd5,0x6f,0xba }, { 0x78,0x88,0xf0,0x78 }, 
424     { 0x25,0x6f,0x4a,0x25 }, { 0x2e,0x72,0x5c,0x2e }, 
425     { 0x1c,0x24,0x38,0x1c }, { 0xa6,0xf1,0x57,0xa6 }, 
426     { 0xb4,0xc7,0x73,0xb4 }, { 0xc6,0x51,0x97,0xc6 }, 
427     { 0xe8,0x23,0xcb,0xe8 }, { 0xdd,0x7c,0xa1,0xdd },
428     { 0x74,0x9c,0xe8,0x74 }, { 0x1f,0x21,0x3e,0x1f }, 
429     { 0x4b,0xdd,0x96,0x4b }, { 0xbd,0xdc,0x61,0xbd },
430     { 0x8b,0x86,0x0d,0x8b }, { 0x8a,0x85,0x0f,0x8a }, 
431     { 0x70,0x90,0xe0,0x70 }, { 0x3e,0x42,0x7c,0x3e },
432     { 0xb5,0xc4,0x71,0xb5 }, { 0x66,0xaa,0xcc,0x66 }, 
433     { 0x48,0xd8,0x90,0x48 }, { 0x03,0x05,0x06,0x03 },
434     { 0xf6,0x01,0xf7,0xf6 }, { 0x0e,0x12,0x1c,0x0e }, 
435     { 0x61,0xa3,0xc2,0x61 }, { 0x35,0x5f,0x6a,0x35 },
436     { 0x57,0xf9,0xae,0x57 }, { 0xb9,0xd0,0x69,0xb9 }, 
437     { 0x86,0x91,0x17,0x86 }, { 0xc1,0x58,0x99,0xc1 }, 
438     { 0x1d,0x27,0x3a,0x1d }, { 0x9e,0xb9,0x27,0x9e }, 
439     { 0xe1,0x38,0xd9,0xe1 }, { 0xf8,0x13,0xeb,0xf8 },
440     { 0x98,0xb3,0x2b,0x98 }, { 0x11,0x33,0x22,0x11 }, 
441     { 0x69,0xbb,0xd2,0x69 }, { 0xd9,0x70,0xa9,0xd9 },
442     { 0x8e,0x89,0x07,0x8e }, { 0x94,0xa7,0x33,0x94 }, 
443     { 0x9b,0xb6,0x2d,0x9b }, { 0x1e,0x22,0x3c,0x1e },
444     { 0x87,0x92,0x15,0x87 }, { 0xe9,0x20,0xc9,0xe9 }, 
445     { 0xce,0x49,0x87,0xce }, { 0x55,0xff,0xaa,0x55 },
446     { 0x28,0x78,0x50,0x28 }, { 0xdf,0x7a,0xa5,0xdf }, 
447     { 0x8c,0x8f,0x03,0x8c }, { 0xa1,0xf8,0x59,0xa1 },
448     { 0x89,0x80,0x09,0x89 }, { 0x0d,0x17,0x1a,0x0d }, 
449     { 0xbf,0xda,0x65,0xbf }, { 0xe6,0x31,0xd7,0xe6 },
450     { 0x42,0xc6,0x84,0x42 }, { 0x68,0xb8,0xd0,0x68 }, 
451     { 0x41,0xc3,0x82,0x41 }, { 0x99,0xb0,0x29,0x99 },
452     { 0x2d,0x77,0x5a,0x2d }, { 0x0f,0x11,0x1e,0x0f }, 
453     { 0xb0,0xcb,0x7b,0xb0 }, { 0x54,0xfc,0xa8,0x54 },
454     { 0xbb,0xd6,0x6d,0xbb }, { 0x16,0x3a,0x2c,0x16 }
455   };
456
457 static const unsigned char T4[256][4] = 
458   {
459     { 0x63,0x63,0xa5,0xc6 }, { 0x7c,0x7c,0x84,0xf8 },
460     { 0x77,0x77,0x99,0xee }, { 0x7b,0x7b,0x8d,0xf6 }, 
461     { 0xf2,0xf2,0x0d,0xff }, { 0x6b,0x6b,0xbd,0xd6 }, 
462     { 0x6f,0x6f,0xb1,0xde }, { 0xc5,0xc5,0x54,0x91 }, 
463     { 0x30,0x30,0x50,0x60 }, { 0x01,0x01,0x03,0x02 },
464     { 0x67,0x67,0xa9,0xce }, { 0x2b,0x2b,0x7d,0x56 }, 
465     { 0xfe,0xfe,0x19,0xe7 }, { 0xd7,0xd7,0x62,0xb5 },
466     { 0xab,0xab,0xe6,0x4d }, { 0x76,0x76,0x9a,0xec }, 
467     { 0xca,0xca,0x45,0x8f }, { 0x82,0x82,0x9d,0x1f },
468     { 0xc9,0xc9,0x40,0x89 }, { 0x7d,0x7d,0x87,0xfa }, 
469     { 0xfa,0xfa,0x15,0xef }, { 0x59,0x59,0xeb,0xb2 },
470     { 0x47,0x47,0xc9,0x8e }, { 0xf0,0xf0,0x0b,0xfb }, 
471     { 0xad,0xad,0xec,0x41 }, { 0xd4,0xd4,0x67,0xb3 },
472     { 0xa2,0xa2,0xfd,0x5f }, { 0xaf,0xaf,0xea,0x45 }, 
473     { 0x9c,0x9c,0xbf,0x23 }, { 0xa4,0xa4,0xf7,0x53 },
474     { 0x72,0x72,0x96,0xe4 }, { 0xc0,0xc0,0x5b,0x9b }, 
475     { 0xb7,0xb7,0xc2,0x75 }, { 0xfd,0xfd,0x1c,0xe1 },
476     { 0x93,0x93,0xae,0x3d }, { 0x26,0x26,0x6a,0x4c }, 
477     { 0x36,0x36,0x5a,0x6c }, { 0x3f,0x3f,0x41,0x7e },
478     { 0xf7,0xf7,0x02,0xf5 }, { 0xcc,0xcc,0x4f,0x83 }, 
479     { 0x34,0x34,0x5c,0x68 }, { 0xa5,0xa5,0xf4,0x51 },
480     { 0xe5,0xe5,0x34,0xd1 }, { 0xf1,0xf1,0x08,0xf9 }, 
481     { 0x71,0x71,0x93,0xe2 }, { 0xd8,0xd8,0x73,0xab },
482     { 0x31,0x31,0x53,0x62 }, { 0x15,0x15,0x3f,0x2a }, 
483     { 0x04,0x04,0x0c,0x08 }, { 0xc7,0xc7,0x52,0x95 },
484     { 0x23,0x23,0x65,0x46 }, { 0xc3,0xc3,0x5e,0x9d }, 
485     { 0x18,0x18,0x28,0x30 }, { 0x96,0x96,0xa1,0x37 },
486     { 0x05,0x05,0x0f,0x0a }, { 0x9a,0x9a,0xb5,0x2f }, 
487     { 0x07,0x07,0x09,0x0e }, { 0x12,0x12,0x36,0x24 },
488     { 0x80,0x80,0x9b,0x1b }, { 0xe2,0xe2,0x3d,0xdf }, 
489     { 0xeb,0xeb,0x26,0xcd }, { 0x27,0x27,0x69,0x4e },
490     { 0xb2,0xb2,0xcd,0x7f }, { 0x75,0x75,0x9f,0xea }, 
491     { 0x09,0x09,0x1b,0x12 }, { 0x83,0x83,0x9e,0x1d },
492     { 0x2c,0x2c,0x74,0x58 }, { 0x1a,0x1a,0x2e,0x34 }, 
493     { 0x1b,0x1b,0x2d,0x36 }, { 0x6e,0x6e,0xb2,0xdc },
494     { 0x5a,0x5a,0xee,0xb4 }, { 0xa0,0xa0,0xfb,0x5b }, 
495     { 0x52,0x52,0xf6,0xa4 }, { 0x3b,0x3b,0x4d,0x76 },
496     { 0xd6,0xd6,0x61,0xb7 }, { 0xb3,0xb3,0xce,0x7d }, 
497     { 0x29,0x29,0x7b,0x52 }, { 0xe3,0xe3,0x3e,0xdd },
498     { 0x2f,0x2f,0x71,0x5e }, { 0x84,0x84,0x97,0x13 }, 
499     { 0x53,0x53,0xf5,0xa6 }, { 0xd1,0xd1,0x68,0xb9 },
500     { 0x00,0x00,0x00,0x00 }, { 0xed,0xed,0x2c,0xc1 }, 
501     { 0x20,0x20,0x60,0x40 }, { 0xfc,0xfc,0x1f,0xe3 },
502     { 0xb1,0xb1,0xc8,0x79 }, { 0x5b,0x5b,0xed,0xb6 }, 
503     { 0x6a,0x6a,0xbe,0xd4 }, { 0xcb,0xcb,0x46,0x8d },
504     { 0xbe,0xbe,0xd9,0x67 }, { 0x39,0x39,0x4b,0x72 }, 
505     { 0x4a,0x4a,0xde,0x94 }, { 0x4c,0x4c,0xd4,0x98 },
506     { 0x58,0x58,0xe8,0xb0 }, { 0xcf,0xcf,0x4a,0x85 }, 
507     { 0xd0,0xd0,0x6b,0xbb }, { 0xef,0xef,0x2a,0xc5 },
508     { 0xaa,0xaa,0xe5,0x4f }, { 0xfb,0xfb,0x16,0xed }, 
509     { 0x43,0x43,0xc5,0x86 }, { 0x4d,0x4d,0xd7,0x9a },
510     { 0x33,0x33,0x55,0x66 }, { 0x85,0x85,0x94,0x11 }, 
511     { 0x45,0x45,0xcf,0x8a }, { 0xf9,0xf9,0x10,0xe9 },
512     { 0x02,0x02,0x06,0x04 }, { 0x7f,0x7f,0x81,0xfe }, 
513     { 0x50,0x50,0xf0,0xa0 }, { 0x3c,0x3c,0x44,0x78 },
514     { 0x9f,0x9f,0xba,0x25 }, { 0xa8,0xa8,0xe3,0x4b }, 
515     { 0x51,0x51,0xf3,0xa2 }, { 0xa3,0xa3,0xfe,0x5d },
516     { 0x40,0x40,0xc0,0x80 }, { 0x8f,0x8f,0x8a,0x05 }, 
517     { 0x92,0x92,0xad,0x3f }, { 0x9d,0x9d,0xbc,0x21 },
518     { 0x38,0x38,0x48,0x70 }, { 0xf5,0xf5,0x04,0xf1 }, 
519     { 0xbc,0xbc,0xdf,0x63 }, { 0xb6,0xb6,0xc1,0x77 },
520     { 0xda,0xda,0x75,0xaf }, { 0x21,0x21,0x63,0x42 }, 
521     { 0x10,0x10,0x30,0x20 }, { 0xff,0xff,0x1a,0xe5 },
522     { 0xf3,0xf3,0x0e,0xfd }, { 0xd2,0xd2,0x6d,0xbf }, 
523     { 0xcd,0xcd,0x4c,0x81 }, { 0x0c,0x0c,0x14,0x18 },
524     { 0x13,0x13,0x35,0x26 }, { 0xec,0xec,0x2f,0xc3 }, 
525     { 0x5f,0x5f,0xe1,0xbe }, { 0x97,0x97,0xa2,0x35 },
526     { 0x44,0x44,0xcc,0x88 }, { 0x17,0x17,0x39,0x2e }, 
527     { 0xc4,0xc4,0x57,0x93 }, { 0xa7,0xa7,0xf2,0x55 },
528     { 0x7e,0x7e,0x82,0xfc }, { 0x3d,0x3d,0x47,0x7a }, 
529     { 0x64,0x64,0xac,0xc8 }, { 0x5d,0x5d,0xe7,0xba },
530     { 0x19,0x19,0x2b,0x32 }, { 0x73,0x73,0x95,0xe6 }, 
531     { 0x60,0x60,0xa0,0xc0 }, { 0x81,0x81,0x98,0x19 },
532     { 0x4f,0x4f,0xd1,0x9e }, { 0xdc,0xdc,0x7f,0xa3 }, 
533     { 0x22,0x22,0x66,0x44 }, { 0x2a,0x2a,0x7e,0x54 },
534     { 0x90,0x90,0xab,0x3b }, { 0x88,0x88,0x83,0x0b }, 
535     { 0x46,0x46,0xca,0x8c }, { 0xee,0xee,0x29,0xc7 },
536     { 0xb8,0xb8,0xd3,0x6b }, { 0x14,0x14,0x3c,0x28 }, 
537     { 0xde,0xde,0x79,0xa7 }, { 0x5e,0x5e,0xe2,0xbc },
538     { 0x0b,0x0b,0x1d,0x16 }, { 0xdb,0xdb,0x76,0xad }, 
539     { 0xe0,0xe0,0x3b,0xdb }, { 0x32,0x32,0x56,0x64 },
540     { 0x3a,0x3a,0x4e,0x74 }, { 0x0a,0x0a,0x1e,0x14 }, 
541     { 0x49,0x49,0xdb,0x92 }, { 0x06,0x06,0x0a,0x0c },
542     { 0x24,0x24,0x6c,0x48 }, { 0x5c,0x5c,0xe4,0xb8 }, 
543     { 0xc2,0xc2,0x5d,0x9f }, { 0xd3,0xd3,0x6e,0xbd },
544     { 0xac,0xac,0xef,0x43 }, { 0x62,0x62,0xa6,0xc4 }, 
545     { 0x91,0x91,0xa8,0x39 }, { 0x95,0x95,0xa4,0x31 },
546     { 0xe4,0xe4,0x37,0xd3 }, { 0x79,0x79,0x8b,0xf2 }, 
547     { 0xe7,0xe7,0x32,0xd5 }, { 0xc8,0xc8,0x43,0x8b },
548     { 0x37,0x37,0x59,0x6e }, { 0x6d,0x6d,0xb7,0xda }, 
549     { 0x8d,0x8d,0x8c,0x01 }, { 0xd5,0xd5,0x64,0xb1 }, 
550     { 0x4e,0x4e,0xd2,0x9c }, { 0xa9,0xa9,0xe0,0x49 }, 
551     { 0x6c,0x6c,0xb4,0xd8 }, { 0x56,0x56,0xfa,0xac }, 
552     { 0xf4,0xf4,0x07,0xf3 }, { 0xea,0xea,0x25,0xcf }, 
553     { 0x65,0x65,0xaf,0xca }, { 0x7a,0x7a,0x8e,0xf4 }, 
554     { 0xae,0xae,0xe9,0x47 }, { 0x08,0x08,0x18,0x10 }, 
555     { 0xba,0xba,0xd5,0x6f }, { 0x78,0x78,0x88,0xf0 }, 
556     { 0x25,0x25,0x6f,0x4a }, { 0x2e,0x2e,0x72,0x5c }, 
557     { 0x1c,0x1c,0x24,0x38 }, { 0xa6,0xa6,0xf1,0x57 },
558     { 0xb4,0xb4,0xc7,0x73 }, { 0xc6,0xc6,0x51,0x97 }, 
559     { 0xe8,0xe8,0x23,0xcb }, { 0xdd,0xdd,0x7c,0xa1 },
560     { 0x74,0x74,0x9c,0xe8 }, { 0x1f,0x1f,0x21,0x3e }, 
561     { 0x4b,0x4b,0xdd,0x96 }, { 0xbd,0xbd,0xdc,0x61 },
562     { 0x8b,0x8b,0x86,0x0d }, { 0x8a,0x8a,0x85,0x0f }, 
563     { 0x70,0x70,0x90,0xe0 }, { 0x3e,0x3e,0x42,0x7c },
564     { 0xb5,0xb5,0xc4,0x71 }, { 0x66,0x66,0xaa,0xcc }, 
565     { 0x48,0x48,0xd8,0x90 }, { 0x03,0x03,0x05,0x06 },
566     { 0xf6,0xf6,0x01,0xf7 }, { 0x0e,0x0e,0x12,0x1c }, 
567     { 0x61,0x61,0xa3,0xc2 }, { 0x35,0x35,0x5f,0x6a },
568     { 0x57,0x57,0xf9,0xae }, { 0xb9,0xb9,0xd0,0x69 }, 
569     { 0x86,0x86,0x91,0x17 }, { 0xc1,0xc1,0x58,0x99 },
570     { 0x1d,0x1d,0x27,0x3a }, { 0x9e,0x9e,0xb9,0x27 }, 
571     { 0xe1,0xe1,0x38,0xd9 }, { 0xf8,0xf8,0x13,0xeb },
572     { 0x98,0x98,0xb3,0x2b }, { 0x11,0x11,0x33,0x22 }, 
573     { 0x69,0x69,0xbb,0xd2 }, { 0xd9,0xd9,0x70,0xa9 },
574     { 0x8e,0x8e,0x89,0x07 }, { 0x94,0x94,0xa7,0x33 }, 
575     { 0x9b,0x9b,0xb6,0x2d }, { 0x1e,0x1e,0x22,0x3c },
576     { 0x87,0x87,0x92,0x15 }, { 0xe9,0xe9,0x20,0xc9 }, 
577     { 0xce,0xce,0x49,0x87 }, { 0x55,0x55,0xff,0xaa },
578     { 0x28,0x28,0x78,0x50 }, { 0xdf,0xdf,0x7a,0xa5 }, 
579     { 0x8c,0x8c,0x8f,0x03 }, { 0xa1,0xa1,0xf8,0x59 },
580     { 0x89,0x89,0x80,0x09 }, { 0x0d,0x0d,0x17,0x1a }, 
581     { 0xbf,0xbf,0xda,0x65 }, { 0xe6,0xe6,0x31,0xd7 }, 
582     { 0x42,0x42,0xc6,0x84 }, { 0x68,0x68,0xb8,0xd0 }, 
583     { 0x41,0x41,0xc3,0x82 }, { 0x99,0x99,0xb0,0x29 },
584     { 0x2d,0x2d,0x77,0x5a }, { 0x0f,0x0f,0x11,0x1e }, 
585     { 0xb0,0xb0,0xcb,0x7b }, { 0x54,0x54,0xfc,0xa8 },
586     { 0xbb,0xbb,0xd6,0x6d }, { 0x16,0x16,0x3a,0x2c }
587   };
588
589 static const unsigned char T5[256][4] = 
590   {
591     { 0x51,0xf4,0xa7,0x50 }, { 0x7e,0x41,0x65,0x53 }, 
592     { 0x1a,0x17,0xa4,0xc3 }, { 0x3a,0x27,0x5e,0x96 }, 
593     { 0x3b,0xab,0x6b,0xcb }, { 0x1f,0x9d,0x45,0xf1 },
594     { 0xac,0xfa,0x58,0xab }, { 0x4b,0xe3,0x03,0x93 }, 
595     { 0x20,0x30,0xfa,0x55 }, { 0xad,0x76,0x6d,0xf6 },
596     { 0x88,0xcc,0x76,0x91 }, { 0xf5,0x02,0x4c,0x25 }, 
597     { 0x4f,0xe5,0xd7,0xfc }, { 0xc5,0x2a,0xcb,0xd7 },
598     { 0x26,0x35,0x44,0x80 }, { 0xb5,0x62,0xa3,0x8f }, 
599     { 0xde,0xb1,0x5a,0x49 }, { 0x25,0xba,0x1b,0x67 },
600     { 0x45,0xea,0x0e,0x98 }, { 0x5d,0xfe,0xc0,0xe1 }, 
601     { 0xc3,0x2f,0x75,0x02 }, { 0x81,0x4c,0xf0,0x12 },
602     { 0x8d,0x46,0x97,0xa3 }, { 0x6b,0xd3,0xf9,0xc6 }, 
603     { 0x03,0x8f,0x5f,0xe7 }, { 0x15,0x92,0x9c,0x95 },
604     { 0xbf,0x6d,0x7a,0xeb }, { 0x95,0x52,0x59,0xda }, 
605     { 0xd4,0xbe,0x83,0x2d }, { 0x58,0x74,0x21,0xd3 },
606     { 0x49,0xe0,0x69,0x29 }, { 0x8e,0xc9,0xc8,0x44 }, 
607     { 0x75,0xc2,0x89,0x6a }, { 0xf4,0x8e,0x79,0x78 },
608     { 0x99,0x58,0x3e,0x6b }, { 0x27,0xb9,0x71,0xdd }, 
609     { 0xbe,0xe1,0x4f,0xb6 }, { 0xf0,0x88,0xad,0x17 },
610     { 0xc9,0x20,0xac,0x66 }, { 0x7d,0xce,0x3a,0xb4 }, 
611     { 0x63,0xdf,0x4a,0x18 }, { 0xe5,0x1a,0x31,0x82 },
612     { 0x97,0x51,0x33,0x60 }, { 0x62,0x53,0x7f,0x45 }, 
613     { 0xb1,0x64,0x77,0xe0 }, { 0xbb,0x6b,0xae,0x84 }, 
614     { 0xfe,0x81,0xa0,0x1c }, { 0xf9,0x08,0x2b,0x94 }, 
615     { 0x70,0x48,0x68,0x58 }, { 0x8f,0x45,0xfd,0x19 }, 
616     { 0x94,0xde,0x6c,0x87 }, { 0x52,0x7b,0xf8,0xb7 }, 
617     { 0xab,0x73,0xd3,0x23 }, { 0x72,0x4b,0x02,0xe2 },
618     { 0xe3,0x1f,0x8f,0x57 }, { 0x66,0x55,0xab,0x2a }, 
619     { 0xb2,0xeb,0x28,0x07 }, { 0x2f,0xb5,0xc2,0x03 },
620     { 0x86,0xc5,0x7b,0x9a }, { 0xd3,0x37,0x08,0xa5 }, 
621     { 0x30,0x28,0x87,0xf2 }, { 0x23,0xbf,0xa5,0xb2 },
622     { 0x02,0x03,0x6a,0xba }, { 0xed,0x16,0x82,0x5c }, 
623     { 0x8a,0xcf,0x1c,0x2b }, { 0xa7,0x79,0xb4,0x92 },
624     { 0xf3,0x07,0xf2,0xf0 }, { 0x4e,0x69,0xe2,0xa1 }, 
625     { 0x65,0xda,0xf4,0xcd }, { 0x06,0x05,0xbe,0xd5 },
626     { 0xd1,0x34,0x62,0x1f }, { 0xc4,0xa6,0xfe,0x8a }, 
627     { 0x34,0x2e,0x53,0x9d }, { 0xa2,0xf3,0x55,0xa0 },
628     { 0x05,0x8a,0xe1,0x32 }, { 0xa4,0xf6,0xeb,0x75 }, 
629     { 0x0b,0x83,0xec,0x39 }, { 0x40,0x60,0xef,0xaa },
630     { 0x5e,0x71,0x9f,0x06 }, { 0xbd,0x6e,0x10,0x51 }, 
631     { 0x3e,0x21,0x8a,0xf9 }, { 0x96,0xdd,0x06,0x3d }, 
632     { 0xdd,0x3e,0x05,0xae }, { 0x4d,0xe6,0xbd,0x46 }, 
633     { 0x91,0x54,0x8d,0xb5 }, { 0x71,0xc4,0x5d,0x05 }, 
634     { 0x04,0x06,0xd4,0x6f }, { 0x60,0x50,0x15,0xff }, 
635     { 0x19,0x98,0xfb,0x24 }, { 0xd6,0xbd,0xe9,0x97 },
636     { 0x89,0x40,0x43,0xcc }, { 0x67,0xd9,0x9e,0x77 }, 
637     { 0xb0,0xe8,0x42,0xbd }, { 0x07,0x89,0x8b,0x88 },
638     { 0xe7,0x19,0x5b,0x38 }, { 0x79,0xc8,0xee,0xdb }, 
639     { 0xa1,0x7c,0x0a,0x47 }, { 0x7c,0x42,0x0f,0xe9 },
640     { 0xf8,0x84,0x1e,0xc9 }, { 0x00,0x00,0x00,0x00 }, 
641     { 0x09,0x80,0x86,0x83 }, { 0x32,0x2b,0xed,0x48 },
642     { 0x1e,0x11,0x70,0xac }, { 0x6c,0x5a,0x72,0x4e }, 
643     { 0xfd,0x0e,0xff,0xfb }, { 0x0f,0x85,0x38,0x56 },
644     { 0x3d,0xae,0xd5,0x1e }, { 0x36,0x2d,0x39,0x27 }, 
645     { 0x0a,0x0f,0xd9,0x64 }, { 0x68,0x5c,0xa6,0x21 },
646     { 0x9b,0x5b,0x54,0xd1 }, { 0x24,0x36,0x2e,0x3a }, 
647     { 0x0c,0x0a,0x67,0xb1 }, { 0x93,0x57,0xe7,0x0f },
648     { 0xb4,0xee,0x96,0xd2 }, { 0x1b,0x9b,0x91,0x9e }, 
649     { 0x80,0xc0,0xc5,0x4f }, { 0x61,0xdc,0x20,0xa2 },
650     { 0x5a,0x77,0x4b,0x69 }, { 0x1c,0x12,0x1a,0x16 }, 
651     { 0xe2,0x93,0xba,0x0a }, { 0xc0,0xa0,0x2a,0xe5 }, 
652     { 0x3c,0x22,0xe0,0x43 }, { 0x12,0x1b,0x17,0x1d }, 
653     { 0x0e,0x09,0x0d,0x0b }, { 0xf2,0x8b,0xc7,0xad }, 
654     { 0x2d,0xb6,0xa8,0xb9 }, { 0x14,0x1e,0xa9,0xc8 }, 
655     { 0x57,0xf1,0x19,0x85 }, { 0xaf,0x75,0x07,0x4c }, 
656     { 0xee,0x99,0xdd,0xbb }, { 0xa3,0x7f,0x60,0xfd }, 
657     { 0xf7,0x01,0x26,0x9f }, { 0x5c,0x72,0xf5,0xbc },
658     { 0x44,0x66,0x3b,0xc5 }, { 0x5b,0xfb,0x7e,0x34 }, 
659     { 0x8b,0x43,0x29,0x76 }, { 0xcb,0x23,0xc6,0xdc },
660     { 0xb6,0xed,0xfc,0x68 }, { 0xb8,0xe4,0xf1,0x63 }, 
661     { 0xd7,0x31,0xdc,0xca }, { 0x42,0x63,0x85,0x10 },
662     { 0x13,0x97,0x22,0x40 }, { 0x84,0xc6,0x11,0x20 }, 
663     { 0x85,0x4a,0x24,0x7d }, { 0xd2,0xbb,0x3d,0xf8 }, 
664     { 0xae,0xf9,0x32,0x11 }, { 0xc7,0x29,0xa1,0x6d }, 
665     { 0x1d,0x9e,0x2f,0x4b }, { 0xdc,0xb2,0x30,0xf3 },
666     { 0x0d,0x86,0x52,0xec }, { 0x77,0xc1,0xe3,0xd0 }, 
667     { 0x2b,0xb3,0x16,0x6c }, { 0xa9,0x70,0xb9,0x99 },
668     { 0x11,0x94,0x48,0xfa }, { 0x47,0xe9,0x64,0x22 }, 
669     { 0xa8,0xfc,0x8c,0xc4 }, { 0xa0,0xf0,0x3f,0x1a },
670     { 0x56,0x7d,0x2c,0xd8 }, { 0x22,0x33,0x90,0xef }, 
671     { 0x87,0x49,0x4e,0xc7 }, { 0xd9,0x38,0xd1,0xc1 }, 
672     { 0x8c,0xca,0xa2,0xfe }, { 0x98,0xd4,0x0b,0x36 }, 
673     { 0xa6,0xf5,0x81,0xcf }, { 0xa5,0x7a,0xde,0x28 }, 
674     { 0xda,0xb7,0x8e,0x26 }, { 0x3f,0xad,0xbf,0xa4 }, 
675     { 0x2c,0x3a,0x9d,0xe4 }, { 0x50,0x78,0x92,0x0d }, 
676     { 0x6a,0x5f,0xcc,0x9b }, { 0x54,0x7e,0x46,0x62 }, 
677     { 0xf6,0x8d,0x13,0xc2 }, { 0x90,0xd8,0xb8,0xe8 }, 
678     { 0x2e,0x39,0xf7,0x5e }, { 0x82,0xc3,0xaf,0xf5 }, 
679     { 0x9f,0x5d,0x80,0xbe }, { 0x69,0xd0,0x93,0x7c },
680     { 0x6f,0xd5,0x2d,0xa9 }, { 0xcf,0x25,0x12,0xb3 }, 
681     { 0xc8,0xac,0x99,0x3b }, { 0x10,0x18,0x7d,0xa7 },
682     { 0xe8,0x9c,0x63,0x6e }, { 0xdb,0x3b,0xbb,0x7b }, 
683     { 0xcd,0x26,0x78,0x09 }, { 0x6e,0x59,0x18,0xf4 },
684     { 0xec,0x9a,0xb7,0x01 }, { 0x83,0x4f,0x9a,0xa8 }, 
685     { 0xe6,0x95,0x6e,0x65 }, { 0xaa,0xff,0xe6,0x7e }, 
686     { 0x21,0xbc,0xcf,0x08 }, { 0xef,0x15,0xe8,0xe6 }, 
687     { 0xba,0xe7,0x9b,0xd9 }, { 0x4a,0x6f,0x36,0xce }, 
688     { 0xea,0x9f,0x09,0xd4 }, { 0x29,0xb0,0x7c,0xd6 }, 
689     { 0x31,0xa4,0xb2,0xaf }, { 0x2a,0x3f,0x23,0x31 }, 
690     { 0xc6,0xa5,0x94,0x30 }, { 0x35,0xa2,0x66,0xc0 }, 
691     { 0x74,0x4e,0xbc,0x37 }, { 0xfc,0x82,0xca,0xa6 }, 
692     { 0xe0,0x90,0xd0,0xb0 }, { 0x33,0xa7,0xd8,0x15 }, 
693     { 0xf1,0x04,0x98,0x4a }, { 0x41,0xec,0xda,0xf7 },
694     { 0x7f,0xcd,0x50,0x0e }, { 0x17,0x91,0xf6,0x2f }, 
695     { 0x76,0x4d,0xd6,0x8d }, { 0x43,0xef,0xb0,0x4d },
696     { 0xcc,0xaa,0x4d,0x54 }, { 0xe4,0x96,0x04,0xdf }, 
697     { 0x9e,0xd1,0xb5,0xe3 }, { 0x4c,0x6a,0x88,0x1b },
698     { 0xc1,0x2c,0x1f,0xb8 }, { 0x46,0x65,0x51,0x7f }, 
699     { 0x9d,0x5e,0xea,0x04 }, { 0x01,0x8c,0x35,0x5d },
700     { 0xfa,0x87,0x74,0x73 }, { 0xfb,0x0b,0x41,0x2e }, 
701     { 0xb3,0x67,0x1d,0x5a }, { 0x92,0xdb,0xd2,0x52 },
702     { 0xe9,0x10,0x56,0x33 }, { 0x6d,0xd6,0x47,0x13 }, 
703     { 0x9a,0xd7,0x61,0x8c }, { 0x37,0xa1,0x0c,0x7a },
704     { 0x59,0xf8,0x14,0x8e }, { 0xeb,0x13,0x3c,0x89 }, 
705     { 0xce,0xa9,0x27,0xee }, { 0xb7,0x61,0xc9,0x35 },
706     { 0xe1,0x1c,0xe5,0xed }, { 0x7a,0x47,0xb1,0x3c }, 
707     { 0x9c,0xd2,0xdf,0x59 }, { 0x55,0xf2,0x73,0x3f }, 
708     { 0x18,0x14,0xce,0x79 }, { 0x73,0xc7,0x37,0xbf }, 
709     { 0x53,0xf7,0xcd,0xea }, { 0x5f,0xfd,0xaa,0x5b },
710     { 0xdf,0x3d,0x6f,0x14 }, { 0x78,0x44,0xdb,0x86 }, 
711     { 0xca,0xaf,0xf3,0x81 }, { 0xb9,0x68,0xc4,0x3e }, 
712     { 0x38,0x24,0x34,0x2c }, { 0xc2,0xa3,0x40,0x5f }, 
713     { 0x16,0x1d,0xc3,0x72 }, { 0xbc,0xe2,0x25,0x0c }, 
714     { 0x28,0x3c,0x49,0x8b }, { 0xff,0x0d,0x95,0x41 }, 
715     { 0x39,0xa8,0x01,0x71 }, { 0x08,0x0c,0xb3,0xde }, 
716     { 0xd8,0xb4,0xe4,0x9c }, { 0x64,0x56,0xc1,0x90 }, 
717     { 0x7b,0xcb,0x84,0x61 }, { 0xd5,0x32,0xb6,0x70 },
718     { 0x48,0x6c,0x5c,0x74 }, { 0xd0,0xb8,0x57,0x42 }
719   };
720
721 static const unsigned char T6[256][4] = 
722   {
723     { 0x50,0x51,0xf4,0xa7 }, { 0x53,0x7e,0x41,0x65 }, 
724     { 0xc3,0x1a,0x17,0xa4 }, { 0x96,0x3a,0x27,0x5e }, 
725     { 0xcb,0x3b,0xab,0x6b }, { 0xf1,0x1f,0x9d,0x45 },
726     { 0xab,0xac,0xfa,0x58 }, { 0x93,0x4b,0xe3,0x03 }, 
727     { 0x55,0x20,0x30,0xfa }, { 0xf6,0xad,0x76,0x6d },
728     { 0x91,0x88,0xcc,0x76 }, { 0x25,0xf5,0x02,0x4c }, 
729     { 0xfc,0x4f,0xe5,0xd7 }, { 0xd7,0xc5,0x2a,0xcb },
730     { 0x80,0x26,0x35,0x44 }, { 0x8f,0xb5,0x62,0xa3 }, 
731     { 0x49,0xde,0xb1,0x5a }, { 0x67,0x25,0xba,0x1b }, 
732     { 0x98,0x45,0xea,0x0e }, { 0xe1,0x5d,0xfe,0xc0 }, 
733     { 0x02,0xc3,0x2f,0x75 }, { 0x12,0x81,0x4c,0xf0 },
734     { 0xa3,0x8d,0x46,0x97 }, { 0xc6,0x6b,0xd3,0xf9 }, 
735     { 0xe7,0x03,0x8f,0x5f }, { 0x95,0x15,0x92,0x9c },
736     { 0xeb,0xbf,0x6d,0x7a }, { 0xda,0x95,0x52,0x59 }, 
737     { 0x2d,0xd4,0xbe,0x83 }, { 0xd3,0x58,0x74,0x21 },
738     { 0x29,0x49,0xe0,0x69 }, { 0x44,0x8e,0xc9,0xc8 }, 
739     { 0x6a,0x75,0xc2,0x89 }, { 0x78,0xf4,0x8e,0x79 },
740     { 0x6b,0x99,0x58,0x3e }, { 0xdd,0x27,0xb9,0x71 }, 
741     { 0xb6,0xbe,0xe1,0x4f }, { 0x17,0xf0,0x88,0xad },
742     { 0x66,0xc9,0x20,0xac }, { 0xb4,0x7d,0xce,0x3a }, 
743     { 0x18,0x63,0xdf,0x4a }, { 0x82,0xe5,0x1a,0x31 },
744     { 0x60,0x97,0x51,0x33 }, { 0x45,0x62,0x53,0x7f }, 
745     { 0xe0,0xb1,0x64,0x77 }, { 0x84,0xbb,0x6b,0xae },
746     { 0x1c,0xfe,0x81,0xa0 }, { 0x94,0xf9,0x08,0x2b }, 
747     { 0x58,0x70,0x48,0x68 }, { 0x19,0x8f,0x45,0xfd },
748     { 0x87,0x94,0xde,0x6c }, { 0xb7,0x52,0x7b,0xf8 }, 
749     { 0x23,0xab,0x73,0xd3 }, { 0xe2,0x72,0x4b,0x02 },
750     { 0x57,0xe3,0x1f,0x8f }, { 0x2a,0x66,0x55,0xab }, 
751     { 0x07,0xb2,0xeb,0x28 }, { 0x03,0x2f,0xb5,0xc2 },
752     { 0x9a,0x86,0xc5,0x7b }, { 0xa5,0xd3,0x37,0x08 }, 
753     { 0xf2,0x30,0x28,0x87 }, { 0xb2,0x23,0xbf,0xa5 },
754     { 0xba,0x02,0x03,0x6a }, { 0x5c,0xed,0x16,0x82 }, 
755     { 0x2b,0x8a,0xcf,0x1c }, { 0x92,0xa7,0x79,0xb4 },
756     { 0xf0,0xf3,0x07,0xf2 }, { 0xa1,0x4e,0x69,0xe2 }, 
757     { 0xcd,0x65,0xda,0xf4 }, { 0xd5,0x06,0x05,0xbe },
758     { 0x1f,0xd1,0x34,0x62 }, { 0x8a,0xc4,0xa6,0xfe }, 
759     { 0x9d,0x34,0x2e,0x53 }, { 0xa0,0xa2,0xf3,0x55 },
760     { 0x32,0x05,0x8a,0xe1 }, { 0x75,0xa4,0xf6,0xeb }, 
761     { 0x39,0x0b,0x83,0xec }, { 0xaa,0x40,0x60,0xef },
762     { 0x06,0x5e,0x71,0x9f }, { 0x51,0xbd,0x6e,0x10 }, 
763     { 0xf9,0x3e,0x21,0x8a }, { 0x3d,0x96,0xdd,0x06 },
764     { 0xae,0xdd,0x3e,0x05 }, { 0x46,0x4d,0xe6,0xbd }, 
765     { 0xb5,0x91,0x54,0x8d }, { 0x05,0x71,0xc4,0x5d },
766     { 0x6f,0x04,0x06,0xd4 }, { 0xff,0x60,0x50,0x15 }, 
767     { 0x24,0x19,0x98,0xfb }, { 0x97,0xd6,0xbd,0xe9 },
768     { 0xcc,0x89,0x40,0x43 }, { 0x77,0x67,0xd9,0x9e }, 
769     { 0xbd,0xb0,0xe8,0x42 }, { 0x88,0x07,0x89,0x8b },
770     { 0x38,0xe7,0x19,0x5b }, { 0xdb,0x79,0xc8,0xee }, 
771     { 0x47,0xa1,0x7c,0x0a }, { 0xe9,0x7c,0x42,0x0f },
772     { 0xc9,0xf8,0x84,0x1e }, { 0x00,0x00,0x00,0x00 }, 
773     { 0x83,0x09,0x80,0x86 }, { 0x48,0x32,0x2b,0xed },
774     { 0xac,0x1e,0x11,0x70 }, { 0x4e,0x6c,0x5a,0x72 }, 
775     { 0xfb,0xfd,0x0e,0xff }, { 0x56,0x0f,0x85,0x38 },
776     { 0x1e,0x3d,0xae,0xd5 }, { 0x27,0x36,0x2d,0x39 }, 
777     { 0x64,0x0a,0x0f,0xd9 }, { 0x21,0x68,0x5c,0xa6 },
778     { 0xd1,0x9b,0x5b,0x54 }, { 0x3a,0x24,0x36,0x2e }, 
779     { 0xb1,0x0c,0x0a,0x67 }, { 0x0f,0x93,0x57,0xe7 },
780     { 0xd2,0xb4,0xee,0x96 }, { 0x9e,0x1b,0x9b,0x91 }, 
781     { 0x4f,0x80,0xc0,0xc5 }, { 0xa2,0x61,0xdc,0x20 }, 
782     { 0x69,0x5a,0x77,0x4b }, { 0x16,0x1c,0x12,0x1a }, 
783     { 0x0a,0xe2,0x93,0xba }, { 0xe5,0xc0,0xa0,0x2a },
784     { 0x43,0x3c,0x22,0xe0 }, { 0x1d,0x12,0x1b,0x17 }, 
785     { 0x0b,0x0e,0x09,0x0d }, { 0xad,0xf2,0x8b,0xc7 },
786     { 0xb9,0x2d,0xb6,0xa8 }, { 0xc8,0x14,0x1e,0xa9 }, 
787     { 0x85,0x57,0xf1,0x19 }, { 0x4c,0xaf,0x75,0x07 },
788     { 0xbb,0xee,0x99,0xdd }, { 0xfd,0xa3,0x7f,0x60 }, 
789     { 0x9f,0xf7,0x01,0x26 }, { 0xbc,0x5c,0x72,0xf5 },
790     { 0xc5,0x44,0x66,0x3b }, { 0x34,0x5b,0xfb,0x7e }, 
791     { 0x76,0x8b,0x43,0x29 }, { 0xdc,0xcb,0x23,0xc6 },
792     { 0x68,0xb6,0xed,0xfc }, { 0x63,0xb8,0xe4,0xf1 }, 
793     { 0xca,0xd7,0x31,0xdc }, { 0x10,0x42,0x63,0x85 },
794     { 0x40,0x13,0x97,0x22 }, { 0x20,0x84,0xc6,0x11 }, 
795     { 0x7d,0x85,0x4a,0x24 }, { 0xf8,0xd2,0xbb,0x3d },
796     { 0x11,0xae,0xf9,0x32 }, { 0x6d,0xc7,0x29,0xa1 }, 
797     { 0x4b,0x1d,0x9e,0x2f }, { 0xf3,0xdc,0xb2,0x30 },
798     { 0xec,0x0d,0x86,0x52 }, { 0xd0,0x77,0xc1,0xe3 }, 
799     { 0x6c,0x2b,0xb3,0x16 }, { 0x99,0xa9,0x70,0xb9 }, 
800     { 0xfa,0x11,0x94,0x48 }, { 0x22,0x47,0xe9,0x64 }, 
801     { 0xc4,0xa8,0xfc,0x8c }, { 0x1a,0xa0,0xf0,0x3f }, 
802     { 0xd8,0x56,0x7d,0x2c }, { 0xef,0x22,0x33,0x90 }, 
803     { 0xc7,0x87,0x49,0x4e }, { 0xc1,0xd9,0x38,0xd1 },
804     { 0xfe,0x8c,0xca,0xa2 }, { 0x36,0x98,0xd4,0x0b }, 
805     { 0xcf,0xa6,0xf5,0x81 }, { 0x28,0xa5,0x7a,0xde }, 
806     { 0x26,0xda,0xb7,0x8e }, { 0xa4,0x3f,0xad,0xbf }, 
807     { 0xe4,0x2c,0x3a,0x9d }, { 0x0d,0x50,0x78,0x92 }, 
808     { 0x9b,0x6a,0x5f,0xcc }, { 0x62,0x54,0x7e,0x46 }, 
809     { 0xc2,0xf6,0x8d,0x13 }, { 0xe8,0x90,0xd8,0xb8 }, 
810     { 0x5e,0x2e,0x39,0xf7 }, { 0xf5,0x82,0xc3,0xaf }, 
811     { 0xbe,0x9f,0x5d,0x80 }, { 0x7c,0x69,0xd0,0x93 },
812     { 0xa9,0x6f,0xd5,0x2d }, { 0xb3,0xcf,0x25,0x12 }, 
813     { 0x3b,0xc8,0xac,0x99 }, { 0xa7,0x10,0x18,0x7d }, 
814     { 0x6e,0xe8,0x9c,0x63 }, { 0x7b,0xdb,0x3b,0xbb }, 
815     { 0x09,0xcd,0x26,0x78 }, { 0xf4,0x6e,0x59,0x18 },
816     { 0x01,0xec,0x9a,0xb7 }, { 0xa8,0x83,0x4f,0x9a }, 
817     { 0x65,0xe6,0x95,0x6e }, { 0x7e,0xaa,0xff,0xe6 }, 
818     { 0x08,0x21,0xbc,0xcf }, { 0xe6,0xef,0x15,0xe8 }, 
819     { 0xd9,0xba,0xe7,0x9b }, { 0xce,0x4a,0x6f,0x36 },
820     { 0xd4,0xea,0x9f,0x09 }, { 0xd6,0x29,0xb0,0x7c }, 
821     { 0xaf,0x31,0xa4,0xb2 }, { 0x31,0x2a,0x3f,0x23 },
822     { 0x30,0xc6,0xa5,0x94 }, { 0xc0,0x35,0xa2,0x66 }, 
823     { 0x37,0x74,0x4e,0xbc }, { 0xa6,0xfc,0x82,0xca }, 
824     { 0xb0,0xe0,0x90,0xd0 }, { 0x15,0x33,0xa7,0xd8 }, 
825     { 0x4a,0xf1,0x04,0x98 }, { 0xf7,0x41,0xec,0xda },
826     { 0x0e,0x7f,0xcd,0x50 }, { 0x2f,0x17,0x91,0xf6 }, 
827     { 0x8d,0x76,0x4d,0xd6 }, { 0x4d,0x43,0xef,0xb0 },
828     { 0x54,0xcc,0xaa,0x4d }, { 0xdf,0xe4,0x96,0x04 }, 
829     { 0xe3,0x9e,0xd1,0xb5 }, { 0x1b,0x4c,0x6a,0x88 },
830     { 0xb8,0xc1,0x2c,0x1f }, { 0x7f,0x46,0x65,0x51 }, 
831     { 0x04,0x9d,0x5e,0xea }, { 0x5d,0x01,0x8c,0x35 },
832     { 0x73,0xfa,0x87,0x74 }, { 0x2e,0xfb,0x0b,0x41 }, 
833     { 0x5a,0xb3,0x67,0x1d }, { 0x52,0x92,0xdb,0xd2 },
834     { 0x33,0xe9,0x10,0x56 }, { 0x13,0x6d,0xd6,0x47 }, 
835     { 0x8c,0x9a,0xd7,0x61 }, { 0x7a,0x37,0xa1,0x0c }, 
836     { 0x8e,0x59,0xf8,0x14 }, { 0x89,0xeb,0x13,0x3c }, 
837     { 0xee,0xce,0xa9,0x27 }, { 0x35,0xb7,0x61,0xc9 },
838     { 0xed,0xe1,0x1c,0xe5 }, { 0x3c,0x7a,0x47,0xb1 }, 
839     { 0x59,0x9c,0xd2,0xdf }, { 0x3f,0x55,0xf2,0x73 },
840     { 0x79,0x18,0x14,0xce }, { 0xbf,0x73,0xc7,0x37 }, 
841     { 0xea,0x53,0xf7,0xcd }, { 0x5b,0x5f,0xfd,0xaa },
842     { 0x14,0xdf,0x3d,0x6f }, { 0x86,0x78,0x44,0xdb }, 
843     { 0x81,0xca,0xaf,0xf3 }, { 0x3e,0xb9,0x68,0xc4 },
844     { 0x2c,0x38,0x24,0x34 }, { 0x5f,0xc2,0xa3,0x40 }, 
845     { 0x72,0x16,0x1d,0xc3 }, { 0x0c,0xbc,0xe2,0x25 },
846     { 0x8b,0x28,0x3c,0x49 }, { 0x41,0xff,0x0d,0x95 }, 
847     { 0x71,0x39,0xa8,0x01 }, { 0xde,0x08,0x0c,0xb3 },
848     { 0x9c,0xd8,0xb4,0xe4 }, { 0x90,0x64,0x56,0xc1 }, 
849     { 0x61,0x7b,0xcb,0x84 }, { 0x70,0xd5,0x32,0xb6 },
850     { 0x74,0x48,0x6c,0x5c }, { 0x42,0xd0,0xb8,0x57 }
851   };
852
853 static const unsigned char T7[256][4] = 
854   {
855     { 0xa7,0x50,0x51,0xf4 }, { 0x65,0x53,0x7e,0x41 },
856     { 0xa4,0xc3,0x1a,0x17 }, { 0x5e,0x96,0x3a,0x27 }, 
857     { 0x6b,0xcb,0x3b,0xab }, { 0x45,0xf1,0x1f,0x9d },
858     { 0x58,0xab,0xac,0xfa }, { 0x03,0x93,0x4b,0xe3 }, 
859     { 0xfa,0x55,0x20,0x30 }, { 0x6d,0xf6,0xad,0x76 },
860     { 0x76,0x91,0x88,0xcc }, { 0x4c,0x25,0xf5,0x02 }, 
861     { 0xd7,0xfc,0x4f,0xe5 }, { 0xcb,0xd7,0xc5,0x2a },
862     { 0x44,0x80,0x26,0x35 }, { 0xa3,0x8f,0xb5,0x62 }, 
863     { 0x5a,0x49,0xde,0xb1 }, { 0x1b,0x67,0x25,0xba }, 
864     { 0x0e,0x98,0x45,0xea }, { 0xc0,0xe1,0x5d,0xfe }, 
865     { 0x75,0x02,0xc3,0x2f }, { 0xf0,0x12,0x81,0x4c },
866     { 0x97,0xa3,0x8d,0x46 }, { 0xf9,0xc6,0x6b,0xd3 }, 
867     { 0x5f,0xe7,0x03,0x8f }, { 0x9c,0x95,0x15,0x92 },
868     { 0x7a,0xeb,0xbf,0x6d }, { 0x59,0xda,0x95,0x52 }, 
869     { 0x83,0x2d,0xd4,0xbe }, { 0x21,0xd3,0x58,0x74 },
870     { 0x69,0x29,0x49,0xe0 }, { 0xc8,0x44,0x8e,0xc9 }, 
871     { 0x89,0x6a,0x75,0xc2 }, { 0x79,0x78,0xf4,0x8e }, 
872     { 0x3e,0x6b,0x99,0x58 }, { 0x71,0xdd,0x27,0xb9 }, 
873     { 0x4f,0xb6,0xbe,0xe1 }, { 0xad,0x17,0xf0,0x88 },
874     { 0xac,0x66,0xc9,0x20 }, { 0x3a,0xb4,0x7d,0xce }, 
875     { 0x4a,0x18,0x63,0xdf }, { 0x31,0x82,0xe5,0x1a },
876     { 0x33,0x60,0x97,0x51 }, { 0x7f,0x45,0x62,0x53 }, 
877     { 0x77,0xe0,0xb1,0x64 }, { 0xae,0x84,0xbb,0x6b },
878     { 0xa0,0x1c,0xfe,0x81 }, { 0x2b,0x94,0xf9,0x08 }, 
879     { 0x68,0x58,0x70,0x48 }, { 0xfd,0x19,0x8f,0x45 },
880     { 0x6c,0x87,0x94,0xde }, { 0xf8,0xb7,0x52,0x7b }, 
881     { 0xd3,0x23,0xab,0x73 }, { 0x02,0xe2,0x72,0x4b },
882     { 0x8f,0x57,0xe3,0x1f }, { 0xab,0x2a,0x66,0x55 }, 
883     { 0x28,0x07,0xb2,0xeb }, { 0xc2,0x03,0x2f,0xb5 },
884     { 0x7b,0x9a,0x86,0xc5 }, { 0x08,0xa5,0xd3,0x37 }, 
885     { 0x87,0xf2,0x30,0x28 }, { 0xa5,0xb2,0x23,0xbf },
886     { 0x6a,0xba,0x02,0x03 }, { 0x82,0x5c,0xed,0x16 }, 
887     { 0x1c,0x2b,0x8a,0xcf }, { 0xb4,0x92,0xa7,0x79 }, 
888     { 0xf2,0xf0,0xf3,0x07 }, { 0xe2,0xa1,0x4e,0x69 }, 
889     { 0xf4,0xcd,0x65,0xda }, { 0xbe,0xd5,0x06,0x05 },
890     { 0x62,0x1f,0xd1,0x34 }, { 0xfe,0x8a,0xc4,0xa6 }, 
891     { 0x53,0x9d,0x34,0x2e }, { 0x55,0xa0,0xa2,0xf3 },
892     { 0xe1,0x32,0x05,0x8a }, { 0xeb,0x75,0xa4,0xf6 }, 
893     { 0xec,0x39,0x0b,0x83 }, { 0xef,0xaa,0x40,0x60 },
894     { 0x9f,0x06,0x5e,0x71 }, { 0x10,0x51,0xbd,0x6e }, 
895     { 0x8a,0xf9,0x3e,0x21 }, { 0x06,0x3d,0x96,0xdd },
896     { 0x05,0xae,0xdd,0x3e }, { 0xbd,0x46,0x4d,0xe6 }, 
897     { 0x8d,0xb5,0x91,0x54 }, { 0x5d,0x05,0x71,0xc4 },
898     { 0xd4,0x6f,0x04,0x06 }, { 0x15,0xff,0x60,0x50 }, 
899     { 0xfb,0x24,0x19,0x98 }, { 0xe9,0x97,0xd6,0xbd }, 
900     { 0x43,0xcc,0x89,0x40 }, { 0x9e,0x77,0x67,0xd9 }, 
901     { 0x42,0xbd,0xb0,0xe8 }, { 0x8b,0x88,0x07,0x89 },
902     { 0x5b,0x38,0xe7,0x19 }, { 0xee,0xdb,0x79,0xc8 }, 
903     { 0x0a,0x47,0xa1,0x7c }, { 0x0f,0xe9,0x7c,0x42 },
904     { 0x1e,0xc9,0xf8,0x84 }, { 0x00,0x00,0x00,0x00 }, 
905     { 0x86,0x83,0x09,0x80 }, { 0xed,0x48,0x32,0x2b },
906     { 0x70,0xac,0x1e,0x11 }, { 0x72,0x4e,0x6c,0x5a }, 
907     { 0xff,0xfb,0xfd,0x0e }, { 0x38,0x56,0x0f,0x85 },
908     { 0xd5,0x1e,0x3d,0xae }, { 0x39,0x27,0x36,0x2d }, 
909     { 0xd9,0x64,0x0a,0x0f }, { 0xa6,0x21,0x68,0x5c },
910     { 0x54,0xd1,0x9b,0x5b }, { 0x2e,0x3a,0x24,0x36 }, 
911     { 0x67,0xb1,0x0c,0x0a }, { 0xe7,0x0f,0x93,0x57 },
912     { 0x96,0xd2,0xb4,0xee }, { 0x91,0x9e,0x1b,0x9b }, 
913     { 0xc5,0x4f,0x80,0xc0 }, { 0x20,0xa2,0x61,0xdc },
914     { 0x4b,0x69,0x5a,0x77 }, { 0x1a,0x16,0x1c,0x12 }, 
915     { 0xba,0x0a,0xe2,0x93 }, { 0x2a,0xe5,0xc0,0xa0 },
916     { 0xe0,0x43,0x3c,0x22 }, { 0x17,0x1d,0x12,0x1b }, 
917     { 0x0d,0x0b,0x0e,0x09 }, { 0xc7,0xad,0xf2,0x8b },
918     { 0xa8,0xb9,0x2d,0xb6 }, { 0xa9,0xc8,0x14,0x1e }, 
919     { 0x19,0x85,0x57,0xf1 }, { 0x07,0x4c,0xaf,0x75 },
920     { 0xdd,0xbb,0xee,0x99 }, { 0x60,0xfd,0xa3,0x7f }, 
921     { 0x26,0x9f,0xf7,0x01 }, { 0xf5,0xbc,0x5c,0x72 },
922     { 0x3b,0xc5,0x44,0x66 }, { 0x7e,0x34,0x5b,0xfb }, 
923     { 0x29,0x76,0x8b,0x43 }, { 0xc6,0xdc,0xcb,0x23 },
924     { 0xfc,0x68,0xb6,0xed }, { 0xf1,0x63,0xb8,0xe4 }, 
925     { 0xdc,0xca,0xd7,0x31 }, { 0x85,0x10,0x42,0x63 },
926     { 0x22,0x40,0x13,0x97 }, { 0x11,0x20,0x84,0xc6 }, 
927     { 0x24,0x7d,0x85,0x4a }, { 0x3d,0xf8,0xd2,0xbb },
928     { 0x32,0x11,0xae,0xf9 }, { 0xa1,0x6d,0xc7,0x29 }, 
929     { 0x2f,0x4b,0x1d,0x9e }, { 0x30,0xf3,0xdc,0xb2 },
930     { 0x52,0xec,0x0d,0x86 }, { 0xe3,0xd0,0x77,0xc1 }, 
931     { 0x16,0x6c,0x2b,0xb3 }, { 0xb9,0x99,0xa9,0x70 },
932     { 0x48,0xfa,0x11,0x94 }, { 0x64,0x22,0x47,0xe9 }, 
933     { 0x8c,0xc4,0xa8,0xfc }, { 0x3f,0x1a,0xa0,0xf0 },
934     { 0x2c,0xd8,0x56,0x7d }, { 0x90,0xef,0x22,0x33 }, 
935     { 0x4e,0xc7,0x87,0x49 }, { 0xd1,0xc1,0xd9,0x38 },
936     { 0xa2,0xfe,0x8c,0xca }, { 0x0b,0x36,0x98,0xd4 }, 
937     { 0x81,0xcf,0xa6,0xf5 }, { 0xde,0x28,0xa5,0x7a },
938     { 0x8e,0x26,0xda,0xb7 }, { 0xbf,0xa4,0x3f,0xad }, 
939     { 0x9d,0xe4,0x2c,0x3a }, { 0x92,0x0d,0x50,0x78 },
940     { 0xcc,0x9b,0x6a,0x5f }, { 0x46,0x62,0x54,0x7e }, 
941     { 0x13,0xc2,0xf6,0x8d }, { 0xb8,0xe8,0x90,0xd8 },
942     { 0xf7,0x5e,0x2e,0x39 }, { 0xaf,0xf5,0x82,0xc3 }, 
943     { 0x80,0xbe,0x9f,0x5d }, { 0x93,0x7c,0x69,0xd0 },
944     { 0x2d,0xa9,0x6f,0xd5 }, { 0x12,0xb3,0xcf,0x25 }, 
945     { 0x99,0x3b,0xc8,0xac }, { 0x7d,0xa7,0x10,0x18 },
946     { 0x63,0x6e,0xe8,0x9c }, { 0xbb,0x7b,0xdb,0x3b }, 
947     { 0x78,0x09,0xcd,0x26 }, { 0x18,0xf4,0x6e,0x59 }, 
948     { 0xb7,0x01,0xec,0x9a }, { 0x9a,0xa8,0x83,0x4f }, 
949     { 0x6e,0x65,0xe6,0x95 }, { 0xe6,0x7e,0xaa,0xff },
950     { 0xcf,0x08,0x21,0xbc }, { 0xe8,0xe6,0xef,0x15 }, 
951     { 0x9b,0xd9,0xba,0xe7 }, { 0x36,0xce,0x4a,0x6f },
952     { 0x09,0xd4,0xea,0x9f }, { 0x7c,0xd6,0x29,0xb0 }, 
953     { 0xb2,0xaf,0x31,0xa4 }, { 0x23,0x31,0x2a,0x3f },
954     { 0x94,0x30,0xc6,0xa5 }, { 0x66,0xc0,0x35,0xa2 }, 
955     { 0xbc,0x37,0x74,0x4e }, { 0xca,0xa6,0xfc,0x82 },
956     { 0xd0,0xb0,0xe0,0x90 }, { 0xd8,0x15,0x33,0xa7 }, 
957     { 0x98,0x4a,0xf1,0x04 }, { 0xda,0xf7,0x41,0xec },
958     { 0x50,0x0e,0x7f,0xcd }, { 0xf6,0x2f,0x17,0x91 }, 
959     { 0xd6,0x8d,0x76,0x4d }, { 0xb0,0x4d,0x43,0xef }, 
960     { 0x4d,0x54,0xcc,0xaa }, { 0x04,0xdf,0xe4,0x96 }, 
961     { 0xb5,0xe3,0x9e,0xd1 }, { 0x88,0x1b,0x4c,0x6a },
962     { 0x1f,0xb8,0xc1,0x2c }, { 0x51,0x7f,0x46,0x65 }, 
963     { 0xea,0x04,0x9d,0x5e }, { 0x35,0x5d,0x01,0x8c },
964     { 0x74,0x73,0xfa,0x87 }, { 0x41,0x2e,0xfb,0x0b }, 
965     { 0x1d,0x5a,0xb3,0x67 }, { 0xd2,0x52,0x92,0xdb },
966     { 0x56,0x33,0xe9,0x10 }, { 0x47,0x13,0x6d,0xd6 }, 
967     { 0x61,0x8c,0x9a,0xd7 }, { 0x0c,0x7a,0x37,0xa1 },
968     { 0x14,0x8e,0x59,0xf8 }, { 0x3c,0x89,0xeb,0x13 }, 
969     { 0x27,0xee,0xce,0xa9 }, { 0xc9,0x35,0xb7,0x61 },
970     { 0xe5,0xed,0xe1,0x1c }, { 0xb1,0x3c,0x7a,0x47 }, 
971     { 0xdf,0x59,0x9c,0xd2 }, { 0x73,0x3f,0x55,0xf2 },
972     { 0xce,0x79,0x18,0x14 }, { 0x37,0xbf,0x73,0xc7 }, 
973     { 0xcd,0xea,0x53,0xf7 }, { 0xaa,0x5b,0x5f,0xfd },
974     { 0x6f,0x14,0xdf,0x3d }, { 0xdb,0x86,0x78,0x44 }, 
975     { 0xf3,0x81,0xca,0xaf }, { 0xc4,0x3e,0xb9,0x68 },
976     { 0x34,0x2c,0x38,0x24 }, { 0x40,0x5f,0xc2,0xa3 }, 
977     { 0xc3,0x72,0x16,0x1d }, { 0x25,0x0c,0xbc,0xe2 },
978     { 0x49,0x8b,0x28,0x3c }, { 0x95,0x41,0xff,0x0d }, 
979     { 0x01,0x71,0x39,0xa8 }, { 0xb3,0xde,0x08,0x0c },
980     { 0xe4,0x9c,0xd8,0xb4 }, { 0xc1,0x90,0x64,0x56 }, 
981     { 0x84,0x61,0x7b,0xcb }, { 0xb6,0x70,0xd5,0x32 },
982     { 0x5c,0x74,0x48,0x6c }, { 0x57,0x42,0xd0,0xb8 }
983   };
984
985 static const unsigned char T8[256][4] = 
986   {
987     { 0xf4,0xa7,0x50,0x51 }, { 0x41,0x65,0x53,0x7e },
988     { 0x17,0xa4,0xc3,0x1a }, { 0x27,0x5e,0x96,0x3a }, 
989     { 0xab,0x6b,0xcb,0x3b }, { 0x9d,0x45,0xf1,0x1f },
990     { 0xfa,0x58,0xab,0xac }, { 0xe3,0x03,0x93,0x4b }, 
991     { 0x30,0xfa,0x55,0x20 }, { 0x76,0x6d,0xf6,0xad },
992     { 0xcc,0x76,0x91,0x88 }, { 0x02,0x4c,0x25,0xf5 }, 
993     { 0xe5,0xd7,0xfc,0x4f }, { 0x2a,0xcb,0xd7,0xc5 },
994     { 0x35,0x44,0x80,0x26 }, { 0x62,0xa3,0x8f,0xb5 }, 
995     { 0xb1,0x5a,0x49,0xde }, { 0xba,0x1b,0x67,0x25 },
996     { 0xea,0x0e,0x98,0x45 }, { 0xfe,0xc0,0xe1,0x5d }, 
997     { 0x2f,0x75,0x02,0xc3 }, { 0x4c,0xf0,0x12,0x81 },
998     { 0x46,0x97,0xa3,0x8d }, { 0xd3,0xf9,0xc6,0x6b }, 
999     { 0x8f,0x5f,0xe7,0x03 }, { 0x92,0x9c,0x95,0x15 },
1000     { 0x6d,0x7a,0xeb,0xbf }, { 0x52,0x59,0xda,0x95 }, 
1001     { 0xbe,0x83,0x2d,0xd4 }, { 0x74,0x21,0xd3,0x58 },
1002     { 0xe0,0x69,0x29,0x49 }, { 0xc9,0xc8,0x44,0x8e }, 
1003     { 0xc2,0x89,0x6a,0x75 }, { 0x8e,0x79,0x78,0xf4 },
1004     { 0x58,0x3e,0x6b,0x99 }, { 0xb9,0x71,0xdd,0x27 }, 
1005     { 0xe1,0x4f,0xb6,0xbe }, { 0x88,0xad,0x17,0xf0 },
1006     { 0x20,0xac,0x66,0xc9 }, { 0xce,0x3a,0xb4,0x7d }, 
1007     { 0xdf,0x4a,0x18,0x63 }, { 0x1a,0x31,0x82,0xe5 },
1008     { 0x51,0x33,0x60,0x97 }, { 0x53,0x7f,0x45,0x62 }, 
1009     { 0x64,0x77,0xe0,0xb1 }, { 0x6b,0xae,0x84,0xbb },
1010     { 0x81,0xa0,0x1c,0xfe }, { 0x08,0x2b,0x94,0xf9 }, 
1011     { 0x48,0x68,0x58,0x70 }, { 0x45,0xfd,0x19,0x8f },
1012     { 0xde,0x6c,0x87,0x94 }, { 0x7b,0xf8,0xb7,0x52 }, 
1013     { 0x73,0xd3,0x23,0xab }, { 0x4b,0x02,0xe2,0x72 },
1014     { 0x1f,0x8f,0x57,0xe3 }, { 0x55,0xab,0x2a,0x66 }, 
1015     { 0xeb,0x28,0x07,0xb2 }, { 0xb5,0xc2,0x03,0x2f },
1016     { 0xc5,0x7b,0x9a,0x86 }, { 0x37,0x08,0xa5,0xd3 }, 
1017     { 0x28,0x87,0xf2,0x30 }, { 0xbf,0xa5,0xb2,0x23 },
1018     { 0x03,0x6a,0xba,0x02 }, { 0x16,0x82,0x5c,0xed }, 
1019     { 0xcf,0x1c,0x2b,0x8a }, { 0x79,0xb4,0x92,0xa7 },
1020     { 0x07,0xf2,0xf0,0xf3 }, { 0x69,0xe2,0xa1,0x4e }, 
1021     { 0xda,0xf4,0xcd,0x65 }, { 0x05,0xbe,0xd5,0x06 },
1022     { 0x34,0x62,0x1f,0xd1 }, { 0xa6,0xfe,0x8a,0xc4 }, 
1023     { 0x2e,0x53,0x9d,0x34 }, { 0xf3,0x55,0xa0,0xa2 },
1024     { 0x8a,0xe1,0x32,0x05 }, { 0xf6,0xeb,0x75,0xa4 }, 
1025     { 0x83,0xec,0x39,0x0b }, { 0x60,0xef,0xaa,0x40 },
1026     { 0x71,0x9f,0x06,0x5e }, { 0x6e,0x10,0x51,0xbd }, 
1027     { 0x21,0x8a,0xf9,0x3e }, { 0xdd,0x06,0x3d,0x96 },
1028     { 0x3e,0x05,0xae,0xdd }, { 0xe6,0xbd,0x46,0x4d }, 
1029     { 0x54,0x8d,0xb5,0x91 }, { 0xc4,0x5d,0x05,0x71 },
1030     { 0x06,0xd4,0x6f,0x04 }, { 0x50,0x15,0xff,0x60 }, 
1031     { 0x98,0xfb,0x24,0x19 }, { 0xbd,0xe9,0x97,0xd6 },
1032     { 0x40,0x43,0xcc,0x89 }, { 0xd9,0x9e,0x77,0x67 }, 
1033     { 0xe8,0x42,0xbd,0xb0 }, { 0x89,0x8b,0x88,0x07 },
1034     { 0x19,0x5b,0x38,0xe7 }, { 0xc8,0xee,0xdb,0x79 }, 
1035     { 0x7c,0x0a,0x47,0xa1 }, { 0x42,0x0f,0xe9,0x7c },
1036     { 0x84,0x1e,0xc9,0xf8 }, { 0x00,0x00,0x00,0x00 }, 
1037     { 0x80,0x86,0x83,0x09 }, { 0x2b,0xed,0x48,0x32 },
1038     { 0x11,0x70,0xac,0x1e }, { 0x5a,0x72,0x4e,0x6c }, 
1039     { 0x0e,0xff,0xfb,0xfd }, { 0x85,0x38,0x56,0x0f }, 
1040     { 0xae,0xd5,0x1e,0x3d }, { 0x2d,0x39,0x27,0x36 }, 
1041     { 0x0f,0xd9,0x64,0x0a }, { 0x5c,0xa6,0x21,0x68 },
1042     { 0x5b,0x54,0xd1,0x9b }, { 0x36,0x2e,0x3a,0x24 }, 
1043     { 0x0a,0x67,0xb1,0x0c }, { 0x57,0xe7,0x0f,0x93 },
1044     { 0xee,0x96,0xd2,0xb4 }, { 0x9b,0x91,0x9e,0x1b }, 
1045     { 0xc0,0xc5,0x4f,0x80 }, { 0xdc,0x20,0xa2,0x61 },
1046     { 0x77,0x4b,0x69,0x5a }, { 0x12,0x1a,0x16,0x1c }, 
1047     { 0x93,0xba,0x0a,0xe2 }, { 0xa0,0x2a,0xe5,0xc0 },
1048     { 0x22,0xe0,0x43,0x3c }, { 0x1b,0x17,0x1d,0x12 }, 
1049     { 0x09,0x0d,0x0b,0x0e }, { 0x8b,0xc7,0xad,0xf2 },
1050     { 0xb6,0xa8,0xb9,0x2d }, { 0x1e,0xa9,0xc8,0x14 }, 
1051     { 0xf1,0x19,0x85,0x57 }, { 0x75,0x07,0x4c,0xaf },
1052     { 0x99,0xdd,0xbb,0xee }, { 0x7f,0x60,0xfd,0xa3 }, 
1053     { 0x01,0x26,0x9f,0xf7 }, { 0x72,0xf5,0xbc,0x5c },
1054     { 0x66,0x3b,0xc5,0x44 }, { 0xfb,0x7e,0x34,0x5b }, 
1055     { 0x43,0x29,0x76,0x8b }, { 0x23,0xc6,0xdc,0xcb },
1056     { 0xed,0xfc,0x68,0xb6 }, { 0xe4,0xf1,0x63,0xb8 }, 
1057     { 0x31,0xdc,0xca,0xd7 }, { 0x63,0x85,0x10,0x42 },
1058     { 0x97,0x22,0x40,0x13 }, { 0xc6,0x11,0x20,0x84 }, 
1059     { 0x4a,0x24,0x7d,0x85 }, { 0xbb,0x3d,0xf8,0xd2 }, 
1060     { 0xf9,0x32,0x11,0xae }, { 0x29,0xa1,0x6d,0xc7 }, 
1061     { 0x9e,0x2f,0x4b,0x1d }, { 0xb2,0x30,0xf3,0xdc },
1062     { 0x86,0x52,0xec,0x0d }, { 0xc1,0xe3,0xd0,0x77 }, 
1063     { 0xb3,0x16,0x6c,0x2b }, { 0x70,0xb9,0x99,0xa9 },
1064     { 0x94,0x48,0xfa,0x11 }, { 0xe9,0x64,0x22,0x47 }, 
1065     { 0xfc,0x8c,0xc4,0xa8 }, { 0xf0,0x3f,0x1a,0xa0 },
1066     { 0x7d,0x2c,0xd8,0x56 }, { 0x33,0x90,0xef,0x22 }, 
1067     { 0x49,0x4e,0xc7,0x87 }, { 0x38,0xd1,0xc1,0xd9 },
1068     { 0xca,0xa2,0xfe,0x8c }, { 0xd4,0x0b,0x36,0x98 }, 
1069     { 0xf5,0x81,0xcf,0xa6 }, { 0x7a,0xde,0x28,0xa5 },
1070     { 0xb7,0x8e,0x26,0xda }, { 0xad,0xbf,0xa4,0x3f }, 
1071     { 0x3a,0x9d,0xe4,0x2c }, { 0x78,0x92,0x0d,0x50 },
1072     { 0x5f,0xcc,0x9b,0x6a }, { 0x7e,0x46,0x62,0x54 }, 
1073     { 0x8d,0x13,0xc2,0xf6 }, { 0xd8,0xb8,0xe8,0x90 },
1074     { 0x39,0xf7,0x5e,0x2e }, { 0xc3,0xaf,0xf5,0x82 }, 
1075     { 0x5d,0x80,0xbe,0x9f }, { 0xd0,0x93,0x7c,0x69 },
1076     { 0xd5,0x2d,0xa9,0x6f }, { 0x25,0x12,0xb3,0xcf }, 
1077     { 0xac,0x99,0x3b,0xc8 }, { 0x18,0x7d,0xa7,0x10 },
1078     { 0x9c,0x63,0x6e,0xe8 }, { 0x3b,0xbb,0x7b,0xdb }, 
1079     { 0x26,0x78,0x09,0xcd }, { 0x59,0x18,0xf4,0x6e },
1080     { 0x9a,0xb7,0x01,0xec }, { 0x4f,0x9a,0xa8,0x83 }, 
1081     { 0x95,0x6e,0x65,0xe6 }, { 0xff,0xe6,0x7e,0xaa },
1082     { 0xbc,0xcf,0x08,0x21 }, { 0x15,0xe8,0xe6,0xef }, 
1083     { 0xe7,0x9b,0xd9,0xba }, { 0x6f,0x36,0xce,0x4a },
1084     { 0x9f,0x09,0xd4,0xea }, { 0xb0,0x7c,0xd6,0x29 }, 
1085     { 0xa4,0xb2,0xaf,0x31 }, { 0x3f,0x23,0x31,0x2a },
1086     { 0xa5,0x94,0x30,0xc6 }, { 0xa2,0x66,0xc0,0x35 }, 
1087     { 0x4e,0xbc,0x37,0x74 }, { 0x82,0xca,0xa6,0xfc },
1088     { 0x90,0xd0,0xb0,0xe0 }, { 0xa7,0xd8,0x15,0x33 }, 
1089     { 0x04,0x98,0x4a,0xf1 }, { 0xec,0xda,0xf7,0x41 },
1090     { 0xcd,0x50,0x0e,0x7f }, { 0x91,0xf6,0x2f,0x17 }, 
1091     { 0x4d,0xd6,0x8d,0x76 }, { 0xef,0xb0,0x4d,0x43 }, 
1092     { 0xaa,0x4d,0x54,0xcc }, { 0x96,0x04,0xdf,0xe4 }, 
1093     { 0xd1,0xb5,0xe3,0x9e }, { 0x6a,0x88,0x1b,0x4c },
1094     { 0x2c,0x1f,0xb8,0xc1 }, { 0x65,0x51,0x7f,0x46 }, 
1095     { 0x5e,0xea,0x04,0x9d }, { 0x8c,0x35,0x5d,0x01 },
1096     { 0x87,0x74,0x73,0xfa }, { 0x0b,0x41,0x2e,0xfb }, 
1097     { 0x67,0x1d,0x5a,0xb3 }, { 0xdb,0xd2,0x52,0x92 },
1098     { 0x10,0x56,0x33,0xe9 }, { 0xd6,0x47,0x13,0x6d }, 
1099     { 0xd7,0x61,0x8c,0x9a }, { 0xa1,0x0c,0x7a,0x37 },
1100     { 0xf8,0x14,0x8e,0x59 }, { 0x13,0x3c,0x89,0xeb }, 
1101     { 0xa9,0x27,0xee,0xce }, { 0x61,0xc9,0x35,0xb7 },
1102     { 0x1c,0xe5,0xed,0xe1 }, { 0x47,0xb1,0x3c,0x7a }, 
1103     { 0xd2,0xdf,0x59,0x9c }, { 0xf2,0x73,0x3f,0x55 },
1104     { 0x14,0xce,0x79,0x18 }, { 0xc7,0x37,0xbf,0x73 }, 
1105     { 0xf7,0xcd,0xea,0x53 }, { 0xfd,0xaa,0x5b,0x5f },
1106     { 0x3d,0x6f,0x14,0xdf }, { 0x44,0xdb,0x86,0x78 }, 
1107     { 0xaf,0xf3,0x81,0xca }, { 0x68,0xc4,0x3e,0xb9 },
1108     { 0x24,0x34,0x2c,0x38 }, { 0xa3,0x40,0x5f,0xc2 }, 
1109     { 0x1d,0xc3,0x72,0x16 }, { 0xe2,0x25,0x0c,0xbc },
1110     { 0x3c,0x49,0x8b,0x28 }, { 0x0d,0x95,0x41,0xff }, 
1111     { 0xa8,0x01,0x71,0x39 }, { 0x0c,0xb3,0xde,0x08 },
1112     { 0xb4,0xe4,0x9c,0xd8 }, { 0x56,0xc1,0x90,0x64 }, 
1113     { 0xcb,0x84,0x61,0x7b }, { 0x32,0xb6,0x70,0xd5 },
1114     { 0x6c,0x5c,0x74,0x48 }, { 0xb8,0x57,0x42,0xd0 }
1115   };
1116
1117 static const unsigned char S5[256] = 
1118   {
1119     0x52,0x09,0x6a,0xd5,0x30,0x36,0xa5,0x38,
1120     0xbf,0x40,0xa3,0x9e,0x81,0xf3,0xd7,0xfb,
1121     0x7c,0xe3,0x39,0x82,0x9b,0x2f,0xff,0x87,
1122     0x34,0x8e,0x43,0x44,0xc4,0xde,0xe9,0xcb,
1123     0x54,0x7b,0x94,0x32,0xa6,0xc2,0x23,0x3d,
1124     0xee,0x4c,0x95,0x0b,0x42,0xfa,0xc3,0x4e,
1125     0x08,0x2e,0xa1,0x66,0x28,0xd9,0x24,0xb2,
1126     0x76,0x5b,0xa2,0x49,0x6d,0x8b,0xd1,0x25,
1127     0x72,0xf8,0xf6,0x64,0x86,0x68,0x98,0x16,
1128     0xd4,0xa4,0x5c,0xcc,0x5d,0x65,0xb6,0x92,
1129     0x6c,0x70,0x48,0x50,0xfd,0xed,0xb9,0xda,
1130     0x5e,0x15,0x46,0x57,0xa7,0x8d,0x9d,0x84,
1131     0x90,0xd8,0xab,0x00,0x8c,0xbc,0xd3,0x0a,
1132     0xf7,0xe4,0x58,0x05,0xb8,0xb3,0x45,0x06,
1133     0xd0,0x2c,0x1e,0x8f,0xca,0x3f,0x0f,0x02,
1134     0xc1,0xaf,0xbd,0x03,0x01,0x13,0x8a,0x6b,
1135     0x3a,0x91,0x11,0x41,0x4f,0x67,0xdc,0xea,
1136     0x97,0xf2,0xcf,0xce,0xf0,0xb4,0xe6,0x73,
1137     0x96,0xac,0x74,0x22,0xe7,0xad,0x35,0x85,
1138     0xe2,0xf9,0x37,0xe8,0x1c,0x75,0xdf,0x6e,
1139     0x47,0xf1,0x1a,0x71,0x1d,0x29,0xc5,0x89,
1140     0x6f,0xb7,0x62,0x0e,0xaa,0x18,0xbe,0x1b,
1141     0xfc,0x56,0x3e,0x4b,0xc6,0xd2,0x79,0x20,
1142     0x9a,0xdb,0xc0,0xfe,0x78,0xcd,0x5a,0xf4,
1143     0x1f,0xdd,0xa8,0x33,0x88,0x07,0xc7,0x31,
1144     0xb1,0x12,0x10,0x59,0x27,0x80,0xec,0x5f,
1145     0x60,0x51,0x7f,0xa9,0x19,0xb5,0x4a,0x0d,
1146     0x2d,0xe5,0x7a,0x9f,0x93,0xc9,0x9c,0xef,
1147     0xa0,0xe0,0x3b,0x4d,0xae,0x2a,0xf5,0xb0,
1148     0xc8,0xeb,0xbb,0x3c,0x83,0x53,0x99,0x61,
1149     0x17,0x2b,0x04,0x7e,0xba,0x77,0xd6,0x26,
1150     0xe1,0x69,0x14,0x63,0x55,0x21,0x0c,0x7d
1151   };
1152
1153 static const unsigned char U1[256][4] = 
1154   {
1155     { 0x00,0x00,0x00,0x00 }, { 0x0e,0x09,0x0d,0x0b },
1156     { 0x1c,0x12,0x1a,0x16 }, { 0x12,0x1b,0x17,0x1d }, 
1157     { 0x38,0x24,0x34,0x2c }, { 0x36,0x2d,0x39,0x27 },
1158     { 0x24,0x36,0x2e,0x3a }, { 0x2a,0x3f,0x23,0x31 }, 
1159     { 0x70,0x48,0x68,0x58 }, { 0x7e,0x41,0x65,0x53 },
1160     { 0x6c,0x5a,0x72,0x4e }, { 0x62,0x53,0x7f,0x45 }, 
1161     { 0x48,0x6c,0x5c,0x74 }, { 0x46,0x65,0x51,0x7f },
1162     { 0x54,0x7e,0x46,0x62 }, { 0x5a,0x77,0x4b,0x69 }, 
1163     { 0xe0,0x90,0xd0,0xb0 }, { 0xee,0x99,0xdd,0xbb },
1164     { 0xfc,0x82,0xca,0xa6 }, { 0xf2,0x8b,0xc7,0xad }, 
1165     { 0xd8,0xb4,0xe4,0x9c }, { 0xd6,0xbd,0xe9,0x97 },
1166     { 0xc4,0xa6,0xfe,0x8a }, { 0xca,0xaf,0xf3,0x81 }, 
1167     { 0x90,0xd8,0xb8,0xe8 }, { 0x9e,0xd1,0xb5,0xe3 },
1168     { 0x8c,0xca,0xa2,0xfe }, { 0x82,0xc3,0xaf,0xf5 }, 
1169     { 0xa8,0xfc,0x8c,0xc4 }, { 0xa6,0xf5,0x81,0xcf },
1170     { 0xb4,0xee,0x96,0xd2 }, { 0xba,0xe7,0x9b,0xd9 }, 
1171     { 0xdb,0x3b,0xbb,0x7b }, { 0xd5,0x32,0xb6,0x70 },
1172     { 0xc7,0x29,0xa1,0x6d }, { 0xc9,0x20,0xac,0x66 }, 
1173     { 0xe3,0x1f,0x8f,0x57 }, { 0xed,0x16,0x82,0x5c },
1174     { 0xff,0x0d,0x95,0x41 }, { 0xf1,0x04,0x98,0x4a }, 
1175     { 0xab,0x73,0xd3,0x23 }, { 0xa5,0x7a,0xde,0x28 },
1176     { 0xb7,0x61,0xc9,0x35 }, { 0xb9,0x68,0xc4,0x3e }, 
1177     { 0x93,0x57,0xe7,0x0f }, { 0x9d,0x5e,0xea,0x04 },
1178     { 0x8f,0x45,0xfd,0x19 }, { 0x81,0x4c,0xf0,0x12 }, 
1179     { 0x3b,0xab,0x6b,0xcb }, { 0x35,0xa2,0x66,0xc0 },
1180     { 0x27,0xb9,0x71,0xdd }, { 0x29,0xb0,0x7c,0xd6 }, 
1181     { 0x03,0x8f,0x5f,0xe7 }, { 0x0d,0x86,0x52,0xec },
1182     { 0x1f,0x9d,0x45,0xf1 }, { 0x11,0x94,0x48,0xfa }, 
1183     { 0x4b,0xe3,0x03,0x93 }, { 0x45,0xea,0x0e,0x98 },
1184     { 0x57,0xf1,0x19,0x85 }, { 0x59,0xf8,0x14,0x8e }, 
1185     { 0x73,0xc7,0x37,0xbf }, { 0x7d,0xce,0x3a,0xb4 },
1186     { 0x6f,0xd5,0x2d,0xa9 }, { 0x61,0xdc,0x20,0xa2 }, 
1187     { 0xad,0x76,0x6d,0xf6 }, { 0xa3,0x7f,0x60,0xfd },
1188     { 0xb1,0x64,0x77,0xe0 }, { 0xbf,0x6d,0x7a,0xeb }, 
1189     { 0x95,0x52,0x59,0xda }, { 0x9b,0x5b,0x54,0xd1 },
1190     { 0x89,0x40,0x43,0xcc }, { 0x87,0x49,0x4e,0xc7 }, 
1191     { 0xdd,0x3e,0x05,0xae }, { 0xd3,0x37,0x08,0xa5 },
1192     { 0xc1,0x2c,0x1f,0xb8 }, { 0xcf,0x25,0x12,0xb3 }, 
1193     { 0xe5,0x1a,0x31,0x82 }, { 0xeb,0x13,0x3c,0x89 },
1194     { 0xf9,0x08,0x2b,0x94 }, { 0xf7,0x01,0x26,0x9f }, 
1195     { 0x4d,0xe6,0xbd,0x46 }, { 0x43,0xef,0xb0,0x4d },
1196     { 0x51,0xf4,0xa7,0x50 }, { 0x5f,0xfd,0xaa,0x5b }, 
1197     { 0x75,0xc2,0x89,0x6a }, { 0x7b,0xcb,0x84,0x61 },
1198     { 0x69,0xd0,0x93,0x7c }, { 0x67,0xd9,0x9e,0x77 }, 
1199     { 0x3d,0xae,0xd5,0x1e }, { 0x33,0xa7,0xd8,0x15 },
1200     { 0x21,0xbc,0xcf,0x08 }, { 0x2f,0xb5,0xc2,0x03 }, 
1201     { 0x05,0x8a,0xe1,0x32 }, { 0x0b,0x83,0xec,0x39 },
1202     { 0x19,0x98,0xfb,0x24 }, { 0x17,0x91,0xf6,0x2f }, 
1203     { 0x76,0x4d,0xd6,0x8d }, { 0x78,0x44,0xdb,0x86 },
1204     { 0x6a,0x5f,0xcc,0x9b }, { 0x64,0x56,0xc1,0x90 }, 
1205     { 0x4e,0x69,0xe2,0xa1 }, { 0x40,0x60,0xef,0xaa },
1206     { 0x52,0x7b,0xf8,0xb7 }, { 0x5c,0x72,0xf5,0xbc }, 
1207     { 0x06,0x05,0xbe,0xd5 }, { 0x08,0x0c,0xb3,0xde },
1208     { 0x1a,0x17,0xa4,0xc3 }, { 0x14,0x1e,0xa9,0xc8 }, 
1209     { 0x3e,0x21,0x8a,0xf9 }, { 0x30,0x28,0x87,0xf2 },
1210     { 0x22,0x33,0x90,0xef }, { 0x2c,0x3a,0x9d,0xe4 }, 
1211     { 0x96,0xdd,0x06,0x3d }, { 0x98,0xd4,0x0b,0x36 },
1212     { 0x8a,0xcf,0x1c,0x2b }, { 0x84,0xc6,0x11,0x20 }, 
1213     { 0xae,0xf9,0x32,0x11 }, { 0xa0,0xf0,0x3f,0x1a },
1214     { 0xb2,0xeb,0x28,0x07 }, { 0xbc,0xe2,0x25,0x0c }, 
1215     { 0xe6,0x95,0x6e,0x65 }, { 0xe8,0x9c,0x63,0x6e },
1216     { 0xfa,0x87,0x74,0x73 }, { 0xf4,0x8e,0x79,0x78 }, 
1217     { 0xde,0xb1,0x5a,0x49 }, { 0xd0,0xb8,0x57,0x42 },
1218     { 0xc2,0xa3,0x40,0x5f }, { 0xcc,0xaa,0x4d,0x54 }, 
1219     { 0x41,0xec,0xda,0xf7 }, { 0x4f,0xe5,0xd7,0xfc },
1220     { 0x5d,0xfe,0xc0,0xe1 }, { 0x53,0xf7,0xcd,0xea }, 
1221     { 0x79,0xc8,0xee,0xdb }, { 0x77,0xc1,0xe3,0xd0 },
1222     { 0x65,0xda,0xf4,0xcd }, { 0x6b,0xd3,0xf9,0xc6 }, 
1223     { 0x31,0xa4,0xb2,0xaf }, { 0x3f,0xad,0xbf,0xa4 },
1224     { 0x2d,0xb6,0xa8,0xb9 }, { 0x23,0xbf,0xa5,0xb2 }, 
1225     { 0x09,0x80,0x86,0x83 }, { 0x07,0x89,0x8b,0x88 },
1226     { 0x15,0x92,0x9c,0x95 }, { 0x1b,0x9b,0x91,0x9e }, 
1227     { 0xa1,0x7c,0x0a,0x47 }, { 0xaf,0x75,0x07,0x4c },
1228     { 0xbd,0x6e,0x10,0x51 }, { 0xb3,0x67,0x1d,0x5a }, 
1229     { 0x99,0x58,0x3e,0x6b }, { 0x97,0x51,0x33,0x60 },
1230     { 0x85,0x4a,0x24,0x7d }, { 0x8b,0x43,0x29,0x76 }, 
1231     { 0xd1,0x34,0x62,0x1f }, { 0xdf,0x3d,0x6f,0x14 },
1232     { 0xcd,0x26,0x78,0x09 }, { 0xc3,0x2f,0x75,0x02 }, 
1233     { 0xe9,0x10,0x56,0x33 }, { 0xe7,0x19,0x5b,0x38 },
1234     { 0xf5,0x02,0x4c,0x25 }, { 0xfb,0x0b,0x41,0x2e }, 
1235     { 0x9a,0xd7,0x61,0x8c }, { 0x94,0xde,0x6c,0x87 }, 
1236     { 0x86,0xc5,0x7b,0x9a }, { 0x88,0xcc,0x76,0x91 }, 
1237     { 0xa2,0xf3,0x55,0xa0 }, { 0xac,0xfa,0x58,0xab },
1238     { 0xbe,0xe1,0x4f,0xb6 }, { 0xb0,0xe8,0x42,0xbd }, 
1239     { 0xea,0x9f,0x09,0xd4 }, { 0xe4,0x96,0x04,0xdf },
1240     { 0xf6,0x8d,0x13,0xc2 }, { 0xf8,0x84,0x1e,0xc9 }, 
1241     { 0xd2,0xbb,0x3d,0xf8 }, { 0xdc,0xb2,0x30,0xf3 },
1242     { 0xce,0xa9,0x27,0xee }, { 0xc0,0xa0,0x2a,0xe5 }, 
1243     { 0x7a,0x47,0xb1,0x3c }, { 0x74,0x4e,0xbc,0x37 }, 
1244     { 0x66,0x55,0xab,0x2a }, { 0x68,0x5c,0xa6,0x21 }, 
1245     { 0x42,0x63,0x85,0x10 }, { 0x4c,0x6a,0x88,0x1b },
1246     { 0x5e,0x71,0x9f,0x06 }, { 0x50,0x78,0x92,0x0d }, 
1247     { 0x0a,0x0f,0xd9,0x64 }, { 0x04,0x06,0xd4,0x6f },
1248     { 0x16,0x1d,0xc3,0x72 }, { 0x18,0x14,0xce,0x79 }, 
1249     { 0x32,0x2b,0xed,0x48 }, { 0x3c,0x22,0xe0,0x43 },
1250     { 0x2e,0x39,0xf7,0x5e }, { 0x20,0x30,0xfa,0x55 }, 
1251     { 0xec,0x9a,0xb7,0x01 }, { 0xe2,0x93,0xba,0x0a },
1252     { 0xf0,0x88,0xad,0x17 }, { 0xfe,0x81,0xa0,0x1c }, 
1253     { 0xd4,0xbe,0x83,0x2d }, { 0xda,0xb7,0x8e,0x26 },
1254     { 0xc8,0xac,0x99,0x3b }, { 0xc6,0xa5,0x94,0x30 }, 
1255     { 0x9c,0xd2,0xdf,0x59 }, { 0x92,0xdb,0xd2,0x52 },
1256     { 0x80,0xc0,0xc5,0x4f }, { 0x8e,0xc9,0xc8,0x44 }, 
1257     { 0xa4,0xf6,0xeb,0x75 }, { 0xaa,0xff,0xe6,0x7e },
1258     { 0xb8,0xe4,0xf1,0x63 }, { 0xb6,0xed,0xfc,0x68 }, 
1259     { 0x0c,0x0a,0x67,0xb1 }, { 0x02,0x03,0x6a,0xba },
1260     { 0x10,0x18,0x7d,0xa7 }, { 0x1e,0x11,0x70,0xac }, 
1261     { 0x34,0x2e,0x53,0x9d }, { 0x3a,0x27,0x5e,0x96 },
1262     { 0x28,0x3c,0x49,0x8b }, { 0x26,0x35,0x44,0x80 }, 
1263     { 0x7c,0x42,0x0f,0xe9 }, { 0x72,0x4b,0x02,0xe2 },
1264     { 0x60,0x50,0x15,0xff }, { 0x6e,0x59,0x18,0xf4 }, 
1265     { 0x44,0x66,0x3b,0xc5 }, { 0x4a,0x6f,0x36,0xce },
1266     { 0x58,0x74,0x21,0xd3 }, { 0x56,0x7d,0x2c,0xd8 }, 
1267     { 0x37,0xa1,0x0c,0x7a }, { 0x39,0xa8,0x01,0x71 },
1268     { 0x2b,0xb3,0x16,0x6c }, { 0x25,0xba,0x1b,0x67 }, 
1269     { 0x0f,0x85,0x38,0x56 }, { 0x01,0x8c,0x35,0x5d },
1270     { 0x13,0x97,0x22,0x40 }, { 0x1d,0x9e,0x2f,0x4b }, 
1271     { 0x47,0xe9,0x64,0x22 }, { 0x49,0xe0,0x69,0x29 },
1272     { 0x5b,0xfb,0x7e,0x34 }, { 0x55,0xf2,0x73,0x3f }, 
1273     { 0x7f,0xcd,0x50,0x0e }, { 0x71,0xc4,0x5d,0x05 },
1274     { 0x63,0xdf,0x4a,0x18 }, { 0x6d,0xd6,0x47,0x13 }, 
1275     { 0xd7,0x31,0xdc,0xca }, { 0xd9,0x38,0xd1,0xc1 },
1276     { 0xcb,0x23,0xc6,0xdc }, { 0xc5,0x2a,0xcb,0xd7 }, 
1277     { 0xef,0x15,0xe8,0xe6 }, { 0xe1,0x1c,0xe5,0xed },
1278     { 0xf3,0x07,0xf2,0xf0 }, { 0xfd,0x0e,0xff,0xfb }, 
1279     { 0xa7,0x79,0xb4,0x92 }, { 0xa9,0x70,0xb9,0x99 },
1280     { 0xbb,0x6b,0xae,0x84 }, { 0xb5,0x62,0xa3,0x8f }, 
1281     { 0x9f,0x5d,0x80,0xbe }, { 0x91,0x54,0x8d,0xb5 },
1282     { 0x83,0x4f,0x9a,0xa8 }, { 0x8d,0x46,0x97,0xa3 }
1283   };
1284
1285 static const unsigned char U2[256][4] = 
1286   {
1287     { 0x00,0x00,0x00,0x00 }, { 0x0b,0x0e,0x09,0x0d },
1288     { 0x16,0x1c,0x12,0x1a }, { 0x1d,0x12,0x1b,0x17 }, 
1289     { 0x2c,0x38,0x24,0x34 }, { 0x27,0x36,0x2d,0x39 },
1290     { 0x3a,0x24,0x36,0x2e }, { 0x31,0x2a,0x3f,0x23 }, 
1291     { 0x58,0x70,0x48,0x68 }, { 0x53,0x7e,0x41,0x65 }, 
1292     { 0x4e,0x6c,0x5a,0x72 }, { 0x45,0x62,0x53,0x7f }, 
1293     { 0x74,0x48,0x6c,0x5c }, { 0x7f,0x46,0x65,0x51 },
1294     { 0x62,0x54,0x7e,0x46 }, { 0x69,0x5a,0x77,0x4b }, 
1295     { 0xb0,0xe0,0x90,0xd0 }, { 0xbb,0xee,0x99,0xdd }, 
1296     { 0xa6,0xfc,0x82,0xca }, { 0xad,0xf2,0x8b,0xc7 }, 
1297     { 0x9c,0xd8,0xb4,0xe4 }, { 0x97,0xd6,0xbd,0xe9 }, 
1298     { 0x8a,0xc4,0xa6,0xfe }, { 0x81,0xca,0xaf,0xf3 }, 
1299     { 0xe8,0x90,0xd8,0xb8 }, { 0xe3,0x9e,0xd1,0xb5 },
1300     { 0xfe,0x8c,0xca,0xa2 }, { 0xf5,0x82,0xc3,0xaf }, 
1301     { 0xc4,0xa8,0xfc,0x8c }, { 0xcf,0xa6,0xf5,0x81 }, 
1302     { 0xd2,0xb4,0xee,0x96 }, { 0xd9,0xba,0xe7,0x9b }, 
1303     { 0x7b,0xdb,0x3b,0xbb }, { 0x70,0xd5,0x32,0xb6 }, 
1304     { 0x6d,0xc7,0x29,0xa1 }, { 0x66,0xc9,0x20,0xac }, 
1305     { 0x57,0xe3,0x1f,0x8f }, { 0x5c,0xed,0x16,0x82 }, 
1306     { 0x41,0xff,0x0d,0x95 }, { 0x4a,0xf1,0x04,0x98 }, 
1307     { 0x23,0xab,0x73,0xd3 }, { 0x28,0xa5,0x7a,0xde },
1308     { 0x35,0xb7,0x61,0xc9 }, { 0x3e,0xb9,0x68,0xc4 }, 
1309     { 0x0f,0x93,0x57,0xe7 }, { 0x04,0x9d,0x5e,0xea },
1310     { 0x19,0x8f,0x45,0xfd }, { 0x12,0x81,0x4c,0xf0 }, 
1311     { 0xcb,0x3b,0xab,0x6b }, { 0xc0,0x35,0xa2,0x66 },
1312     { 0xdd,0x27,0xb9,0x71 }, { 0xd6,0x29,0xb0,0x7c }, 
1313     { 0xe7,0x03,0x8f,0x5f }, { 0xec,0x0d,0x86,0x52 },
1314     { 0xf1,0x1f,0x9d,0x45 }, { 0xfa,0x11,0x94,0x48 }, 
1315     { 0x93,0x4b,0xe3,0x03 }, { 0x98,0x45,0xea,0x0e }, 
1316     { 0x85,0x57,0xf1,0x19 }, { 0x8e,0x59,0xf8,0x14 }, 
1317     { 0xbf,0x73,0xc7,0x37 }, { 0xb4,0x7d,0xce,0x3a },
1318     { 0xa9,0x6f,0xd5,0x2d }, { 0xa2,0x61,0xdc,0x20 }, 
1319     { 0xf6,0xad,0x76,0x6d }, { 0xfd,0xa3,0x7f,0x60 }, 
1320     { 0xe0,0xb1,0x64,0x77 }, { 0xeb,0xbf,0x6d,0x7a }, 
1321     { 0xda,0x95,0x52,0x59 }, { 0xd1,0x9b,0x5b,0x54 }, 
1322     { 0xcc,0x89,0x40,0x43 }, { 0xc7,0x87,0x49,0x4e }, 
1323     { 0xae,0xdd,0x3e,0x05 }, { 0xa5,0xd3,0x37,0x08 },
1324     { 0xb8,0xc1,0x2c,0x1f }, { 0xb3,0xcf,0x25,0x12 }, 
1325     { 0x82,0xe5,0x1a,0x31 }, { 0x89,0xeb,0x13,0x3c },
1326     { 0x94,0xf9,0x08,0x2b }, { 0x9f,0xf7,0x01,0x26 }, 
1327     { 0x46,0x4d,0xe6,0xbd }, { 0x4d,0x43,0xef,0xb0 },
1328     { 0x50,0x51,0xf4,0xa7 }, { 0x5b,0x5f,0xfd,0xaa }, 
1329     { 0x6a,0x75,0xc2,0x89 }, { 0x61,0x7b,0xcb,0x84 },
1330     { 0x7c,0x69,0xd0,0x93 }, { 0x77,0x67,0xd9,0x9e }, 
1331     { 0x1e,0x3d,0xae,0xd5 }, { 0x15,0x33,0xa7,0xd8 },
1332     { 0x08,0x21,0xbc,0xcf }, { 0x03,0x2f,0xb5,0xc2 }, 
1333     { 0x32,0x05,0x8a,0xe1 }, { 0x39,0x0b,0x83,0xec },
1334     { 0x24,0x19,0x98,0xfb }, { 0x2f,0x17,0x91,0xf6 }, 
1335     { 0x8d,0x76,0x4d,0xd6 }, { 0x86,0x78,0x44,0xdb },
1336     { 0x9b,0x6a,0x5f,0xcc }, { 0x90,0x64,0x56,0xc1 }, 
1337     { 0xa1,0x4e,0x69,0xe2 }, { 0xaa,0x40,0x60,0xef },
1338     { 0xb7,0x52,0x7b,0xf8 }, { 0xbc,0x5c,0x72,0xf5 }, 
1339     { 0xd5,0x06,0x05,0xbe }, { 0xde,0x08,0x0c,0xb3 },
1340     { 0xc3,0x1a,0x17,0xa4 }, { 0xc8,0x14,0x1e,0xa9 }, 
1341     { 0xf9,0x3e,0x21,0x8a }, { 0xf2,0x30,0x28,0x87 },
1342     { 0xef,0x22,0x33,0x90 }, { 0xe4,0x2c,0x3a,0x9d }, 
1343     { 0x3d,0x96,0xdd,0x06 }, { 0x36,0x98,0xd4,0x0b },
1344     { 0x2b,0x8a,0xcf,0x1c }, { 0x20,0x84,0xc6,0x11 }, 
1345     { 0x11,0xae,0xf9,0x32 }, { 0x1a,0xa0,0xf0,0x3f },
1346     { 0x07,0xb2,0xeb,0x28 }, { 0x0c,0xbc,0xe2,0x25 }, 
1347     { 0x65,0xe6,0x95,0x6e }, { 0x6e,0xe8,0x9c,0x63 },
1348     { 0x73,0xfa,0x87,0x74 }, { 0x78,0xf4,0x8e,0x79 }, 
1349     { 0x49,0xde,0xb1,0x5a }, { 0x42,0xd0,0xb8,0x57 },
1350     { 0x5f,0xc2,0xa3,0x40 }, { 0x54,0xcc,0xaa,0x4d }, 
1351     { 0xf7,0x41,0xec,0xda }, { 0xfc,0x4f,0xe5,0xd7 },
1352     { 0xe1,0x5d,0xfe,0xc0 }, { 0xea,0x53,0xf7,0xcd }, 
1353     { 0xdb,0x79,0xc8,0xee }, { 0xd0,0x77,0xc1,0xe3 },
1354     { 0xcd,0x65,0xda,0xf4 }, { 0xc6,0x6b,0xd3,0xf9 }, 
1355     { 0xaf,0x31,0xa4,0xb2 }, { 0xa4,0x3f,0xad,0xbf },
1356     { 0xb9,0x2d,0xb6,0xa8 }, { 0xb2,0x23,0xbf,0xa5 }, 
1357     { 0x83,0x09,0x80,0x86 }, { 0x88,0x07,0x89,0x8b },
1358     { 0x95,0x15,0x92,0x9c }, { 0x9e,0x1b,0x9b,0x91 }, 
1359     { 0x47,0xa1,0x7c,0x0a }, { 0x4c,0xaf,0x75,0x07 },
1360     { 0x51,0xbd,0x6e,0x10 }, { 0x5a,0xb3,0x67,0x1d }, 
1361     { 0x6b,0x99,0x58,0x3e }, { 0x60,0x97,0x51,0x33 },
1362     { 0x7d,0x85,0x4a,0x24 }, { 0x76,0x8b,0x43,0x29 }, 
1363     { 0x1f,0xd1,0x34,0x62 }, { 0x14,0xdf,0x3d,0x6f },
1364     { 0x09,0xcd,0x26,0x78 }, { 0x02,0xc3,0x2f,0x75 }, 
1365     { 0x33,0xe9,0x10,0x56 }, { 0x38,0xe7,0x19,0x5b },
1366     { 0x25,0xf5,0x02,0x4c }, { 0x2e,0xfb,0x0b,0x41 }, 
1367     { 0x8c,0x9a,0xd7,0x61 }, { 0x87,0x94,0xde,0x6c },
1368     { 0x9a,0x86,0xc5,0x7b }, { 0x91,0x88,0xcc,0x76 }, 
1369     { 0xa0,0xa2,0xf3,0x55 }, { 0xab,0xac,0xfa,0x58 },
1370     { 0xb6,0xbe,0xe1,0x4f }, { 0xbd,0xb0,0xe8,0x42 }, 
1371     { 0xd4,0xea,0x9f,0x09 }, { 0xdf,0xe4,0x96,0x04 },
1372     { 0xc2,0xf6,0x8d,0x13 }, { 0xc9,0xf8,0x84,0x1e }, 
1373     { 0xf8,0xd2,0xbb,0x3d }, { 0xf3,0xdc,0xb2,0x30 },
1374     { 0xee,0xce,0xa9,0x27 }, { 0xe5,0xc0,0xa0,0x2a }, 
1375     { 0x3c,0x7a,0x47,0xb1 }, { 0x37,0x74,0x4e,0xbc },
1376     { 0x2a,0x66,0x55,0xab }, { 0x21,0x68,0x5c,0xa6 }, 
1377     { 0x10,0x42,0x63,0x85 }, { 0x1b,0x4c,0x6a,0x88 },
1378     { 0x06,0x5e,0x71,0x9f }, { 0x0d,0x50,0x78,0x92 }, 
1379     { 0x64,0x0a,0x0f,0xd9 }, { 0x6f,0x04,0x06,0xd4 },
1380     { 0x72,0x16,0x1d,0xc3 }, { 0x79,0x18,0x14,0xce }, 
1381     { 0x48,0x32,0x2b,0xed }, { 0x43,0x3c,0x22,0xe0 },
1382     { 0x5e,0x2e,0x39,0xf7 }, { 0x55,0x20,0x30,0xfa }, 
1383     { 0x01,0xec,0x9a,0xb7 }, { 0x0a,0xe2,0x93,0xba },
1384     { 0x17,0xf0,0x88,0xad }, { 0x1c,0xfe,0x81,0xa0 }, 
1385     { 0x2d,0xd4,0xbe,0x83 }, { 0x26,0xda,0xb7,0x8e },
1386     { 0x3b,0xc8,0xac,0x99 }, { 0x30,0xc6,0xa5,0x94 }, 
1387     { 0x59,0x9c,0xd2,0xdf }, { 0x52,0x92,0xdb,0xd2 },
1388     { 0x4f,0x80,0xc0,0xc5 }, { 0x44,0x8e,0xc9,0xc8 }, 
1389     { 0x75,0xa4,0xf6,0xeb }, { 0x7e,0xaa,0xff,0xe6 },
1390     { 0x63,0xb8,0xe4,0xf1 }, { 0x68,0xb6,0xed,0xfc }, 
1391     { 0xb1,0x0c,0x0a,0x67 }, { 0xba,0x02,0x03,0x6a },
1392     { 0xa7,0x10,0x18,0x7d }, { 0xac,0x1e,0x11,0x70 }, 
1393     { 0x9d,0x34,0x2e,0x53 }, { 0x96,0x3a,0x27,0x5e },
1394     { 0x8b,0x28,0x3c,0x49 }, { 0x80,0x26,0x35,0x44 }, 
1395     { 0xe9,0x7c,0x42,0x0f }, { 0xe2,0x72,0x4b,0x02 },
1396     { 0xff,0x60,0x50,0x15 }, { 0xf4,0x6e,0x59,0x18 }, 
1397     { 0xc5,0x44,0x66,0x3b }, { 0xce,0x4a,0x6f,0x36 },
1398     { 0xd3,0x58,0x74,0x21 }, { 0xd8,0x56,0x7d,0x2c }, 
1399     { 0x7a,0x37,0xa1,0x0c }, { 0x71,0x39,0xa8,0x01 },
1400     { 0x6c,0x2b,0xb3,0x16 }, { 0x67,0x25,0xba,0x1b }, 
1401     { 0x56,0x0f,0x85,0x38 }, { 0x5d,0x01,0x8c,0x35 },
1402     { 0x40,0x13,0x97,0x22 }, { 0x4b,0x1d,0x9e,0x2f }, 
1403     { 0x22,0x47,0xe9,0x64 }, { 0x29,0x49,0xe0,0x69 },
1404     { 0x34,0x5b,0xfb,0x7e }, { 0x3f,0x55,0xf2,0x73 }, 
1405     { 0x0e,0x7f,0xcd,0x50 }, { 0x05,0x71,0xc4,0x5d },
1406     { 0x18,0x63,0xdf,0x4a }, { 0x13,0x6d,0xd6,0x47 }, 
1407     { 0xca,0xd7,0x31,0xdc }, { 0xc1,0xd9,0x38,0xd1 },
1408     { 0xdc,0xcb,0x23,0xc6 }, { 0xd7,0xc5,0x2a,0xcb }, 
1409     { 0xe6,0xef,0x15,0xe8 }, { 0xed,0xe1,0x1c,0xe5 },
1410     { 0xf0,0xf3,0x07,0xf2 }, { 0xfb,0xfd,0x0e,0xff }, 
1411     { 0x92,0xa7,0x79,0xb4 }, { 0x99,0xa9,0x70,0xb9 },
1412     { 0x84,0xbb,0x6b,0xae }, { 0x8f,0xb5,0x62,0xa3 }, 
1413     { 0xbe,0x9f,0x5d,0x80 }, { 0xb5,0x91,0x54,0x8d },
1414     { 0xa8,0x83,0x4f,0x9a }, { 0xa3,0x8d,0x46,0x97 }
1415   };
1416
1417 static const unsigned char U3[256][4] = 
1418   {
1419     { 0x00,0x00,0x00,0x00 }, { 0x0d,0x0b,0x0e,0x09 },
1420     { 0x1a,0x16,0x1c,0x12 }, { 0x17,0x1d,0x12,0x1b }, 
1421     { 0x34,0x2c,0x38,0x24 }, { 0x39,0x27,0x36,0x2d },
1422     { 0x2e,0x3a,0x24,0x36 }, { 0x23,0x31,0x2a,0x3f }, 
1423     { 0x68,0x58,0x70,0x48 }, { 0x65,0x53,0x7e,0x41 },
1424     { 0x72,0x4e,0x6c,0x5a }, { 0x7f,0x45,0x62,0x53 }, 
1425     { 0x5c,0x74,0x48,0x6c }, { 0x51,0x7f,0x46,0x65 },
1426     { 0x46,0x62,0x54,0x7e }, { 0x4b,0x69,0x5a,0x77 }, 
1427     { 0xd0,0xb0,0xe0,0x90 }, { 0xdd,0xbb,0xee,0x99 },
1428     { 0xca,0xa6,0xfc,0x82 }, { 0xc7,0xad,0xf2,0x8b }, 
1429     { 0xe4,0x9c,0xd8,0xb4 }, { 0xe9,0x97,0xd6,0xbd },
1430     { 0xfe,0x8a,0xc4,0xa6 }, { 0xf3,0x81,0xca,0xaf }, 
1431     { 0xb8,0xe8,0x90,0xd8 }, { 0xb5,0xe3,0x9e,0xd1 },
1432     { 0xa2,0xfe,0x8c,0xca }, { 0xaf,0xf5,0x82,0xc3 }, 
1433     { 0x8c,0xc4,0xa8,0xfc }, { 0x81,0xcf,0xa6,0xf5 },
1434     { 0x96,0xd2,0xb4,0xee }, { 0x9b,0xd9,0xba,0xe7 }, 
1435     { 0xbb,0x7b,0xdb,0x3b }, { 0xb6,0x70,0xd5,0x32 },
1436     { 0xa1,0x6d,0xc7,0x29 }, { 0xac,0x66,0xc9,0x20 }, 
1437     { 0x8f,0x57,0xe3,0x1f }, { 0x82,0x5c,0xed,0x16 },
1438     { 0x95,0x41,0xff,0x0d }, { 0x98,0x4a,0xf1,0x04 }, 
1439     { 0xd3,0x23,0xab,0x73 }, { 0xde,0x28,0xa5,0x7a },
1440     { 0xc9,0x35,0xb7,0x61 }, { 0xc4,0x3e,0xb9,0x68 }, 
1441     { 0xe7,0x0f,0x93,0x57 }, { 0xea,0x04,0x9d,0x5e },
1442     { 0xfd,0x19,0x8f,0x45 }, { 0xf0,0x12,0x81,0x4c }, 
1443     { 0x6b,0xcb,0x3b,0xab }, { 0x66,0xc0,0x35,0xa2 },
1444     { 0x71,0xdd,0x27,0xb9 }, { 0x7c,0xd6,0x29,0xb0 }, 
1445     { 0x5f,0xe7,0x03,0x8f }, { 0x52,0xec,0x0d,0x86 },
1446     { 0x45,0xf1,0x1f,0x9d }, { 0x48,0xfa,0x11,0x94 }, 
1447     { 0x03,0x93,0x4b,0xe3 }, { 0x0e,0x98,0x45,0xea },
1448     { 0x19,0x85,0x57,0xf1 }, { 0x14,0x8e,0x59,0xf8 }, 
1449     { 0x37,0xbf,0x73,0xc7 }, { 0x3a,0xb4,0x7d,0xce }, 
1450     { 0x2d,0xa9,0x6f,0xd5 }, { 0x20,0xa2,0x61,0xdc }, 
1451     { 0x6d,0xf6,0xad,0x76 }, { 0x60,0xfd,0xa3,0x7f },
1452     { 0x77,0xe0,0xb1,0x64 }, { 0x7a,0xeb,0xbf,0x6d }, 
1453     { 0x59,0xda,0x95,0x52 }, { 0x54,0xd1,0x9b,0x5b },
1454     { 0x43,0xcc,0x89,0x40 }, { 0x4e,0xc7,0x87,0x49 }, 
1455     { 0x05,0xae,0xdd,0x3e }, { 0x08,0xa5,0xd3,0x37 },
1456     { 0x1f,0xb8,0xc1,0x2c }, { 0x12,0xb3,0xcf,0x25 }, 
1457     { 0x31,0x82,0xe5,0x1a }, { 0x3c,0x89,0xeb,0x13 }, 
1458     { 0x2b,0x94,0xf9,0x08 }, { 0x26,0x9f,0xf7,0x01 }, 
1459     { 0xbd,0x46,0x4d,0xe6 }, { 0xb0,0x4d,0x43,0xef }, 
1460     { 0xa7,0x50,0x51,0xf4 }, { 0xaa,0x5b,0x5f,0xfd }, 
1461     { 0x89,0x6a,0x75,0xc2 }, { 0x84,0x61,0x7b,0xcb }, 
1462     { 0x93,0x7c,0x69,0xd0 }, { 0x9e,0x77,0x67,0xd9 }, 
1463     { 0xd5,0x1e,0x3d,0xae }, { 0xd8,0x15,0x33,0xa7 },
1464     { 0xcf,0x08,0x21,0xbc }, { 0xc2,0x03,0x2f,0xb5 }, 
1465     { 0xe1,0x32,0x05,0x8a }, { 0xec,0x39,0x0b,0x83 },
1466     { 0xfb,0x24,0x19,0x98 }, { 0xf6,0x2f,0x17,0x91 }, 
1467     { 0xd6,0x8d,0x76,0x4d }, { 0xdb,0x86,0x78,0x44 }, 
1468     { 0xcc,0x9b,0x6a,0x5f }, { 0xc1,0x90,0x64,0x56 }, 
1469     { 0xe2,0xa1,0x4e,0x69 }, { 0xef,0xaa,0x40,0x60 }, 
1470     { 0xf8,0xb7,0x52,0x7b }, { 0xf5,0xbc,0x5c,0x72 }, 
1471     { 0xbe,0xd5,0x06,0x05 }, { 0xb3,0xde,0x08,0x0c }, 
1472     { 0xa4,0xc3,0x1a,0x17 }, { 0xa9,0xc8,0x14,0x1e }, 
1473     { 0x8a,0xf9,0x3e,0x21 }, { 0x87,0xf2,0x30,0x28 },
1474     { 0x90,0xef,0x22,0x33 }, { 0x9d,0xe4,0x2c,0x3a }, 
1475     { 0x06,0x3d,0x96,0xdd }, { 0x0b,0x36,0x98,0xd4 },
1476     { 0x1c,0x2b,0x8a,0xcf }, { 0x11,0x20,0x84,0xc6 }, 
1477     { 0x32,0x11,0xae,0xf9 }, { 0x3f,0x1a,0xa0,0xf0 },
1478     { 0x28,0x07,0xb2,0xeb }, { 0x25,0x0c,0xbc,0xe2 }, 
1479     { 0x6e,0x65,0xe6,0x95 }, { 0x63,0x6e,0xe8,0x9c },
1480     { 0x74,0x73,0xfa,0x87 }, { 0x79,0x78,0xf4,0x8e }, 
1481     { 0x5a,0x49,0xde,0xb1 }, { 0x57,0x42,0xd0,0xb8 },
1482     { 0x40,0x5f,0xc2,0xa3 }, { 0x4d,0x54,0xcc,0xaa }, 
1483     { 0xda,0xf7,0x41,0xec }, { 0xd7,0xfc,0x4f,0xe5 },
1484     { 0xc0,0xe1,0x5d,0xfe }, { 0xcd,0xea,0x53,0xf7 }, 
1485     { 0xee,0xdb,0x79,0xc8 }, { 0xe3,0xd0,0x77,0xc1 },
1486     { 0xf4,0xcd,0x65,0xda }, { 0xf9,0xc6,0x6b,0xd3 }, 
1487     { 0xb2,0xaf,0x31,0xa4 }, { 0xbf,0xa4,0x3f,0xad },
1488     { 0xa8,0xb9,0x2d,0xb6 }, { 0xa5,0xb2,0x23,0xbf }, 
1489     { 0x86,0x83,0x09,0x80 }, { 0x8b,0x88,0x07,0x89 },
1490     { 0x9c,0x95,0x15,0x92 }, { 0x91,0x9e,0x1b,0x9b }, 
1491     { 0x0a,0x47,0xa1,0x7c }, { 0x07,0x4c,0xaf,0x75 },
1492     { 0x10,0x51,0xbd,0x6e }, { 0x1d,0x5a,0xb3,0x67 }, 
1493     { 0x3e,0x6b,0x99,0x58 }, { 0x33,0x60,0x97,0x51 },
1494     { 0x24,0x7d,0x85,0x4a }, { 0x29,0x76,0x8b,0x43 }, 
1495     { 0x62,0x1f,0xd1,0x34 }, { 0x6f,0x14,0xdf,0x3d },
1496     { 0x78,0x09,0xcd,0x26 }, { 0x75,0x02,0xc3,0x2f }, 
1497     { 0x56,0x33,0xe9,0x10 }, { 0x5b,0x38,0xe7,0x19 },
1498     { 0x4c,0x25,0xf5,0x02 }, { 0x41,0x2e,0xfb,0x0b }, 
1499     { 0x61,0x8c,0x9a,0xd7 }, { 0x6c,0x87,0x94,0xde },
1500     { 0x7b,0x9a,0x86,0xc5 }, { 0x76,0x91,0x88,0xcc }, 
1501     { 0x55,0xa0,0xa2,0xf3 }, { 0x58,0xab,0xac,0xfa },
1502     { 0x4f,0xb6,0xbe,0xe1 }, { 0x42,0xbd,0xb0,0xe8 }, 
1503     { 0x09,0xd4,0xea,0x9f }, { 0x04,0xdf,0xe4,0x96 },
1504     { 0x13,0xc2,0xf6,0x8d }, { 0x1e,0xc9,0xf8,0x84 }, 
1505     { 0x3d,0xf8,0xd2,0xbb }, { 0x30,0xf3,0xdc,0xb2 },
1506     { 0x27,0xee,0xce,0xa9 }, { 0x2a,0xe5,0xc0,0xa0 }, 
1507     { 0xb1,0x3c,0x7a,0x47 }, { 0xbc,0x37,0x74,0x4e },
1508     { 0xab,0x2a,0x66,0x55 }, { 0xa6,0x21,0x68,0x5c }, 
1509     { 0x85,0x10,0x42,0x63 }, { 0x88,0x1b,0x4c,0x6a },
1510     { 0x9f,0x06,0x5e,0x71 }, { 0x92,0x0d,0x50,0x78 }, 
1511     { 0xd9,0x64,0x0a,0x0f }, { 0xd4,0x6f,0x04,0x06 },
1512     { 0xc3,0x72,0x16,0x1d }, { 0xce,0x79,0x18,0x14 }, 
1513     { 0xed,0x48,0x32,0x2b }, { 0xe0,0x43,0x3c,0x22 },
1514     { 0xf7,0x5e,0x2e,0x39 }, { 0xfa,0x55,0x20,0x30 }, 
1515     { 0xb7,0x01,0xec,0x9a }, { 0xba,0x0a,0xe2,0x93 },
1516     { 0xad,0x17,0xf0,0x88 }, { 0xa0,0x1c,0xfe,0x81 }, 
1517     { 0x83,0x2d,0xd4,0xbe }, { 0x8e,0x26,0xda,0xb7 },
1518     { 0x99,0x3b,0xc8,0xac }, { 0x94,0x30,0xc6,0xa5 }, 
1519     { 0xdf,0x59,0x9c,0xd2 }, { 0xd2,0x52,0x92,0xdb },
1520     { 0xc5,0x4f,0x80,0xc0 }, { 0xc8,0x44,0x8e,0xc9 }, 
1521     { 0xeb,0x75,0xa4,0xf6 }, { 0xe6,0x7e,0xaa,0xff },
1522     { 0xf1,0x63,0xb8,0xe4 }, { 0xfc,0x68,0xb6,0xed }, 
1523     { 0x67,0xb1,0x0c,0x0a }, { 0x6a,0xba,0x02,0x03 },
1524     { 0x7d,0xa7,0x10,0x18 }, { 0x70,0xac,0x1e,0x11 }, 
1525     { 0x53,0x9d,0x34,0x2e }, { 0x5e,0x96,0x3a,0x27 },
1526     { 0x49,0x8b,0x28,0x3c }, { 0x44,0x80,0x26,0x35 }, 
1527     { 0x0f,0xe9,0x7c,0x42 }, { 0x02,0xe2,0x72,0x4b },
1528     { 0x15,0xff,0x60,0x50 }, { 0x18,0xf4,0x6e,0x59 }, 
1529     { 0x3b,0xc5,0x44,0x66 }, { 0x36,0xce,0x4a,0x6f },
1530     { 0x21,0xd3,0x58,0x74 }, { 0x2c,0xd8,0x56,0x7d }, 
1531     { 0x0c,0x7a,0x37,0xa1 }, { 0x01,0x71,0x39,0xa8 },
1532     { 0x16,0x6c,0x2b,0xb3 }, { 0x1b,0x67,0x25,0xba }, 
1533     { 0x38,0x56,0x0f,0x85 }, { 0x35,0x5d,0x01,0x8c },
1534     { 0x22,0x40,0x13,0x97 }, { 0x2f,0x4b,0x1d,0x9e }, 
1535     { 0x64,0x22,0x47,0xe9 }, { 0x69,0x29,0x49,0xe0 },
1536     { 0x7e,0x34,0x5b,0xfb }, { 0x73,0x3f,0x55,0xf2 }, 
1537     { 0x50,0x0e,0x7f,0xcd }, { 0x5d,0x05,0x71,0xc4 },
1538     { 0x4a,0x18,0x63,0xdf }, { 0x47,0x13,0x6d,0xd6 }, 
1539     { 0xdc,0xca,0xd7,0x31 }, { 0xd1,0xc1,0xd9,0x38 },
1540     { 0xc6,0xdc,0xcb,0x23 }, { 0xcb,0xd7,0xc5,0x2a }, 
1541     { 0xe8,0xe6,0xef,0x15 }, { 0xe5,0xed,0xe1,0x1c },
1542     { 0xf2,0xf0,0xf3,0x07 }, { 0xff,0xfb,0xfd,0x0e }, 
1543     { 0xb4,0x92,0xa7,0x79 }, { 0xb9,0x99,0xa9,0x70 },
1544     { 0xae,0x84,0xbb,0x6b }, { 0xa3,0x8f,0xb5,0x62 }, 
1545     { 0x80,0xbe,0x9f,0x5d }, { 0x8d,0xb5,0x91,0x54 },
1546     { 0x9a,0xa8,0x83,0x4f }, { 0x97,0xa3,0x8d,0x46 }
1547   };
1548
1549 static const unsigned char U4[256][4] =
1550   {
1551     { 0x00,0x00,0x00,0x00 }, { 0x09,0x0d,0x0b,0x0e },
1552     { 0x12,0x1a,0x16,0x1c }, { 0x1b,0x17,0x1d,0x12 }, 
1553     { 0x24,0x34,0x2c,0x38 }, { 0x2d,0x39,0x27,0x36 },
1554     { 0x36,0x2e,0x3a,0x24 }, { 0x3f,0x23,0x31,0x2a }, 
1555     { 0x48,0x68,0x58,0x70 }, { 0x41,0x65,0x53,0x7e },
1556     { 0x5a,0x72,0x4e,0x6c }, { 0x53,0x7f,0x45,0x62 }, 
1557     { 0x6c,0x5c,0x74,0x48 }, { 0x65,0x51,0x7f,0x46 },
1558     { 0x7e,0x46,0x62,0x54 }, { 0x77,0x4b,0x69,0x5a }, 
1559     { 0x90,0xd0,0xb0,0xe0 }, { 0x99,0xdd,0xbb,0xee },
1560     { 0x82,0xca,0xa6,0xfc }, { 0x8b,0xc7,0xad,0xf2 }, 
1561     { 0xb4,0xe4,0x9c,0xd8 }, { 0xbd,0xe9,0x97,0xd6 },
1562     { 0xa6,0xfe,0x8a,0xc4 }, { 0xaf,0xf3,0x81,0xca }, 
1563     { 0xd8,0xb8,0xe8,0x90 }, { 0xd1,0xb5,0xe3,0x9e },
1564     { 0xca,0xa2,0xfe,0x8c }, { 0xc3,0xaf,0xf5,0x82 }, 
1565     { 0xfc,0x8c,0xc4,0xa8 }, { 0xf5,0x81,0xcf,0xa6 },
1566     { 0xee,0x96,0xd2,0xb4 }, { 0xe7,0x9b,0xd9,0xba }, 
1567     { 0x3b,0xbb,0x7b,0xdb }, { 0x32,0xb6,0x70,0xd5 },
1568     { 0x29,0xa1,0x6d,0xc7 }, { 0x20,0xac,0x66,0xc9 }, 
1569     { 0x1f,0x8f,0x57,0xe3 }, { 0x16,0x82,0x5c,0xed },
1570     { 0x0d,0x95,0x41,0xff }, { 0x04,0x98,0x4a,0xf1 }, 
1571     { 0x73,0xd3,0x23,0xab }, { 0x7a,0xde,0x28,0xa5 },
1572     { 0x61,0xc9,0x35,0xb7 }, { 0x68,0xc4,0x3e,0xb9 }, 
1573     { 0x57,0xe7,0x0f,0x93 }, { 0x5e,0xea,0x04,0x9d },
1574     { 0x45,0xfd,0x19,0x8f }, { 0x4c,0xf0,0x12,0x81 }, 
1575     { 0xab,0x6b,0xcb,0x3b }, { 0xa2,0x66,0xc0,0x35 },
1576     { 0xb9,0x71,0xdd,0x27 }, { 0xb0,0x7c,0xd6,0x29 }, 
1577     { 0x8f,0x5f,0xe7,0x03 }, { 0x86,0x52,0xec,0x0d },
1578     { 0x9d,0x45,0xf1,0x1f }, { 0x94,0x48,0xfa,0x11 }, 
1579     { 0xe3,0x03,0x93,0x4b }, { 0xea,0x0e,0x98,0x45 },
1580     { 0xf1,0x19,0x85,0x57 }, { 0xf8,0x14,0x8e,0x59 }, 
1581     { 0xc7,0x37,0xbf,0x73 }, { 0xce,0x3a,0xb4,0x7d },
1582     { 0xd5,0x2d,0xa9,0x6f }, { 0xdc,0x20,0xa2,0x61 }, 
1583     { 0x76,0x6d,0xf6,0xad }, { 0x7f,0x60,0xfd,0xa3 },
1584     { 0x64,0x77,0xe0,0xb1 }, { 0x6d,0x7a,0xeb,0xbf }, 
1585     { 0x52,0x59,0xda,0x95 }, { 0x5b,0x54,0xd1,0x9b },
1586     { 0x40,0x43,0xcc,0x89 }, { 0x49,0x4e,0xc7,0x87 }, 
1587     { 0x3e,0x05,0xae,0xdd }, { 0x37,0x08,0xa5,0xd3 },
1588     { 0x2c,0x1f,0xb8,0xc1 }, { 0x25,0x12,0xb3,0xcf }, 
1589     { 0x1a,0x31,0x82,0xe5 }, { 0x13,0x3c,0x89,0xeb },
1590     { 0x08,0x2b,0x94,0xf9 }, { 0x01,0x26,0x9f,0xf7 }, 
1591     { 0xe6,0xbd,0x46,0x4d }, { 0xef,0xb0,0x4d,0x43 },
1592     { 0xf4,0xa7,0x50,0x51 }, { 0xfd,0xaa,0x5b,0x5f }, 
1593     { 0xc2,0x89,0x6a,0x75 }, { 0xcb,0x84,0x61,0x7b },
1594     { 0xd0,0x93,0x7c,0x69 }, { 0xd9,0x9e,0x77,0x67 }, 
1595     { 0xae,0xd5,0x1e,0x3d }, { 0xa7,0xd8,0x15,0x33 },
1596     { 0xbc,0xcf,0x08,0x21 }, { 0xb5,0xc2,0x03,0x2f }, 
1597     { 0x8a,0xe1,0x32,0x05 }, { 0x83,0xec,0x39,0x0b },
1598     { 0x98,0xfb,0x24,0x19 }, { 0x91,0xf6,0x2f,0x17 }, 
1599     { 0x4d,0xd6,0x8d,0x76 }, { 0x44,0xdb,0x86,0x78 },
1600     { 0x5f,0xcc,0x9b,0x6a }, { 0x56,0xc1,0x90,0x64 }, 
1601     { 0x69,0xe2,0xa1,0x4e }, { 0x60,0xef,0xaa,0x40 },
1602     { 0x7b,0xf8,0xb7,0x52 }, { 0x72,0xf5,0xbc,0x5c }, 
1603     { 0x05,0xbe,0xd5,0x06 }, { 0x0c,0xb3,0xde,0x08 },
1604     { 0x17,0xa4,0xc3,0x1a }, { 0x1e,0xa9,0xc8,0x14 }, 
1605     { 0x21,0x8a,0xf9,0x3e }, { 0x28,0x87,0xf2,0x30 },
1606     { 0x33,0x90,0xef,0x22 }, { 0x3a,0x9d,0xe4,0x2c }, 
1607     { 0xdd,0x06,0x3d,0x96 }, { 0xd4,0x0b,0x36,0x98 },
1608     { 0xcf,0x1c,0x2b,0x8a }, { 0xc6,0x11,0x20,0x84 }, 
1609     { 0xf9,0x32,0x11,0xae }, { 0xf0,0x3f,0x1a,0xa0 },
1610     { 0xeb,0x28,0x07,0xb2 }, { 0xe2,0x25,0x0c,0xbc }, 
1611     { 0x95,0x6e,0x65,0xe6 }, { 0x9c,0x63,0x6e,0xe8 },
1612     { 0x87,0x74,0x73,0xfa }, { 0x8e,0x79,0x78,0xf4 }, 
1613     { 0xb1,0x5a,0x49,0xde }, { 0xb8,0x57,0x42,0xd0 },
1614     { 0xa3,0x40,0x5f,0xc2 }, { 0xaa,0x4d,0x54,0xcc }, 
1615     { 0xec,0xda,0xf7,0x41 }, { 0xe5,0xd7,0xfc,0x4f },
1616     { 0xfe,0xc0,0xe1,0x5d }, { 0xf7,0xcd,0xea,0x53 }, 
1617     { 0xc8,0xee,0xdb,0x79 }, { 0xc1,0xe3,0xd0,0x77 },
1618     { 0xda,0xf4,0xcd,0x65 }, { 0xd3,0xf9,0xc6,0x6b }, 
1619     { 0xa4,0xb2,0xaf,0x31 }, { 0xad,0xbf,0xa4,0x3f },
1620     { 0xb6,0xa8,0xb9,0x2d }, { 0xbf,0xa5,0xb2,0x23 }, 
1621     { 0x80,0x86,0x83,0x09 }, { 0x89,0x8b,0x88,0x07 },
1622     { 0x92,0x9c,0x95,0x15 }, { 0x9b,0x91,0x9e,0x1b }, 
1623     { 0x7c,0x0a,0x47,0xa1 }, { 0x75,0x07,0x4c,0xaf },
1624     { 0x6e,0x10,0x51,0xbd }, { 0x67,0x1d,0x5a,0xb3 }, 
1625     { 0x58,0x3e,0x6b,0x99 }, { 0x51,0x33,0x60,0x97 },
1626     { 0x4a,0x24,0x7d,0x85 }, { 0x43,0x29,0x76,0x8b }, 
1627     { 0x34,0x62,0x1f,0xd1 }, { 0x3d,0x6f,0x14,0xdf },
1628     { 0x26,0x78,0x09,0xcd }, { 0x2f,0x75,0x02,0xc3 }, 
1629     { 0x10,0x56,0x33,0xe9 }, { 0x19,0x5b,0x38,0xe7 },
1630     { 0x02,0x4c,0x25,0xf5 }, { 0x0b,0x41,0x2e,0xfb }, 
1631     { 0xd7,0x61,0x8c,0x9a }, { 0xde,0x6c,0x87,0x94 },
1632     { 0xc5,0x7b,0x9a,0x86 }, { 0xcc,0x76,0x91,0x88 }, 
1633     { 0xf3,0x55,0xa0,0xa2 }, { 0xfa,0x58,0xab,0xac },
1634     { 0xe1,0x4f,0xb6,0xbe }, { 0xe8,0x42,0xbd,0xb0 }, 
1635     { 0x9f,0x09,0xd4,0xea }, { 0x96,0x04,0xdf,0xe4 },
1636     { 0x8d,0x13,0xc2,0xf6 }, { 0x84,0x1e,0xc9,0xf8 }, 
1637     { 0xbb,0x3d,0xf8,0xd2 }, { 0xb2,0x30,0xf3,0xdc },
1638     { 0xa9,0x27,0xee,0xce }, { 0xa0,0x2a,0xe5,0xc0 }, 
1639     { 0x47,0xb1,0x3c,0x7a }, { 0x4e,0xbc,0x37,0x74 },
1640     { 0x55,0xab,0x2a,0x66 }, { 0x5c,0xa6,0x21,0x68 }, 
1641     { 0x63,0x85,0x10,0x42 }, { 0x6a,0x88,0x1b,0x4c },
1642     { 0x71,0x9f,0x06,0x5e }, { 0x78,0x92,0x0d,0x50 }, 
1643     { 0x0f,0xd9,0x64,0x0a }, { 0x06,0xd4,0x6f,0x04 },
1644     { 0x1d,0xc3,0x72,0x16 }, { 0x14,0xce,0x79,0x18 }, 
1645     { 0x2b,0xed,0x48,0x32 }, { 0x22,0xe0,0x43,0x3c },
1646     { 0x39,0xf7,0x5e,0x2e }, { 0x30,0xfa,0x55,0x20 }, 
1647     { 0x9a,0xb7,0x01,0xec }, { 0x93,0xba,0x0a,0xe2 }, 
1648     { 0x88,0xad,0x17,0xf0 }, { 0x81,0xa0,0x1c,0xfe }, 
1649     { 0xbe,0x83,0x2d,0xd4 }, { 0xb7,0x8e,0x26,0xda },
1650     { 0xac,0x99,0x3b,0xc8 }, { 0xa5,0x94,0x30,0xc6 }, 
1651     { 0xd2,0xdf,0x59,0x9c }, { 0xdb,0xd2,0x52,0x92 }, 
1652     { 0xc0,0xc5,0x4f,0x80 }, { 0xc9,0xc8,0x44,0x8e }, 
1653     { 0xf6,0xeb,0x75,0xa4 }, { 0xff,0xe6,0x7e,0xaa },
1654     { 0xe4,0xf1,0x63,0xb8 }, { 0xed,0xfc,0x68,0xb6 }, 
1655     { 0x0a,0x67,0xb1,0x0c }, { 0x03,0x6a,0xba,0x02 },
1656     { 0x18,0x7d,0xa7,0x10 }, { 0x11,0x70,0xac,0x1e }, 
1657     { 0x2e,0x53,0x9d,0x34 }, { 0x27,0x5e,0x96,0x3a },
1658     { 0x3c,0x49,0x8b,0x28 }, { 0x35,0x44,0x80,0x26 }, 
1659     { 0x42,0x0f,0xe9,0x7c }, { 0x4b,0x02,0xe2,0x72 }, 
1660     { 0x50,0x15,0xff,0x60 }, { 0x59,0x18,0xf4,0x6e }, 
1661     { 0x66,0x3b,0xc5,0x44 }, { 0x6f,0x36,0xce,0x4a },
1662     { 0x74,0x21,0xd3,0x58 }, { 0x7d,0x2c,0xd8,0x56 }, 
1663     { 0xa1,0x0c,0x7a,0x37 }, { 0xa8,0x01,0x71,0x39 },
1664     { 0xb3,0x16,0x6c,0x2b }, { 0xba,0x1b,0x67,0x25 }, 
1665     { 0x85,0x38,0x56,0x0f }, { 0x8c,0x35,0x5d,0x01 },
1666     { 0x97,0x22,0x40,0x13 }, { 0x9e,0x2f,0x4b,0x1d }, 
1667     { 0xe9,0x64,0x22,0x47 }, { 0xe0,0x69,0x29,0x49 }, 
1668     { 0xfb,0x7e,0x34,0x5b }, { 0xf2,0x73,0x3f,0x55 }, 
1669     { 0xcd,0x50,0x0e,0x7f }, { 0xc4,0x5d,0x05,0x71 },
1670     { 0xdf,0x4a,0x18,0x63 }, { 0xd6,0x47,0x13,0x6d }, 
1671     { 0x31,0xdc,0xca,0xd7 }, { 0x38,0xd1,0xc1,0xd9 },
1672     { 0x23,0xc6,0xdc,0xcb }, { 0x2a,0xcb,0xd7,0xc5 }, 
1673     { 0x15,0xe8,0xe6,0xef }, { 0x1c,0xe5,0xed,0xe1 },
1674     { 0x07,0xf2,0xf0,0xf3 }, { 0x0e,0xff,0xfb,0xfd }, 
1675     { 0x79,0xb4,0x92,0xa7 }, { 0x70,0xb9,0x99,0xa9 },
1676     { 0x6b,0xae,0x84,0xbb }, { 0x62,0xa3,0x8f,0xb5 }, 
1677     { 0x5d,0x80,0xbe,0x9f }, { 0x54,0x8d,0xb5,0x91 },
1678     { 0x4f,0x9a,0xa8,0x83 }, { 0x46,0x97,0xa3,0x8d }
1679   };
1680
1681 static const u32 rcon[30] = 
1682   { 
1683     0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
1684     0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35,
1685     0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91
1686   };
1687