blob: 31e1961553da6d112d097601bbcef402ec135d31 [file] [log] [blame]
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001/* ====================================================================
2 * Copyright (c) 2011 The OpenSSL Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * 3. All advertising materials mentioning features or use of this
17 * software must display the following acknowledgment:
18 * "This product includes software developed by the OpenSSL Project
19 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
20 *
21 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
22 * endorse or promote products derived from this software without
23 * prior written permission. For written permission, please contact
24 * openssl-core.org.
25 *
26 * 5. Products derived from this software may not be called "OpenSSL"
27 * nor may "OpenSSL" appear in their names without prior written
28 * permission of the OpenSSL Project.
29 *
30 * 6. Redistributions of any form whatsoever must retain the following
31 * acknowledgment:
32 * "This product includes software developed by the OpenSSL Project
33 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
34 *
35 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
36 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
38 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
39 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
42 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
43 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
44 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
46 * OF THE POSSIBILITY OF SUCH DAMAGE.
47 *
48 */
49
50/* Selftest and health check data for the SP800-90 DRBG */
51
52
53/* AES-128 use df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +000054__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000055static const unsigned char aes_128_use_df_pr_entropyinput[] =
56 {
57 0x61,0x52,0x7c,0xe3,0x23,0x7d,0x0a,0x07,0x10,0x0c,0x50,0x33,
58 0xc8,0xdb,0xff,0x12
59 };
60
Andy Polyakov03e389c2011-09-14 20:48:49 +000061__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000062static const unsigned char aes_128_use_df_pr_nonce[] =
63 {
64 0x51,0x0d,0x85,0x77,0xed,0x22,0x97,0x28
65 };
66
Andy Polyakov03e389c2011-09-14 20:48:49 +000067__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000068static const unsigned char aes_128_use_df_pr_personalizationstring[] =
69 {
70 0x59,0x9f,0xbb,0xcd,0xd5,0x25,0x69,0xb5,0xcb,0xb5,0x03,0xfe,
71 0xd7,0xd7,0x01,0x67
72 };
73
Andy Polyakov03e389c2011-09-14 20:48:49 +000074__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000075static const unsigned char aes_128_use_df_pr_additionalinput[] =
76 {
77 0xef,0x88,0x76,0x01,0xaf,0x3c,0xfe,0x8b,0xaf,0x26,0x06,0x9e,
78 0x9a,0x47,0x08,0x76
79 };
80
Andy Polyakov03e389c2011-09-14 20:48:49 +000081__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000082static const unsigned char aes_128_use_df_pr_entropyinputpr[] =
83 {
84 0xe2,0x76,0xf9,0xf6,0x3a,0xba,0x10,0x9f,0xbf,0x47,0x0e,0x51,
85 0x09,0xfb,0xa3,0xb6
86 };
87
Andy Polyakov03e389c2011-09-14 20:48:49 +000088__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000089static const unsigned char aes_128_use_df_pr_int_returnedbits[] =
90 {
91 0xd4,0x98,0x8a,0x46,0x80,0x4c,0xdb,0xa3,0x59,0x02,0x57,0x52,
92 0x66,0x1c,0xea,0x5b
93 };
94
Andy Polyakov03e389c2011-09-14 20:48:49 +000095__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +000096static const unsigned char aes_128_use_df_pr_additionalinput2[] =
97 {
98 0x88,0x8c,0x91,0xd6,0xbe,0x56,0x6e,0x08,0x9a,0x62,0x2b,0x11,
99 0x3f,0x5e,0x31,0x06
100 };
101
Andy Polyakov03e389c2011-09-14 20:48:49 +0000102__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000103static const unsigned char aes_128_use_df_pr_entropyinputpr2[] =
104 {
105 0xc0,0x5c,0x6b,0x98,0x01,0x0d,0x58,0x18,0x51,0x18,0x96,0xae,
106 0xa7,0xe3,0xa8,0x67
107 };
108
Andy Polyakov03e389c2011-09-14 20:48:49 +0000109__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000110static const unsigned char aes_128_use_df_pr_returnedbits[] =
111 {
112 0xcf,0x01,0xac,0x22,0x31,0x06,0x8e,0xfc,0xce,0x56,0xea,0x24,
113 0x0f,0x38,0x43,0xc6
114 };
115
116
117/* AES-128 use df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000118__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000119static const unsigned char aes_128_use_df_entropyinput[] =
120 {
121 0x1f,0x8e,0x34,0x82,0x0c,0xb7,0xbe,0xc5,0x01,0x3e,0xd0,0xa3,
122 0x9d,0x7d,0x1c,0x9b
123 };
124
Andy Polyakov03e389c2011-09-14 20:48:49 +0000125__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000126static const unsigned char aes_128_use_df_nonce[] =
127 {
128 0xd5,0x4d,0xbd,0x4a,0x93,0x7f,0xb8,0x96
129 };
130
Andy Polyakov03e389c2011-09-14 20:48:49 +0000131__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000132static const unsigned char aes_128_use_df_personalizationstring[] =
133 {
134 0xab,0xd6,0x3f,0x04,0xfe,0x27,0x6b,0x2d,0xd7,0xc3,0x1c,0xf3,
135 0x38,0x66,0xba,0x1b
136 };
137
Andy Polyakov03e389c2011-09-14 20:48:49 +0000138__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000139static const unsigned char aes_128_use_df_additionalinput[] =
140 {
141 0xfe,0xf4,0x09,0xa8,0xb7,0x73,0x27,0x9c,0x5f,0xa7,0xea,0x46,
142 0xb5,0xe2,0xb2,0x41
143 };
144
Andy Polyakov03e389c2011-09-14 20:48:49 +0000145__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000146static const unsigned char aes_128_use_df_int_returnedbits[] =
147 {
148 0x42,0xe4,0x4e,0x7b,0x27,0xdd,0xcb,0xbc,0x0a,0xcf,0xa6,0x67,
149 0xe7,0x57,0x11,0xb4
150 };
151
Andy Polyakov03e389c2011-09-14 20:48:49 +0000152__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000153static const unsigned char aes_128_use_df_entropyinputreseed[] =
154 {
155 0x14,0x26,0x69,0xd9,0xf3,0x65,0x03,0xd6,0x6b,0xb9,0x44,0x0b,
156 0xc7,0xc4,0x9e,0x39
157 };
158
Andy Polyakov03e389c2011-09-14 20:48:49 +0000159__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000160static const unsigned char aes_128_use_df_additionalinputreseed[] =
161 {
162 0x55,0x2e,0x60,0x9a,0x05,0x72,0x8a,0xa8,0xef,0x22,0x81,0x5a,
163 0xc8,0x93,0xfa,0x84
164 };
165
Andy Polyakov03e389c2011-09-14 20:48:49 +0000166__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000167static const unsigned char aes_128_use_df_additionalinput2[] =
168 {
169 0x3c,0x40,0xc8,0xc4,0x16,0x0c,0x21,0xa4,0x37,0x2c,0x8f,0xa5,
170 0x06,0x0c,0x15,0x2c
171 };
172
Andy Polyakov03e389c2011-09-14 20:48:49 +0000173__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000174static const unsigned char aes_128_use_df_returnedbits[] =
175 {
176 0xe1,0x3e,0x99,0x98,0x86,0x67,0x0b,0x63,0x7b,0xbe,0x3f,0x88,
177 0x46,0x81,0xc7,0x19
178 };
179
180
181/* AES-192 use df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000182__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000183static const unsigned char aes_192_use_df_pr_entropyinput[] =
184 {
185 0x2b,0x4e,0x8b,0xe1,0xf1,0x34,0x80,0x56,0x81,0xf9,0x74,0xec,
186 0x17,0x44,0x2a,0xf1,0x14,0xb0,0xbf,0x97,0x39,0xb7,0x04,0x7d
187 };
188
Andy Polyakov03e389c2011-09-14 20:48:49 +0000189__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000190static const unsigned char aes_192_use_df_pr_nonce[] =
191 {
192 0xd6,0x9d,0xeb,0x14,0x4e,0x6c,0x30,0x1e,0x39,0x55,0x73,0xd0,
193 0xd1,0x80,0x78,0xfa
194 };
195
Andy Polyakov03e389c2011-09-14 20:48:49 +0000196__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000197static const unsigned char aes_192_use_df_pr_personalizationstring[] =
198 {
199 0xfc,0x43,0x4a,0xf8,0x9a,0x55,0xb3,0x53,0x83,0xe2,0x18,0x16,
200 0x0c,0xdc,0xcd,0x5e,0x4f,0xa0,0x03,0x01,0x2b,0x9f,0xe4,0xd5,
201 0x7d,0x49,0xf0,0x41,0x9e,0x3d,0x99,0x04
202 };
203
Andy Polyakov03e389c2011-09-14 20:48:49 +0000204__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000205static const unsigned char aes_192_use_df_pr_additionalinput[] =
206 {
207 0x5e,0x9f,0x49,0x6f,0x21,0x8b,0x1d,0x32,0xd5,0x84,0x5c,0xac,
208 0xaf,0xdf,0xe4,0x79,0x9e,0xaf,0xa9,0x82,0xd0,0xf8,0x4f,0xcb,
209 0x69,0x10,0x0a,0x7e,0x81,0x57,0xb5,0x36
210 };
211
Andy Polyakov03e389c2011-09-14 20:48:49 +0000212__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000213static const unsigned char aes_192_use_df_pr_entropyinputpr[] =
214 {
215 0xd4,0x81,0x0c,0xd7,0x66,0x39,0xec,0x42,0x53,0x87,0x41,0xa5,
216 0x1e,0x7d,0x80,0x91,0x8e,0xbb,0xed,0xac,0x14,0x02,0x1a,0xd5
217 };
218
Andy Polyakov03e389c2011-09-14 20:48:49 +0000219__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000220static const unsigned char aes_192_use_df_pr_int_returnedbits[] =
221 {
222 0xdf,0x1d,0x39,0x45,0x7c,0x9b,0xc6,0x2b,0x7d,0x8c,0x93,0xe9,
223 0x19,0x30,0x6b,0x67
224 };
225
Andy Polyakov03e389c2011-09-14 20:48:49 +0000226__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000227static const unsigned char aes_192_use_df_pr_additionalinput2[] =
228 {
229 0x00,0x71,0x27,0x4e,0xd3,0x14,0xf1,0x20,0x7f,0x4a,0x41,0x32,
230 0x2a,0x97,0x11,0x43,0x8f,0x4a,0x15,0x7b,0x9b,0x51,0x79,0xda,
231 0x49,0x3d,0xde,0xe8,0xbc,0x93,0x91,0x99
232 };
233
Andy Polyakov03e389c2011-09-14 20:48:49 +0000234__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000235static const unsigned char aes_192_use_df_pr_entropyinputpr2[] =
236 {
237 0x90,0xee,0x76,0xa1,0x45,0x8d,0xb7,0x40,0xb0,0x11,0xbf,0xd0,
238 0x65,0xd7,0x3c,0x7c,0x4f,0x20,0x3f,0x4e,0x11,0x9d,0xb3,0x5e
239 };
240
Andy Polyakov03e389c2011-09-14 20:48:49 +0000241__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000242static const unsigned char aes_192_use_df_pr_returnedbits[] =
243 {
244 0x24,0x3b,0x20,0xa4,0x37,0x66,0xba,0x72,0x39,0x3f,0xcf,0x3c,
245 0x7e,0x1a,0x2b,0x83
246 };
247
248
249/* AES-192 use df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000250__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000251static const unsigned char aes_192_use_df_entropyinput[] =
252 {
253 0x8d,0x74,0xa4,0x50,0x1a,0x02,0x68,0x0c,0x2a,0x69,0xc4,0x82,
254 0x3b,0xbb,0xda,0x0e,0x7f,0x77,0xa3,0x17,0x78,0x57,0xb2,0x7b
255 };
256
Andy Polyakov03e389c2011-09-14 20:48:49 +0000257__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000258static const unsigned char aes_192_use_df_nonce[] =
259 {
260 0x75,0xd5,0x1f,0xac,0xa4,0x8d,0x42,0x78,0xd7,0x69,0x86,0x9d,
261 0x77,0xd7,0x41,0x0e
262 };
263
Andy Polyakov03e389c2011-09-14 20:48:49 +0000264__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000265static const unsigned char aes_192_use_df_personalizationstring[] =
266 {
267 0x4e,0x33,0x41,0x3c,0x9c,0xc2,0xd2,0x53,0xaf,0x90,0xea,0xcf,
268 0x19,0x50,0x1e,0xe6,0x6f,0x63,0xc8,0x32,0x22,0xdc,0x07,0x65,
269 0x9c,0xd3,0xf8,0x30,0x9e,0xed,0x35,0x70
270 };
271
Andy Polyakov03e389c2011-09-14 20:48:49 +0000272__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000273static const unsigned char aes_192_use_df_additionalinput[] =
274 {
275 0x5d,0x8b,0x8c,0xc1,0xdf,0x0e,0x02,0x78,0xfb,0x19,0xb8,0x69,
276 0x78,0x4e,0x9c,0x52,0xbc,0xc7,0x20,0xc9,0xe6,0x5e,0x77,0x22,
277 0x28,0x3d,0x0c,0x9e,0x68,0xa8,0x45,0xd7
278 };
279
Andy Polyakov03e389c2011-09-14 20:48:49 +0000280__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000281static const unsigned char aes_192_use_df_int_returnedbits[] =
282 {
283 0xd5,0xe7,0x08,0xc5,0x19,0x99,0xd5,0x31,0x03,0x0a,0x74,0xb6,
284 0xb7,0xed,0xe9,0xea
285 };
286
Andy Polyakov03e389c2011-09-14 20:48:49 +0000287__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000288static const unsigned char aes_192_use_df_entropyinputreseed[] =
289 {
290 0x9c,0x26,0xda,0xf1,0xac,0xd9,0x5a,0xd6,0xa8,0x65,0xf5,0x02,
291 0x8f,0xdc,0xa2,0x09,0x54,0xa6,0xe2,0xa4,0xde,0x32,0xe0,0x01
292 };
293
Andy Polyakov03e389c2011-09-14 20:48:49 +0000294__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000295static const unsigned char aes_192_use_df_additionalinputreseed[] =
296 {
297 0x9b,0x90,0xb0,0x3a,0x0e,0x3a,0x80,0x07,0x4a,0xf4,0xda,0x76,
298 0x28,0x30,0x3c,0xee,0x54,0x1b,0x94,0x59,0x51,0x43,0x56,0x77,
299 0xaf,0x88,0xdd,0x63,0x89,0x47,0x06,0x65
300 };
301
Andy Polyakov03e389c2011-09-14 20:48:49 +0000302__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000303static const unsigned char aes_192_use_df_additionalinput2[] =
304 {
305 0x3c,0x11,0x64,0x7a,0x96,0xf5,0xd8,0xb8,0xae,0xd6,0x70,0x4e,
306 0x16,0x96,0xde,0xe9,0x62,0xbc,0xee,0x28,0x2f,0x26,0xa6,0xf0,
307 0x56,0xef,0xa3,0xf1,0x6b,0xa1,0xb1,0x77
308 };
309
Andy Polyakov03e389c2011-09-14 20:48:49 +0000310__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000311static const unsigned char aes_192_use_df_returnedbits[] =
312 {
313 0x0b,0xe2,0x56,0x03,0x1e,0xdb,0x2c,0x6d,0x7f,0x1b,0x15,0x58,
314 0x1a,0xf9,0x13,0x28
315 };
316
317
318/* AES-256 use df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000319__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000320static const unsigned char aes_256_use_df_pr_entropyinput[] =
321 {
322 0x61,0x68,0xfc,0x1a,0xf0,0xb5,0x95,0x6b,0x85,0x09,0x9b,0x74,
323 0x3f,0x13,0x78,0x49,0x3b,0x85,0xec,0x93,0x13,0x3b,0xa9,0x4f,
324 0x96,0xab,0x2c,0xe4,0xc8,0x8f,0xdd,0x6a
325 };
326
Andy Polyakov03e389c2011-09-14 20:48:49 +0000327__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000328static const unsigned char aes_256_use_df_pr_nonce[] =
329 {
330 0xad,0xd2,0xbb,0xba,0xb7,0x65,0x89,0xc3,0x21,0x6c,0x55,0x33,
331 0x2b,0x36,0xff,0xa4
332 };
333
Andy Polyakov03e389c2011-09-14 20:48:49 +0000334__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000335static const unsigned char aes_256_use_df_pr_personalizationstring[] =
336 {
337 0x6e,0xca,0xe7,0x20,0x72,0xd3,0x84,0x5a,0x32,0xd3,0x4b,0x24,
338 0x72,0xc4,0x63,0x2b,0x9d,0x12,0x24,0x0c,0x23,0x26,0x8e,0x83,
339 0x16,0x37,0x0b,0xd1,0x06,0x4f,0x68,0x6d
340 };
341
Andy Polyakov03e389c2011-09-14 20:48:49 +0000342__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000343static const unsigned char aes_256_use_df_pr_additionalinput[] =
344 {
345 0x7e,0x08,0x4a,0xbb,0xe3,0x21,0x7c,0xc9,0x23,0xd2,0xf8,0xb0,
346 0x73,0x98,0xba,0x84,0x74,0x23,0xab,0x06,0x8a,0xe2,0x22,0xd3,
347 0x7b,0xce,0x9b,0xd2,0x4a,0x76,0xb8,0xde
348 };
349
Andy Polyakov03e389c2011-09-14 20:48:49 +0000350__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000351static const unsigned char aes_256_use_df_pr_entropyinputpr[] =
352 {
353 0x0b,0x23,0xaf,0xdf,0xf1,0x62,0xd7,0xd3,0x43,0x97,0xf8,0x77,
354 0x04,0xa8,0x42,0x20,0xbd,0xf6,0x0f,0xc1,0x17,0x2f,0x9f,0x54,
355 0xbb,0x56,0x17,0x86,0x68,0x0e,0xba,0xa9
356 };
357
Andy Polyakov03e389c2011-09-14 20:48:49 +0000358__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000359static const unsigned char aes_256_use_df_pr_int_returnedbits[] =
360 {
361 0x31,0x8e,0xad,0xaf,0x40,0xeb,0x6b,0x74,0x31,0x46,0x80,0xc7,
362 0x17,0xab,0x3c,0x7a
363 };
364
Andy Polyakov03e389c2011-09-14 20:48:49 +0000365__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000366static const unsigned char aes_256_use_df_pr_additionalinput2[] =
367 {
368 0x94,0x6b,0xc9,0x9f,0xab,0x8d,0xc5,0xec,0x71,0x88,0x1d,0x00,
369 0x8c,0x89,0x68,0xe4,0xc8,0x07,0x77,0x36,0x17,0x6d,0x79,0x78,
370 0xc7,0x06,0x4e,0x99,0x04,0x28,0x29,0xc3
371 };
372
Andy Polyakov03e389c2011-09-14 20:48:49 +0000373__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000374static const unsigned char aes_256_use_df_pr_entropyinputpr2[] =
375 {
376 0xbf,0x6c,0x59,0x2a,0x0d,0x44,0x0f,0xae,0x9a,0x5e,0x03,0x73,
377 0xd8,0xa6,0xe1,0xcf,0x25,0x61,0x38,0x24,0x86,0x9e,0x53,0xe8,
378 0xa4,0xdf,0x56,0xf4,0x06,0x07,0x9c,0x0f
379 };
380
Andy Polyakov03e389c2011-09-14 20:48:49 +0000381__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000382static const unsigned char aes_256_use_df_pr_returnedbits[] =
383 {
384 0x22,0x4a,0xb4,0xb8,0xb6,0xee,0x7d,0xb1,0x9e,0xc9,0xf9,0xa0,
385 0xd9,0xe2,0x97,0x00
386 };
387
388
389/* AES-256 use df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000390__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000391static const unsigned char aes_256_use_df_entropyinput[] =
392 {
393 0xa5,0x3e,0x37,0x10,0x17,0x43,0x91,0x93,0x59,0x1e,0x47,0x50,
394 0x87,0xaa,0xdd,0xd5,0xc1,0xc3,0x86,0xcd,0xca,0x0d,0xdb,0x68,
395 0xe0,0x02,0xd8,0x0f,0xdc,0x40,0x1a,0x47
396 };
397
Andy Polyakov03e389c2011-09-14 20:48:49 +0000398__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000399static const unsigned char aes_256_use_df_nonce[] =
400 {
401 0xa9,0x4d,0xa5,0x5a,0xfd,0xc5,0x0c,0xe5,0x1c,0x9a,0x3b,0x8a,
402 0x4c,0x44,0x84,0x40
403 };
404
Andy Polyakov03e389c2011-09-14 20:48:49 +0000405__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000406static const unsigned char aes_256_use_df_personalizationstring[] =
407 {
408 0x8b,0x52,0xa2,0x4a,0x93,0xc3,0x4e,0xa7,0x1e,0x1c,0xa7,0x05,
409 0xeb,0x82,0x9b,0xa6,0x5d,0xe4,0xd4,0xe0,0x7f,0xa3,0xd8,0x6b,
410 0x37,0x84,0x5f,0xf1,0xc7,0xd5,0xf6,0xd2
411 };
412
Andy Polyakov03e389c2011-09-14 20:48:49 +0000413__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000414static const unsigned char aes_256_use_df_additionalinput[] =
415 {
416 0x20,0xf4,0x22,0xed,0xf8,0x5c,0xa1,0x6a,0x01,0xcf,0xbe,0x5f,
417 0x8d,0x6c,0x94,0x7f,0xae,0x12,0xa8,0x57,0xdb,0x2a,0xa9,0xbf,
418 0xc7,0xb3,0x65,0x81,0x80,0x8d,0x0d,0x46
419 };
420
Andy Polyakov03e389c2011-09-14 20:48:49 +0000421__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000422static const unsigned char aes_256_use_df_int_returnedbits[] =
423 {
424 0x4e,0x44,0xfd,0xf3,0x9e,0x29,0xa2,0xb8,0x0f,0x5d,0x6c,0xe1,
425 0x28,0x0c,0x3b,0xc1
426 };
427
Andy Polyakov03e389c2011-09-14 20:48:49 +0000428__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000429static const unsigned char aes_256_use_df_entropyinputreseed[] =
430 {
431 0xdd,0x40,0xe5,0x98,0x7b,0x27,0x16,0x73,0x15,0x68,0xd2,0x76,
432 0xbf,0x0c,0x67,0x15,0x75,0x79,0x03,0xd3,0xde,0xde,0x91,0x46,
433 0x42,0xdd,0xd4,0x67,0xc8,0x79,0xc8,0x1e
434 };
435
Andy Polyakov03e389c2011-09-14 20:48:49 +0000436__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000437static const unsigned char aes_256_use_df_additionalinputreseed[] =
438 {
439 0x7f,0xd8,0x1f,0xbd,0x2a,0xb5,0x1c,0x11,0x5d,0x83,0x4e,0x99,
440 0xf6,0x5c,0xa5,0x40,0x20,0xed,0x38,0x8e,0xd5,0x9e,0xe0,0x75,
441 0x93,0xfe,0x12,0x5e,0x5d,0x73,0xfb,0x75
442 };
443
Andy Polyakov03e389c2011-09-14 20:48:49 +0000444__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000445static const unsigned char aes_256_use_df_additionalinput2[] =
446 {
447 0xcd,0x2c,0xff,0x14,0x69,0x3e,0x4c,0x9e,0xfd,0xfe,0x26,0x0d,
448 0xe9,0x86,0x00,0x49,0x30,0xba,0xb1,0xc6,0x50,0x57,0x77,0x2a,
449 0x62,0x39,0x2c,0x3b,0x74,0xeb,0xc9,0x0d
450 };
451
Andy Polyakov03e389c2011-09-14 20:48:49 +0000452__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000453static const unsigned char aes_256_use_df_returnedbits[] =
454 {
455 0x4f,0x78,0xbe,0xb9,0x4d,0x97,0x8c,0xe9,0xd0,0x97,0xfe,0xad,
456 0xfa,0xfd,0x35,0x5e
457 };
458
459
460/* AES-128 no df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000461__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000462static const unsigned char aes_128_no_df_pr_entropyinput[] =
463 {
464 0x9a,0x25,0x65,0x10,0x67,0xd5,0xb6,0x6b,0x70,0xa1,0xb3,0xa4,
465 0x43,0x95,0x80,0xc0,0x84,0x0a,0x79,0xb0,0x88,0x74,0xf2,0xbf,
466 0x31,0x6c,0x33,0x38,0x0b,0x00,0xb2,0x5a
467 };
468
Andy Polyakov03e389c2011-09-14 20:48:49 +0000469__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000470static const unsigned char aes_128_no_df_pr_nonce[] =
471 {
472 0x78,0x47,0x6b,0xf7,0x90,0x8e,0x87,0xf1
473 };
474
Andy Polyakov03e389c2011-09-14 20:48:49 +0000475__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000476static const unsigned char aes_128_no_df_pr_personalizationstring[] =
477 {
478 0xf7,0x22,0x1d,0x3a,0xbe,0x1d,0xca,0x32,0x1b,0xbd,0x87,0x0c,
479 0x51,0x24,0x19,0xee,0xa3,0x23,0x09,0x63,0x33,0x3d,0xa8,0x0c,
480 0x1c,0xfa,0x42,0x89,0xcc,0x6f,0xa0,0xa8
481 };
482
Andy Polyakov03e389c2011-09-14 20:48:49 +0000483__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000484static const unsigned char aes_128_no_df_pr_additionalinput[] =
485 {
486 0xc9,0xe0,0x80,0xbf,0x8c,0x45,0x58,0x39,0xff,0x00,0xab,0x02,
487 0x4c,0x3e,0x3a,0x95,0x9b,0x80,0xa8,0x21,0x2a,0xee,0xba,0x73,
488 0xb1,0xd9,0xcf,0x28,0xf6,0x8f,0x9b,0x12
489 };
490
Andy Polyakov03e389c2011-09-14 20:48:49 +0000491__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000492static const unsigned char aes_128_no_df_pr_entropyinputpr[] =
493 {
494 0x4c,0xa8,0xc5,0xf0,0x59,0x9e,0xa6,0x8d,0x26,0x53,0xd7,0x8a,
495 0xa9,0xd8,0xf7,0xed,0xb2,0xf9,0x12,0x42,0xe1,0xe5,0xbd,0xe7,
496 0xe7,0x1d,0x74,0x99,0x00,0x9d,0x31,0x3e
497 };
498
Andy Polyakov03e389c2011-09-14 20:48:49 +0000499__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000500static const unsigned char aes_128_no_df_pr_int_returnedbits[] =
501 {
502 0xe2,0xac,0x20,0xf0,0x80,0xe7,0xbc,0x7e,0x9c,0x7b,0x65,0x71,
503 0xaf,0x19,0x32,0x16
504 };
505
Andy Polyakov03e389c2011-09-14 20:48:49 +0000506__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000507static const unsigned char aes_128_no_df_pr_additionalinput2[] =
508 {
509 0x32,0x7f,0x38,0x8b,0x73,0x0a,0x78,0x83,0xdc,0x30,0xbe,0x9f,
510 0x10,0x1f,0xf5,0x1f,0xca,0x00,0xb5,0x0d,0xd6,0x9d,0x60,0x83,
511 0x51,0x54,0x7d,0x38,0x23,0x3a,0x52,0x50
512 };
513
Andy Polyakov03e389c2011-09-14 20:48:49 +0000514__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000515static const unsigned char aes_128_no_df_pr_entropyinputpr2[] =
516 {
517 0x18,0x61,0x53,0x56,0xed,0xed,0xd7,0x20,0xfb,0x71,0x04,0x7a,
518 0xb2,0xac,0xc1,0x28,0xcd,0xf2,0xc2,0xfc,0xaa,0xb1,0x06,0x07,
519 0xe9,0x46,0x95,0x02,0x48,0x01,0x78,0xf9
520 };
521
Andy Polyakov03e389c2011-09-14 20:48:49 +0000522__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000523static const unsigned char aes_128_no_df_pr_returnedbits[] =
524 {
525 0x29,0xc8,0x1b,0x15,0xb1,0xd1,0xc2,0xf6,0x71,0x86,0x68,0x33,
526 0x57,0x82,0x33,0xaf
527 };
528
529
530/* AES-128 no df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000531__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000532static const unsigned char aes_128_no_df_entropyinput[] =
533 {
534 0xc9,0xc5,0x79,0xbc,0xe8,0xc5,0x19,0xd8,0xbc,0x66,0x73,0x67,
535 0xf6,0xd3,0x72,0xaa,0xa6,0x16,0xb8,0x50,0xb7,0x47,0x3a,0x42,
536 0xab,0xf4,0x16,0xb2,0x96,0xd2,0xb6,0x60
537 };
538
Andy Polyakov03e389c2011-09-14 20:48:49 +0000539__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000540static const unsigned char aes_128_no_df_nonce[] =
541 {
542 0x5f,0xbf,0x97,0x0c,0x4b,0xa4,0x87,0x13
543 };
544
Andy Polyakov03e389c2011-09-14 20:48:49 +0000545__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000546static const unsigned char aes_128_no_df_personalizationstring[] =
547 {
548 0xce,0xfb,0x7b,0x3f,0xd4,0x6b,0x29,0x0d,0x69,0x06,0xff,0xbb,
549 0xf2,0xe5,0xc6,0x6c,0x0a,0x10,0xa0,0xcf,0x1a,0x48,0xc7,0x8b,
550 0x3c,0x16,0x88,0xed,0x50,0x13,0x81,0xce
551 };
552
Andy Polyakov03e389c2011-09-14 20:48:49 +0000553__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000554static const unsigned char aes_128_no_df_additionalinput[] =
555 {
556 0x4b,0x22,0x46,0x18,0x02,0x7b,0xd2,0x1b,0x22,0x42,0x7c,0x37,
557 0xd9,0xf6,0xe8,0x9b,0x12,0x30,0x5f,0xe9,0x90,0xe8,0x08,0x24,
558 0x4f,0x06,0x66,0xdb,0x19,0x2b,0x13,0x95
559 };
560
Andy Polyakov03e389c2011-09-14 20:48:49 +0000561__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000562static const unsigned char aes_128_no_df_int_returnedbits[] =
563 {
564 0x2e,0x96,0x70,0x64,0xfa,0xdf,0xdf,0x57,0xb5,0x82,0xee,0xd6,
565 0xed,0x3e,0x65,0xc2
566 };
567
Andy Polyakov03e389c2011-09-14 20:48:49 +0000568__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000569static const unsigned char aes_128_no_df_entropyinputreseed[] =
570 {
571 0x26,0xc0,0x72,0x16,0x3a,0x4b,0xb7,0x99,0xd4,0x07,0xaf,0x66,
572 0x62,0x36,0x96,0xa4,0x51,0x17,0xfa,0x07,0x8b,0x17,0x5e,0xa1,
573 0x2f,0x3c,0x10,0xe7,0x90,0xd0,0x46,0x00
574 };
575
Andy Polyakov03e389c2011-09-14 20:48:49 +0000576__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000577static const unsigned char aes_128_no_df_additionalinputreseed[] =
578 {
579 0x83,0x39,0x37,0x7b,0x02,0x06,0xd2,0x12,0x13,0x8d,0x8b,0xf2,
580 0xf0,0xf6,0x26,0xeb,0xa4,0x22,0x7b,0xc2,0xe7,0xba,0x79,0xe4,
581 0x3b,0x77,0x5d,0x4d,0x47,0xb2,0x2d,0xb4
582 };
583
Andy Polyakov03e389c2011-09-14 20:48:49 +0000584__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000585static const unsigned char aes_128_no_df_additionalinput2[] =
586 {
587 0x0b,0xb9,0x67,0x37,0xdb,0x83,0xdf,0xca,0x81,0x8b,0xf9,0x3f,
588 0xf1,0x11,0x1b,0x2f,0xf0,0x61,0xa6,0xdf,0xba,0xa3,0xb1,0xac,
589 0xd3,0xe6,0x09,0xb8,0x2c,0x6a,0x67,0xd6
590 };
591
Andy Polyakov03e389c2011-09-14 20:48:49 +0000592__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000593static const unsigned char aes_128_no_df_returnedbits[] =
594 {
595 0x1e,0xa7,0xa4,0xe4,0xe1,0xa6,0x7c,0x69,0x9a,0x44,0x6c,0x36,
596 0x81,0x37,0x19,0xd4
597 };
598
599
600/* AES-192 no df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000601__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000602static const unsigned char aes_192_no_df_pr_entropyinput[] =
603 {
604 0x9d,0x2c,0xd2,0x55,0x66,0xea,0xe0,0xbe,0x18,0xb7,0x76,0xe7,
605 0x73,0x35,0xd8,0x1f,0xad,0x3a,0xe3,0x81,0x0e,0x92,0xd0,0x61,
606 0xc9,0x12,0x26,0xf6,0x1c,0xdf,0xfe,0x47,0xaa,0xfe,0x7d,0x5a,
607 0x17,0x1f,0x8d,0x9a
608 };
609
Andy Polyakov03e389c2011-09-14 20:48:49 +0000610__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000611static const unsigned char aes_192_no_df_pr_nonce[] =
612 {
613 0x44,0x82,0xed,0xe8,0x4c,0x28,0x5a,0x14,0xff,0x88,0x8d,0x19,
614 0x61,0x5c,0xee,0x0f
615 };
616
Andy Polyakov03e389c2011-09-14 20:48:49 +0000617__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000618static const unsigned char aes_192_no_df_pr_personalizationstring[] =
619 {
620 0x47,0xd7,0x9b,0x99,0xaa,0xcb,0xe7,0xd2,0x57,0x66,0x2c,0xe1,
621 0x78,0xd6,0x2c,0xea,0xa3,0x23,0x5f,0x2a,0xc1,0x3a,0xf0,0xa4,
622 0x20,0x3b,0xfa,0x07,0xd5,0x05,0x02,0xe4,0x57,0x01,0xb6,0x10,
623 0x57,0x2e,0xe7,0x55
624 };
625
Andy Polyakov03e389c2011-09-14 20:48:49 +0000626__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000627static const unsigned char aes_192_no_df_pr_additionalinput[] =
628 {
629 0x4b,0x74,0x0b,0x40,0xce,0x6b,0xc2,0x6a,0x24,0xb4,0xf3,0xad,
630 0x7a,0xa5,0x7a,0xa2,0x15,0xe2,0xc8,0x61,0x15,0xc6,0xb7,0x85,
631 0x69,0x11,0xad,0x7b,0x14,0xd2,0xf6,0x12,0xa1,0x95,0x5d,0x3f,
632 0xe2,0xd0,0x0c,0x2f
633 };
634
Andy Polyakov03e389c2011-09-14 20:48:49 +0000635__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000636static const unsigned char aes_192_no_df_pr_entropyinputpr[] =
637 {
638 0x0c,0x9c,0xad,0x05,0xee,0xae,0x48,0x23,0x89,0x59,0xa1,0x94,
639 0xd7,0xd8,0x75,0xd5,0x54,0x93,0xc7,0x4a,0xd9,0x26,0xde,0xeb,
640 0xba,0xb0,0x7e,0x30,0x1d,0x5f,0x69,0x40,0x9c,0x3b,0x17,0x58,
641 0x1d,0x30,0xb3,0x78
642 };
643
Andy Polyakov03e389c2011-09-14 20:48:49 +0000644__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000645static const unsigned char aes_192_no_df_pr_int_returnedbits[] =
646 {
647 0xf7,0x93,0xb0,0x6d,0x77,0x83,0xd5,0x38,0x01,0xe1,0x52,0x40,
648 0x7e,0x3e,0x0c,0x26
649 };
650
Andy Polyakov03e389c2011-09-14 20:48:49 +0000651__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000652static const unsigned char aes_192_no_df_pr_additionalinput2[] =
653 {
654 0xbc,0x4b,0x37,0x44,0x1c,0xc5,0x45,0x5f,0x8f,0x51,0x62,0x8a,
655 0x85,0x30,0x1d,0x7c,0xe4,0xcf,0xf7,0x44,0xce,0x32,0x3e,0x57,
656 0x95,0xa4,0x2a,0xdf,0xfd,0x9e,0x38,0x41,0xb3,0xf6,0xc5,0xee,
657 0x0c,0x4b,0xee,0x6e
658 };
659
Andy Polyakov03e389c2011-09-14 20:48:49 +0000660__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000661static const unsigned char aes_192_no_df_pr_entropyinputpr2[] =
662 {
663 0xec,0xaf,0xf6,0x4f,0xb1,0xa0,0x54,0xb5,0x5b,0xe3,0x46,0xb0,
664 0x76,0x5a,0x7c,0x3f,0x7b,0x94,0x69,0x21,0x51,0x02,0xe5,0x9f,
665 0x04,0x59,0x02,0x98,0xc6,0x43,0x2c,0xcc,0x26,0x4c,0x87,0x6b,
666 0x8e,0x0a,0x83,0xdf
667 };
668
Andy Polyakov03e389c2011-09-14 20:48:49 +0000669__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000670static const unsigned char aes_192_no_df_pr_returnedbits[] =
671 {
672 0x74,0x45,0xfb,0x53,0x84,0x96,0xbe,0xff,0x15,0xcc,0x41,0x91,
673 0xb9,0xa1,0x21,0x68
674 };
675
676
677/* AES-192 no df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000678__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000679static const unsigned char aes_192_no_df_entropyinput[] =
680 {
681 0x3c,0x7d,0xb5,0xe0,0x54,0xd9,0x6e,0x8c,0xa9,0x86,0xce,0x4e,
682 0x6b,0xaf,0xeb,0x2f,0xe7,0x75,0xe0,0x8b,0xa4,0x3b,0x07,0xfe,
683 0xbe,0x33,0x75,0x93,0x80,0x27,0xb5,0x29,0x47,0x8b,0xc7,0x28,
684 0x94,0xc3,0x59,0x63
685 };
686
Andy Polyakov03e389c2011-09-14 20:48:49 +0000687__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000688static const unsigned char aes_192_no_df_nonce[] =
689 {
690 0x43,0xf1,0x7d,0xb8,0xc3,0xfe,0xd0,0x23,0x6b,0xb4,0x92,0xdb,
691 0x29,0xfd,0x45,0x71
692 };
693
Andy Polyakov03e389c2011-09-14 20:48:49 +0000694__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000695static const unsigned char aes_192_no_df_personalizationstring[] =
696 {
697 0x9f,0x24,0x29,0x99,0x9e,0x01,0xab,0xe9,0x19,0xd8,0x23,0x08,
698 0xb7,0xd6,0x7e,0x8c,0xc0,0x9e,0x7f,0x6e,0x5b,0x33,0x20,0x96,
699 0x0b,0x23,0x2c,0xa5,0x6a,0xf8,0x1b,0x04,0x26,0xdb,0x2e,0x2b,
700 0x3b,0x88,0xce,0x35
701 };
702
Andy Polyakov03e389c2011-09-14 20:48:49 +0000703__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000704static const unsigned char aes_192_no_df_additionalinput[] =
705 {
706 0x94,0xe9,0x7c,0x3d,0xa7,0xdb,0x60,0x83,0x1f,0x98,0x3f,0x0b,
707 0x88,0x59,0x57,0x51,0x88,0x9f,0x76,0x49,0x9f,0xa6,0xda,0x71,
708 0x1d,0x0d,0x47,0x16,0x63,0xc5,0x68,0xe4,0x5d,0x39,0x69,0xb3,
709 0x3e,0xbe,0xd4,0x8e
710 };
711
Andy Polyakov03e389c2011-09-14 20:48:49 +0000712__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000713static const unsigned char aes_192_no_df_int_returnedbits[] =
714 {
715 0xf9,0xd7,0xad,0x69,0xab,0x8f,0x23,0x56,0x70,0x17,0x4f,0x2a,
716 0x45,0xe7,0x4a,0xc5
717 };
718
Andy Polyakov03e389c2011-09-14 20:48:49 +0000719__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000720static const unsigned char aes_192_no_df_entropyinputreseed[] =
721 {
722 0xa6,0x71,0x6a,0x3d,0xba,0xd1,0xe8,0x66,0xa6,0xef,0xb2,0x0e,
723 0xa8,0x9c,0xaa,0x4e,0xaf,0x17,0x89,0x50,0x00,0xda,0xa1,0xb1,
724 0x0b,0xa4,0xd9,0x35,0x89,0xc8,0xe5,0xb0,0xd9,0xb7,0xc4,0x33,
725 0x9b,0xcb,0x7e,0x75
726 };
727
Andy Polyakov03e389c2011-09-14 20:48:49 +0000728__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000729static const unsigned char aes_192_no_df_additionalinputreseed[] =
730 {
731 0x27,0x21,0xfc,0xc2,0xbd,0xf3,0x3c,0xce,0xc3,0xca,0xc1,0x01,
732 0xe0,0xff,0x93,0x12,0x7d,0x54,0x42,0xe3,0x9f,0x03,0xdf,0x27,
733 0x04,0x07,0x3c,0x53,0x7f,0xa8,0x66,0xc8,0x97,0x4b,0x61,0x40,
734 0x5d,0x7a,0x25,0x79
735 };
736
Andy Polyakov03e389c2011-09-14 20:48:49 +0000737__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000738static const unsigned char aes_192_no_df_additionalinput2[] =
739 {
740 0x2d,0x8e,0x16,0x5d,0x0b,0x9f,0xeb,0xaa,0xd6,0xec,0x28,0x71,
741 0x7c,0x0b,0xc1,0x1d,0xd4,0x44,0x19,0x47,0xfd,0x1d,0x7c,0xe5,
742 0xf3,0x27,0xe1,0xb6,0x72,0x0a,0xe0,0xec,0x0e,0xcd,0xef,0x1a,
743 0x91,0x6a,0xe3,0x5f
744 };
745
Andy Polyakov03e389c2011-09-14 20:48:49 +0000746__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000747static const unsigned char aes_192_no_df_returnedbits[] =
748 {
749 0xe5,0xda,0xb8,0xe0,0x63,0x59,0x5a,0xcc,0x3d,0xdc,0x9f,0xe8,
750 0x66,0x67,0x2c,0x92
751 };
752
753
754/* AES-256 no df PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000755__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000756static const unsigned char aes_256_no_df_pr_entropyinput[] =
757 {
758 0x15,0xc7,0x5d,0xcb,0x41,0x4b,0x16,0x01,0x3a,0xd1,0x44,0xe8,
759 0x22,0x32,0xc6,0x9c,0x3f,0xe7,0x43,0xf5,0x9a,0xd3,0xea,0xf2,
760 0xd7,0x4e,0x6e,0x6a,0x55,0x73,0x40,0xef,0x89,0xad,0x0d,0x03,
761 0x96,0x7e,0x78,0x81,0x2f,0x91,0x1b,0x44,0xb0,0x02,0xba,0x1c
762 };
763
Andy Polyakov03e389c2011-09-14 20:48:49 +0000764__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000765static const unsigned char aes_256_no_df_pr_nonce[] =
766 {
767 0xdc,0xe4,0xd4,0x27,0x7a,0x90,0xd7,0x99,0x43,0xa1,0x3c,0x30,
768 0xcc,0x4b,0xee,0x2e
769 };
770
Andy Polyakov03e389c2011-09-14 20:48:49 +0000771__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000772static const unsigned char aes_256_no_df_pr_personalizationstring[] =
773 {
774 0xe3,0xe6,0xb9,0x11,0xe4,0x7a,0xa4,0x40,0x6b,0xf8,0x73,0xf7,
775 0x7e,0xec,0xc7,0xb9,0x97,0xbf,0xf8,0x25,0x7b,0xbe,0x11,0x9b,
776 0x5b,0x6a,0x0c,0x2e,0x2b,0x01,0x51,0xcd,0x41,0x4b,0x6b,0xac,
777 0x31,0xa8,0x0b,0xf7,0xe6,0x59,0x42,0xb8,0x03,0x0c,0xf8,0x06
778 };
779
Andy Polyakov03e389c2011-09-14 20:48:49 +0000780__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000781static const unsigned char aes_256_no_df_pr_additionalinput[] =
782 {
783 0x6a,0x9f,0x00,0x91,0xae,0xfe,0xcf,0x84,0x99,0xce,0xb1,0x40,
784 0x6d,0x5d,0x33,0x28,0x84,0xf4,0x8c,0x63,0x4c,0x7e,0xbd,0x2c,
785 0x80,0x76,0xee,0x5a,0xaa,0x15,0x07,0x31,0xd8,0xbb,0x8c,0x69,
786 0x9d,0x9d,0xbc,0x7e,0x49,0xae,0xec,0x39,0x6b,0xd1,0x1f,0x7e
787 };
788
Andy Polyakov03e389c2011-09-14 20:48:49 +0000789__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000790static const unsigned char aes_256_no_df_pr_entropyinputpr[] =
791 {
792 0xf3,0xb9,0x75,0x9c,0xbd,0x88,0xea,0xa2,0x50,0xad,0xd6,0x16,
793 0x1a,0x12,0x3c,0x86,0x68,0xaf,0x6f,0xbe,0x19,0xf2,0xee,0xcc,
794 0xa5,0x70,0x84,0x53,0x50,0xcb,0x9f,0x14,0xa9,0xe5,0xee,0xb9,
795 0x48,0x45,0x40,0xe2,0xc7,0xc9,0x9a,0x74,0xff,0x8c,0x99,0x1f
796 };
797
Andy Polyakov03e389c2011-09-14 20:48:49 +0000798__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000799static const unsigned char aes_256_no_df_pr_int_returnedbits[] =
800 {
801 0x2e,0xf2,0x45,0x4c,0x62,0x2e,0x0a,0xb9,0x6b,0xa2,0xfd,0x56,
802 0x79,0x60,0x93,0xcf
803 };
804
Andy Polyakov03e389c2011-09-14 20:48:49 +0000805__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000806static const unsigned char aes_256_no_df_pr_additionalinput2[] =
807 {
808 0xaf,0x69,0x20,0xe9,0x3b,0x37,0x9d,0x3f,0xb4,0x80,0x02,0x7a,
809 0x25,0x7d,0xb8,0xde,0x71,0xc5,0x06,0x0c,0xb4,0xe2,0x8f,0x35,
810 0xd8,0x14,0x0d,0x7f,0x76,0x63,0x4e,0xb5,0xee,0xe9,0x6f,0x34,
811 0xc7,0x5f,0x56,0x14,0x4a,0xe8,0x73,0x95,0x5b,0x1c,0xb9,0xcb
812 };
813
Andy Polyakov03e389c2011-09-14 20:48:49 +0000814__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000815static const unsigned char aes_256_no_df_pr_entropyinputpr2[] =
816 {
817 0xe5,0xb0,0x2e,0x7e,0x52,0x30,0xe3,0x63,0x82,0xb6,0x44,0xd3,
818 0x25,0x19,0x05,0x24,0x9a,0x9f,0x5f,0x27,0x6a,0x29,0xab,0xfa,
819 0x07,0xa2,0x42,0x0f,0xc5,0xa8,0x94,0x7c,0x17,0x7b,0x85,0x83,
820 0x0c,0x25,0x0e,0x63,0x0b,0xe9,0x12,0x60,0xcd,0xef,0x80,0x0f
821 };
822
Andy Polyakov03e389c2011-09-14 20:48:49 +0000823__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000824static const unsigned char aes_256_no_df_pr_returnedbits[] =
825 {
826 0x5e,0xf2,0x26,0xef,0x9f,0x58,0x5d,0xd5,0x4a,0x10,0xfe,0xa7,
827 0x2d,0x5f,0x4a,0x46
828 };
829
830
831/* AES-256 no df No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000832__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000833static const unsigned char aes_256_no_df_entropyinput[] =
834 {
835 0xfb,0xcf,0x1b,0x61,0x16,0x89,0x78,0x23,0xf5,0xd8,0x96,0xe3,
836 0x4e,0x64,0x0b,0x29,0x9a,0x3f,0xf8,0xa5,0xed,0xf2,0xfe,0xdb,
837 0x16,0xca,0x7f,0x10,0xfa,0x5e,0x18,0x76,0x2c,0x63,0x5e,0x96,
838 0xcf,0xb3,0xd6,0xfc,0xaf,0x99,0x39,0x28,0x9c,0x61,0xe8,0xb3
839 };
840
Andy Polyakov03e389c2011-09-14 20:48:49 +0000841__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000842static const unsigned char aes_256_no_df_nonce[] =
843 {
844 0x12,0x96,0xf0,0x52,0xf3,0x8d,0x81,0xcf,0xde,0x86,0xf2,0x99,
845 0x43,0x96,0xb9,0xf0
846 };
847
Andy Polyakov03e389c2011-09-14 20:48:49 +0000848__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000849static const unsigned char aes_256_no_df_personalizationstring[] =
850 {
851 0x63,0x0d,0x78,0xf5,0x90,0x8e,0x32,0x47,0xb0,0x4d,0x37,0x60,
852 0x09,0x96,0xbc,0xbf,0x97,0x7a,0x62,0x14,0x45,0xbd,0x8d,0xcc,
853 0x69,0xfb,0x03,0xe1,0x80,0x1c,0xc7,0xe2,0x2a,0xf9,0x37,0x3f,
854 0x66,0x4d,0x62,0xd9,0x10,0xe0,0xad,0xc8,0x9a,0xf0,0xa8,0x6d
855 };
856
Andy Polyakov03e389c2011-09-14 20:48:49 +0000857__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000858static const unsigned char aes_256_no_df_additionalinput[] =
859 {
860 0x36,0xc6,0x13,0x60,0xbb,0x14,0xad,0x22,0xb0,0x38,0xac,0xa6,
861 0x18,0x16,0x93,0x25,0x86,0xb7,0xdc,0xdc,0x36,0x98,0x2b,0xf9,
862 0x68,0x33,0xd3,0xc6,0xff,0xce,0x8d,0x15,0x59,0x82,0x76,0xed,
863 0x6f,0x8d,0x49,0x74,0x2f,0xda,0xdc,0x1f,0x17,0xd0,0xde,0x17
864 };
865
Andy Polyakov03e389c2011-09-14 20:48:49 +0000866__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000867static const unsigned char aes_256_no_df_int_returnedbits[] =
868 {
869 0x16,0x2f,0x8e,0x3f,0x21,0x7a,0x1c,0x20,0x56,0xd1,0x92,0xf6,
870 0xd2,0x25,0x75,0x0e
871 };
872
Andy Polyakov03e389c2011-09-14 20:48:49 +0000873__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000874static const unsigned char aes_256_no_df_entropyinputreseed[] =
875 {
876 0x91,0x79,0x76,0xee,0xe0,0xcf,0x9e,0xc2,0xd5,0xd4,0x23,0x9b,
877 0x12,0x8c,0x7e,0x0a,0xb7,0xd2,0x8b,0xd6,0x7c,0xa3,0xc6,0xe5,
878 0x0e,0xaa,0xc7,0x6b,0xae,0x0d,0xfa,0x53,0x06,0x79,0xa1,0xed,
879 0x4d,0x6a,0x0e,0xd8,0x9d,0xbe,0x1b,0x31,0x93,0x7b,0xec,0xfb
880 };
881
Andy Polyakov03e389c2011-09-14 20:48:49 +0000882__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000883static const unsigned char aes_256_no_df_additionalinputreseed[] =
884 {
885 0xd2,0x46,0x50,0x22,0x10,0x14,0x63,0xf7,0xea,0x0f,0xb9,0x7e,
886 0x0d,0xe1,0x94,0x07,0xaf,0x09,0x44,0x31,0xea,0x64,0xa4,0x18,
887 0x5b,0xf9,0xd8,0xc2,0xfa,0x03,0x47,0xc5,0x39,0x43,0xd5,0x3b,
888 0x62,0x86,0x64,0xea,0x2c,0x73,0x8c,0xae,0x9d,0x98,0x98,0x29
889 };
890
Andy Polyakov03e389c2011-09-14 20:48:49 +0000891__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000892static const unsigned char aes_256_no_df_additionalinput2[] =
893 {
894 0x8c,0xab,0x18,0xf8,0xc3,0xec,0x18,0x5c,0xb3,0x1e,0x9d,0xbe,
895 0x3f,0x03,0xb4,0x00,0x98,0x9d,0xae,0xeb,0xf4,0x94,0xf8,0x42,
896 0x8f,0xe3,0x39,0x07,0xe1,0xc9,0xad,0x0b,0x1f,0xed,0xc0,0xba,
897 0xf6,0xd1,0xec,0x27,0x86,0x7b,0xd6,0x55,0x9b,0x60,0xa5,0xc6
898 };
899
Andy Polyakov03e389c2011-09-14 20:48:49 +0000900__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000901static const unsigned char aes_256_no_df_returnedbits[] =
902 {
903 0xef,0xd2,0xd8,0x5c,0xdc,0x62,0x25,0x9f,0xaa,0x1e,0x2c,0x67,
904 0xf6,0x02,0x32,0xe2
905 };
906
907
908/* SHA-1 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000909__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000910static const unsigned char sha1_pr_entropyinput[] =
911 {
912 0xd2,0x36,0xa5,0x27,0x31,0x73,0xdd,0x11,0x4f,0x93,0xbd,0xe2,
913 0x31,0xa5,0x91,0x13
914 };
915
Andy Polyakov03e389c2011-09-14 20:48:49 +0000916__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000917static const unsigned char sha1_pr_nonce[] =
918 {
919 0xb5,0xb3,0x60,0xef,0xf7,0x63,0x31,0xf3
920 };
921
Andy Polyakov03e389c2011-09-14 20:48:49 +0000922__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000923static const unsigned char sha1_pr_personalizationstring[] =
924 {
925 0xd4,0xbb,0x02,0x10,0xb2,0x71,0xdb,0x81,0xd6,0xf0,0x42,0x60,
926 0xda,0xea,0x77,0x52
927 };
928
Andy Polyakov03e389c2011-09-14 20:48:49 +0000929__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000930static const unsigned char sha1_pr_additionalinput[] =
931 {
932 0x4d,0xd2,0x6c,0x87,0xfb,0x2c,0x4f,0xa6,0x8d,0x16,0x63,0x22,
933 0x6a,0x51,0xe3,0xf8
934 };
935
Andy Polyakov03e389c2011-09-14 20:48:49 +0000936__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000937static const unsigned char sha1_pr_entropyinputpr[] =
938 {
939 0xc9,0x83,0x9e,0x16,0xf6,0x1c,0x0f,0xb2,0xec,0x60,0x31,0xa9,
940 0xcb,0xa9,0x36,0x7a
941 };
942
Andy Polyakov03e389c2011-09-14 20:48:49 +0000943__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000944static const unsigned char sha1_pr_int_returnedbits[] =
945 {
946 0xa8,0x13,0x4f,0xf4,0x31,0x02,0x44,0xe3,0xd3,0x3d,0x61,0x9e,
947 0xe5,0xc6,0x3e,0x89,0xb5,0x9b,0x0f,0x35
948 };
949
Andy Polyakov03e389c2011-09-14 20:48:49 +0000950__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000951static const unsigned char sha1_pr_additionalinput2[] =
952 {
953 0xf9,0xe8,0xd2,0x72,0x13,0x34,0x95,0x6f,0x15,0x49,0x47,0x99,
954 0x16,0x03,0x19,0x47
955 };
956
Andy Polyakov03e389c2011-09-14 20:48:49 +0000957__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000958static const unsigned char sha1_pr_entropyinputpr2[] =
959 {
960 0x4e,0x8c,0x49,0x9b,0x4a,0x5c,0x9b,0x9c,0x3a,0xee,0xfb,0xd2,
961 0xae,0xcd,0x8c,0xc4
962 };
963
Andy Polyakov03e389c2011-09-14 20:48:49 +0000964__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000965static const unsigned char sha1_pr_returnedbits[] =
966 {
967 0x50,0xb4,0xb4,0xcd,0x68,0x57,0xfc,0x2e,0xc1,0x52,0xcc,0xf6,
968 0x68,0xa4,0x81,0xed,0x7e,0xe4,0x1d,0x87
969 };
970
971
972/* SHA-1 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +0000973__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000974static const unsigned char sha1_entropyinput[] =
975 {
976 0xa9,0x47,0x1b,0x29,0x2d,0x1c,0x05,0xdf,0x76,0xd0,0x62,0xf9,
977 0xe2,0x7f,0x4c,0x7b
978 };
979
Andy Polyakov03e389c2011-09-14 20:48:49 +0000980__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000981static const unsigned char sha1_nonce[] =
982 {
983 0x53,0x23,0x24,0xe3,0xec,0x0c,0x54,0x14
984 };
985
Andy Polyakov03e389c2011-09-14 20:48:49 +0000986__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000987static const unsigned char sha1_personalizationstring[] =
988 {
989 0x7a,0x87,0xa1,0xac,0x1c,0xfd,0xab,0xae,0xf7,0xd6,0xfb,0x76,
990 0x28,0xec,0x6d,0xca
991 };
992
Andy Polyakov03e389c2011-09-14 20:48:49 +0000993__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +0000994static const unsigned char sha1_additionalinput[] =
995 {
996 0xfc,0x92,0x35,0xd6,0x7e,0xb7,0x24,0x65,0xfd,0x12,0x27,0x35,
997 0xc0,0x72,0xca,0x28
998 };
999
Andy Polyakov03e389c2011-09-14 20:48:49 +00001000__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001001static const unsigned char sha1_int_returnedbits[] =
1002 {
1003 0x57,0x88,0x82,0xe5,0x25,0xa5,0x2c,0x4a,0x06,0x20,0x6c,0x72,
1004 0x55,0x61,0xdd,0x90,0x71,0x9f,0x95,0xea
1005 };
1006
Andy Polyakov03e389c2011-09-14 20:48:49 +00001007__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001008static const unsigned char sha1_entropyinputreseed[] =
1009 {
1010 0x69,0xa5,0x40,0x62,0x98,0x47,0x56,0x73,0x4a,0x8f,0x60,0x96,
1011 0xd6,0x99,0x27,0xed
1012 };
1013
Andy Polyakov03e389c2011-09-14 20:48:49 +00001014__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001015static const unsigned char sha1_additionalinputreseed[] =
1016 {
1017 0xe5,0x40,0x4e,0xbd,0x50,0x00,0xf5,0x15,0xa6,0xee,0x45,0xda,
1018 0x84,0x3d,0xd4,0xc0
1019 };
1020
Andy Polyakov03e389c2011-09-14 20:48:49 +00001021__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001022static const unsigned char sha1_additionalinput2[] =
1023 {
1024 0x11,0x51,0x14,0xf0,0x09,0x1b,0x4e,0x56,0x0d,0xe9,0xf6,0x1e,
1025 0x52,0x65,0xcd,0x96
1026 };
1027
Andy Polyakov03e389c2011-09-14 20:48:49 +00001028__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001029static const unsigned char sha1_returnedbits[] =
1030 {
1031 0xa1,0x9c,0x94,0x6e,0x29,0xe1,0x33,0x0d,0x32,0xd6,0xaa,0xce,
1032 0x71,0x3f,0x52,0x72,0x8b,0x42,0xa8,0xd7
1033 };
1034
1035
1036/* SHA-224 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001037__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001038static const unsigned char sha224_pr_entropyinput[] =
1039 {
1040 0x12,0x69,0x32,0x4f,0x83,0xa6,0xf5,0x14,0xe3,0x49,0x3e,0x75,
1041 0x3e,0xde,0xad,0xa1,0x29,0xc3,0xf3,0x19,0x20,0xb5,0x4c,0xd9
1042 };
1043
Andy Polyakov03e389c2011-09-14 20:48:49 +00001044__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001045static const unsigned char sha224_pr_nonce[] =
1046 {
1047 0x6a,0x78,0xd0,0xeb,0xbb,0x5a,0xf0,0xee,0xe8,0xc3,0xba,0x71
1048 };
1049
Andy Polyakov03e389c2011-09-14 20:48:49 +00001050__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001051static const unsigned char sha224_pr_personalizationstring[] =
1052 {
1053 0xd5,0xb8,0xb6,0xbc,0xc1,0x5b,0x60,0x31,0x3c,0xf5,0xe5,0xc0,
1054 0x8e,0x52,0x7a,0xbd,0xea,0x47,0xa9,0x5f,0x8f,0xf9,0x8b,0xae
1055 };
1056
Andy Polyakov03e389c2011-09-14 20:48:49 +00001057__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001058static const unsigned char sha224_pr_additionalinput[] =
1059 {
1060 0x1f,0x55,0xec,0xae,0x16,0x12,0x84,0xba,0x84,0x16,0x19,0x88,
1061 0x8e,0xb8,0x33,0x25,0x54,0xff,0xca,0x79,0xaf,0x07,0x25,0x50
1062 };
1063
Andy Polyakov03e389c2011-09-14 20:48:49 +00001064__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001065static const unsigned char sha224_pr_entropyinputpr[] =
1066 {
1067 0x92,0xa3,0x32,0xa8,0x9a,0x0a,0x58,0x7c,0x1d,0x5a,0x7e,0xe1,
1068 0xb2,0x73,0xab,0x0e,0x16,0x79,0x23,0xd3,0x29,0x89,0x81,0xe1
1069 };
1070
Andy Polyakov03e389c2011-09-14 20:48:49 +00001071__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001072static const unsigned char sha224_pr_int_returnedbits[] =
1073 {
1074 0xf3,0x38,0x91,0x40,0x37,0x7a,0x51,0x72,0x42,0x74,0x78,0x0a,
1075 0x69,0xfd,0xa6,0x44,0x43,0x45,0x6c,0x0c,0x5a,0x19,0xff,0xf1,
1076 0x54,0x60,0xee,0x6a
1077 };
1078
Andy Polyakov03e389c2011-09-14 20:48:49 +00001079__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001080static const unsigned char sha224_pr_additionalinput2[] =
1081 {
1082 0x75,0xf3,0x04,0x25,0xdd,0x36,0xa8,0x37,0x46,0xae,0x0c,0x52,
1083 0x05,0x79,0x4c,0x26,0xdb,0xe9,0x71,0x16,0x4c,0x0a,0xf2,0x60
1084 };
1085
Andy Polyakov03e389c2011-09-14 20:48:49 +00001086__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001087static const unsigned char sha224_pr_entropyinputpr2[] =
1088 {
1089 0xea,0xc5,0x03,0x0a,0x4f,0xb0,0x38,0x8d,0x23,0xd4,0xc8,0x77,
1090 0xe2,0x6d,0x9c,0x0b,0x44,0xf7,0x2d,0x5b,0xbf,0x5d,0x2a,0x11
1091 };
1092
Andy Polyakov03e389c2011-09-14 20:48:49 +00001093__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001094static const unsigned char sha224_pr_returnedbits[] =
1095 {
1096 0x60,0x50,0x2b,0xe7,0x86,0xd8,0x26,0x73,0xe3,0x1d,0x95,0x20,
1097 0xb3,0x2c,0x32,0x1c,0xf5,0xce,0x57,0xa6,0x67,0x2b,0xdc,0x4e,
1098 0xdd,0x11,0x4c,0xc4
1099 };
1100
1101
1102/* SHA-224 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001103__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001104static const unsigned char sha224_entropyinput[] =
1105 {
1106 0xb2,0x1c,0x77,0x4d,0xf6,0xd3,0xb6,0x40,0xb7,0x30,0x3e,0x29,
1107 0xb0,0x85,0x1c,0xbe,0x4a,0xea,0x6b,0x5a,0xb5,0x8a,0x97,0xeb
1108 };
1109
Andy Polyakov03e389c2011-09-14 20:48:49 +00001110__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001111static const unsigned char sha224_nonce[] =
1112 {
1113 0x42,0x02,0x0a,0x1c,0x98,0x9a,0x77,0x9e,0x9f,0x80,0xba,0xe0
1114 };
1115
Andy Polyakov03e389c2011-09-14 20:48:49 +00001116__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001117static const unsigned char sha224_personalizationstring[] =
1118 {
1119 0x98,0xb8,0x04,0x41,0xfc,0xc1,0x5d,0xc5,0xe9,0xb9,0x08,0xda,
1120 0xf9,0xfa,0x0d,0x90,0xce,0xdf,0x1d,0x10,0xa9,0x8d,0x50,0x0c
1121 };
1122
Andy Polyakov03e389c2011-09-14 20:48:49 +00001123__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001124static const unsigned char sha224_additionalinput[] =
1125 {
1126 0x9a,0x8d,0x39,0x49,0x42,0xd5,0x0b,0xae,0xe1,0xaf,0xb7,0x00,
1127 0x02,0xfa,0x96,0xb1,0xa5,0x1d,0x2d,0x25,0x78,0xee,0x83,0x3f
1128 };
1129
Andy Polyakov03e389c2011-09-14 20:48:49 +00001130__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001131static const unsigned char sha224_int_returnedbits[] =
1132 {
1133 0xe4,0xf5,0x53,0x79,0x5a,0x97,0x58,0x06,0x08,0xba,0x7b,0xfa,
1134 0xf0,0x83,0x05,0x8c,0x22,0xc0,0xc9,0xdb,0x15,0xe7,0xde,0x20,
1135 0x55,0x22,0x9a,0xad
1136 };
1137
Andy Polyakov03e389c2011-09-14 20:48:49 +00001138__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001139static const unsigned char sha224_entropyinputreseed[] =
1140 {
1141 0x67,0x09,0x48,0xaa,0x07,0x16,0x99,0x89,0x7f,0x6d,0xa0,0xe5,
1142 0x8f,0xdf,0xbc,0xdb,0xfe,0xe5,0x6c,0x7a,0x95,0x4a,0x66,0x17
1143 };
1144
Andy Polyakov03e389c2011-09-14 20:48:49 +00001145__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001146static const unsigned char sha224_additionalinputreseed[] =
1147 {
1148 0x0f,0x4b,0x1c,0x6f,0xb7,0xe3,0x47,0xe5,0x5d,0x7d,0x38,0xd6,
1149 0x28,0x9b,0xeb,0x55,0x63,0x09,0x3e,0x7c,0x56,0xea,0xf8,0x19
1150 };
1151
Andy Polyakov03e389c2011-09-14 20:48:49 +00001152__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001153static const unsigned char sha224_additionalinput2[] =
1154 {
1155 0x2d,0x26,0x7c,0x37,0xe4,0x7a,0x28,0x5e,0x5a,0x3c,0xaf,0x3d,
1156 0x5a,0x8e,0x55,0xa2,0x1a,0x6e,0xc0,0xe5,0xf6,0x21,0xd3,0xf6
1157 };
1158
Andy Polyakov03e389c2011-09-14 20:48:49 +00001159__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001160static const unsigned char sha224_returnedbits[] =
1161 {
1162 0x4d,0x83,0x35,0xdf,0x67,0xa9,0xfc,0x17,0xda,0x70,0xcc,0x8b,
1163 0x7f,0x77,0xae,0xa2,0x5f,0xb9,0x7e,0x74,0x4c,0x26,0xc1,0x7a,
1164 0x3b,0xa7,0x5c,0x93
1165 };
1166
1167
1168/* SHA-256 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001169__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001170static const unsigned char sha256_pr_entropyinput[] =
1171 {
1172 0xce,0x49,0x00,0x7a,0x56,0xe3,0x67,0x8f,0xe1,0xb6,0xa7,0xd4,
1173 0x4f,0x08,0x7a,0x1b,0x01,0xf4,0xfa,0x6b,0xef,0xb7,0xe5,0xeb,
1174 0x07,0x3d,0x11,0x0d,0xc8,0xea,0x2b,0xfe
1175 };
1176
Andy Polyakov03e389c2011-09-14 20:48:49 +00001177__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001178static const unsigned char sha256_pr_nonce[] =
1179 {
1180 0x73,0x41,0xc8,0x92,0x94,0xe2,0xc5,0x5f,0x93,0xfd,0x39,0x5d,
1181 0x2b,0x91,0x4d,0x38
1182 };
1183
Andy Polyakov03e389c2011-09-14 20:48:49 +00001184__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001185static const unsigned char sha256_pr_personalizationstring[] =
1186 {
1187 0x50,0x6d,0x01,0x01,0x07,0x5a,0x80,0x35,0x7a,0x56,0x1a,0x56,
1188 0x2f,0x9a,0x0b,0x35,0xb2,0xb1,0xc9,0xe5,0xca,0x69,0x61,0x48,
1189 0xff,0xfb,0x0f,0xd9,0x4b,0x79,0x1d,0xba
1190 };
1191
Andy Polyakov03e389c2011-09-14 20:48:49 +00001192__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001193static const unsigned char sha256_pr_additionalinput[] =
1194 {
1195 0x20,0xb8,0xdf,0x44,0x77,0x5a,0xb8,0xd3,0xbf,0xf6,0xcf,0xac,
1196 0x5e,0xa6,0x96,0x62,0x73,0x44,0x40,0x4a,0x30,0xfb,0x38,0xa5,
1197 0x7b,0x0d,0xe4,0x0d,0xc6,0xe4,0x9a,0x1f
1198 };
1199
Andy Polyakov03e389c2011-09-14 20:48:49 +00001200__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001201static const unsigned char sha256_pr_entropyinputpr[] =
1202 {
1203 0x04,0xc4,0x65,0xf4,0xd3,0xbf,0x83,0x4b,0xab,0xc8,0x41,0xa8,
1204 0xc2,0xe0,0x44,0x63,0x77,0x4c,0x6f,0x6c,0x49,0x46,0xff,0x94,
1205 0x17,0xea,0xe6,0x1a,0x9d,0x5e,0x66,0x78
1206 };
1207
Andy Polyakov03e389c2011-09-14 20:48:49 +00001208__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001209static const unsigned char sha256_pr_int_returnedbits[] =
1210 {
1211 0x07,0x4d,0xac,0x9b,0x86,0xca,0x4a,0xaa,0x6e,0x7a,0x03,0xa2,
1212 0x5d,0x10,0xea,0x0b,0xf9,0x83,0xcc,0xd1,0xfc,0xe2,0x07,0xc7,
1213 0x06,0x34,0x60,0x6f,0x83,0x94,0x99,0x76
1214 };
1215
Andy Polyakov03e389c2011-09-14 20:48:49 +00001216__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001217static const unsigned char sha256_pr_additionalinput2[] =
1218 {
1219 0x89,0x4e,0x45,0x8c,0x11,0xf9,0xbc,0x5b,0xac,0x74,0x8b,0x4b,
1220 0x5f,0xf7,0x19,0xf3,0xf5,0x24,0x54,0x14,0xd1,0x15,0xb1,0x43,
1221 0x12,0xa4,0x5f,0xd4,0xec,0xfc,0xcd,0x09
1222 };
1223
Andy Polyakov03e389c2011-09-14 20:48:49 +00001224__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001225static const unsigned char sha256_pr_entropyinputpr2[] =
1226 {
1227 0x0e,0xeb,0x1f,0xd7,0xfc,0xd1,0x9d,0xd4,0x05,0x36,0x8b,0xb2,
1228 0xfb,0xe4,0xf4,0x51,0x0c,0x87,0x9b,0x02,0x44,0xd5,0x92,0x4d,
1229 0x44,0xfe,0x1a,0x03,0x43,0x56,0xbd,0x86
1230 };
1231
Andy Polyakov03e389c2011-09-14 20:48:49 +00001232__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001233static const unsigned char sha256_pr_returnedbits[] =
1234 {
1235 0x02,0xaa,0xb6,0x1d,0x7e,0x2a,0x40,0x03,0x69,0x2d,0x49,0xa3,
1236 0x41,0xe7,0x44,0x0b,0xaf,0x7b,0x85,0xe4,0x5f,0x53,0x3b,0x64,
1237 0xbc,0x89,0xc8,0x82,0xd4,0x78,0x37,0xa2
1238 };
1239
1240
1241/* SHA-256 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001242__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001243static const unsigned char sha256_entropyinput[] =
1244 {
1245 0x5b,0x1b,0xec,0x4d,0xa9,0x38,0x74,0x5a,0x34,0x0b,0x7b,0xc5,
1246 0xe5,0xd7,0x66,0x7c,0xbc,0x82,0xb9,0x0e,0x2d,0x1f,0x92,0xd7,
1247 0xc1,0xbc,0x67,0x69,0xec,0x6b,0x03,0x3c
1248 };
1249
Andy Polyakov03e389c2011-09-14 20:48:49 +00001250__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001251static const unsigned char sha256_nonce[] =
1252 {
1253 0xa4,0x0c,0xd8,0x9c,0x61,0xd8,0xc3,0x54,0xfe,0x53,0xc9,0xe5,
1254 0x5d,0x6f,0x6d,0x35
1255 };
1256
Andy Polyakov03e389c2011-09-14 20:48:49 +00001257__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001258static const unsigned char sha256_personalizationstring[] =
1259 {
1260 0x22,0x5e,0x62,0x93,0x42,0x83,0x78,0x24,0xd8,0x40,0x8c,0xde,
1261 0x6f,0xf9,0xa4,0x7a,0xc5,0xa7,0x3b,0x88,0xa3,0xee,0x42,0x20,
1262 0xfd,0x61,0x56,0xc6,0x4c,0x13,0x41,0x9c
1263 };
1264
Andy Polyakov03e389c2011-09-14 20:48:49 +00001265__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001266static const unsigned char sha256_additionalinput[] =
1267 {
1268 0xbf,0x74,0x5b,0xf6,0xc5,0x64,0x5e,0x99,0x34,0x8f,0xbc,0xa4,
1269 0xe2,0xbd,0xd8,0x85,0x26,0x37,0xea,0xba,0x4f,0xf2,0x9a,0x9a,
1270 0x66,0xfc,0xdf,0x63,0x26,0x26,0x19,0x87
1271 };
1272
Andy Polyakov03e389c2011-09-14 20:48:49 +00001273__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001274static const unsigned char sha256_int_returnedbits[] =
1275 {
1276 0xb3,0xc6,0x07,0x07,0xd6,0x75,0xf6,0x2b,0xd6,0x21,0x96,0xf1,
1277 0xae,0xdb,0x2b,0xac,0x25,0x2a,0xae,0xae,0x41,0x72,0x03,0x5e,
1278 0xbf,0xd3,0x64,0xbc,0x59,0xf9,0xc0,0x76
1279 };
1280
Andy Polyakov03e389c2011-09-14 20:48:49 +00001281__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001282static const unsigned char sha256_entropyinputreseed[] =
1283 {
1284 0xbf,0x20,0x33,0x56,0x29,0xa8,0x37,0x04,0x1f,0x78,0x34,0x3d,
1285 0x81,0x2a,0xc9,0x86,0xc6,0x7a,0x2f,0x88,0x5e,0xd5,0xbe,0x34,
1286 0x46,0x20,0xa4,0x35,0xeb,0xc7,0xe2,0x9d
1287 };
1288
Andy Polyakov03e389c2011-09-14 20:48:49 +00001289__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001290static const unsigned char sha256_additionalinputreseed[] =
1291 {
1292 0x9b,0xae,0x2d,0x2d,0x61,0xa4,0x89,0xeb,0x43,0x46,0xa7,0xda,
1293 0xef,0x40,0xca,0x4a,0x99,0x11,0x41,0xdc,0x5c,0x94,0xe9,0xac,
1294 0xd4,0xd0,0xe6,0xbd,0xfb,0x03,0x9c,0xa8
1295 };
1296
Andy Polyakov03e389c2011-09-14 20:48:49 +00001297__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001298static const unsigned char sha256_additionalinput2[] =
1299 {
1300 0x23,0xaa,0x0c,0xbd,0x28,0x33,0xe2,0x51,0xfc,0x71,0xd2,0x15,
1301 0x1f,0x76,0xfd,0x0d,0xe0,0xb7,0xb5,0x84,0x75,0x5b,0xbe,0xf3,
1302 0x5c,0xca,0xc5,0x30,0xf2,0x75,0x1f,0xda
1303 };
1304
Andy Polyakov03e389c2011-09-14 20:48:49 +00001305__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001306static const unsigned char sha256_returnedbits[] =
1307 {
1308 0x90,0x3c,0xc1,0x10,0x8c,0x12,0x01,0xc6,0xa6,0x3a,0x0f,0x4d,
1309 0xb6,0x3a,0x4f,0x41,0x9c,0x61,0x75,0x84,0xe9,0x74,0x75,0xfd,
1310 0xfe,0xf2,0x1f,0x43,0xd8,0x5e,0x24,0xa3
1311 };
1312
1313
1314/* SHA-384 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001315__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001316static const unsigned char sha384_pr_entropyinput[] =
1317 {
1318 0x71,0x9d,0xb2,0x5a,0x71,0x6d,0x04,0xe9,0x1e,0xc7,0x92,0x24,
1319 0x6e,0x12,0x33,0xa9,0x52,0x64,0x31,0xef,0x71,0xeb,0x22,0x55,
1320 0x28,0x97,0x06,0x6a,0xc0,0x0c,0xa0,0x7e
1321 };
1322
Andy Polyakov03e389c2011-09-14 20:48:49 +00001323__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001324static const unsigned char sha384_pr_nonce[] =
1325 {
1326 0xf5,0x0d,0xfa,0xb0,0xec,0x6a,0x7c,0xd6,0xbd,0x9b,0x05,0xfd,
1327 0x38,0x3e,0x2e,0x56
1328 };
1329
Andy Polyakov03e389c2011-09-14 20:48:49 +00001330__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001331static const unsigned char sha384_pr_personalizationstring[] =
1332 {
1333 0x74,0xac,0x7e,0x6d,0xb1,0xa4,0xe7,0x21,0xd1,0x1e,0x6e,0x96,
1334 0x6d,0x4d,0x53,0x46,0x82,0x96,0x6e,0xcf,0xaa,0x81,0x8d,0x7d,
1335 0x9e,0xe1,0x0f,0x15,0xea,0x41,0xbf,0xe3
1336 };
1337
Andy Polyakov03e389c2011-09-14 20:48:49 +00001338__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001339static const unsigned char sha384_pr_additionalinput[] =
1340 {
1341 0xda,0x95,0xd4,0xd0,0xb8,0x11,0xd3,0x49,0x27,0x5d,0xa9,0x39,
1342 0x68,0xf3,0xa8,0xe9,0x5d,0x19,0x8a,0x2b,0x66,0xe8,0x69,0x06,
1343 0x7c,0x9e,0x03,0xa1,0x8b,0x26,0x2d,0x6e
1344 };
1345
Andy Polyakov03e389c2011-09-14 20:48:49 +00001346__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001347static const unsigned char sha384_pr_entropyinputpr[] =
1348 {
1349 0x49,0xdf,0x44,0x00,0xe4,0x1c,0x75,0x0b,0x26,0x5a,0x59,0x64,
1350 0x1f,0x4e,0xb1,0xb2,0x13,0xf1,0x22,0x4e,0xb4,0x6d,0x9a,0xcc,
1351 0xa0,0x48,0xe6,0xcf,0x1d,0xd1,0x92,0x0d
1352 };
1353
Andy Polyakov03e389c2011-09-14 20:48:49 +00001354__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001355static const unsigned char sha384_pr_int_returnedbits[] =
1356 {
1357 0xc8,0x52,0xae,0xbf,0x04,0x3c,0x27,0xb7,0x78,0x18,0xaa,0x8f,
1358 0xff,0xcf,0xa4,0xf1,0xcc,0xe7,0x68,0xfa,0x22,0xa2,0x13,0x45,
1359 0xe8,0xdd,0x87,0xe6,0xf2,0x6e,0xdd,0xc7,0x52,0x90,0x9f,0x7b,
1360 0xfa,0x61,0x2d,0x9d,0x9e,0xcf,0x98,0xac,0x52,0x40,0xce,0xaf
1361 };
1362
Andy Polyakov03e389c2011-09-14 20:48:49 +00001363__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001364static const unsigned char sha384_pr_additionalinput2[] =
1365 {
1366 0x61,0x7c,0x03,0x9a,0x3e,0x50,0x57,0x60,0xc5,0x83,0xc9,0xb2,
1367 0xd1,0x87,0x85,0x66,0x92,0x5d,0x84,0x0e,0x53,0xfb,0x70,0x03,
1368 0x72,0xfd,0xba,0xae,0x9c,0x8f,0xf8,0x18
1369 };
1370
Andy Polyakov03e389c2011-09-14 20:48:49 +00001371__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001372static const unsigned char sha384_pr_entropyinputpr2[] =
1373 {
1374 0xf8,0xeb,0x89,0xb1,0x8d,0x78,0xbe,0x21,0xe0,0xbb,0x9d,0xb7,
1375 0x95,0x0e,0xd9,0x46,0x0c,0x8c,0xe2,0x63,0xb7,0x9d,0x67,0x90,
1376 0xbd,0xc7,0x0b,0xa5,0xce,0xb2,0x65,0x81
1377 };
1378
Andy Polyakov03e389c2011-09-14 20:48:49 +00001379__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001380static const unsigned char sha384_pr_returnedbits[] =
1381 {
1382 0xe6,0x9f,0xfe,0x68,0xd6,0xb5,0x79,0xf1,0x06,0x5f,0xa3,0xbb,
1383 0x23,0x85,0xd8,0xf0,0x29,0x5a,0x68,0x9e,0xf5,0xf4,0xa6,0x12,
1384 0xe0,0x9a,0xe2,0xac,0x00,0x1d,0x98,0x26,0xfc,0x53,0x95,0x53,
1385 0xe4,0x3e,0x17,0xd5,0x08,0x0b,0x70,0x3d,0x67,0x99,0xac,0x66
1386 };
1387
1388
1389/* SHA-384 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001390__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001391static const unsigned char sha384_entropyinput[] =
1392 {
1393 0x07,0x15,0x27,0x2a,0xaf,0x74,0x24,0x37,0xbc,0xd5,0x14,0x69,
1394 0xce,0x11,0xff,0xa2,0x6b,0xb8,0x05,0x67,0x34,0xf8,0xbd,0x6d,
1395 0x6a,0xcc,0xcd,0x60,0xa3,0x68,0xca,0xf4
1396 };
1397
Andy Polyakov03e389c2011-09-14 20:48:49 +00001398__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001399static const unsigned char sha384_nonce[] =
1400 {
1401 0x70,0x17,0xc2,0x5b,0x5d,0x22,0x0b,0x06,0x15,0x54,0x78,0x77,
1402 0x44,0xaf,0x2f,0x09
1403 };
1404
Andy Polyakov03e389c2011-09-14 20:48:49 +00001405__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001406static const unsigned char sha384_personalizationstring[] =
1407 {
1408 0x89,0x39,0x28,0xb0,0x60,0xeb,0x3d,0xdc,0x55,0x75,0x86,0xeb,
1409 0xae,0xa2,0x8f,0xbc,0x1b,0x75,0xd4,0xe1,0x0f,0xaa,0x38,0xca,
1410 0x62,0x8b,0xcb,0x2c,0x26,0xf6,0xbc,0xb1
1411 };
1412
Andy Polyakov03e389c2011-09-14 20:48:49 +00001413__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001414static const unsigned char sha384_additionalinput[] =
1415 {
1416 0x30,0x2b,0x42,0x35,0xef,0xda,0x40,0x55,0x28,0xc6,0x95,0xfb,
1417 0x54,0x01,0x62,0xd7,0x87,0x14,0x48,0x6d,0x90,0x4c,0xa9,0x02,
1418 0x54,0x40,0x22,0xc8,0x66,0xa5,0x48,0x48
1419 };
1420
Andy Polyakov03e389c2011-09-14 20:48:49 +00001421__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001422static const unsigned char sha384_int_returnedbits[] =
1423 {
1424 0x82,0xc4,0xa1,0x9c,0x21,0xd2,0xe7,0xa5,0xa6,0xf6,0x5f,0x04,
1425 0x5c,0xc7,0x31,0x9d,0x8d,0x59,0x74,0x50,0x19,0x89,0x2f,0x63,
1426 0xd5,0xb7,0x7e,0xeb,0x15,0xe3,0x70,0x83,0xa1,0x24,0x59,0xfa,
1427 0x2c,0x56,0xf6,0x88,0x3a,0x92,0x93,0xa1,0xfb,0x79,0xc1,0x7a
1428 };
1429
Andy Polyakov03e389c2011-09-14 20:48:49 +00001430__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001431static const unsigned char sha384_entropyinputreseed[] =
1432 {
1433 0x39,0xa6,0xe8,0x5c,0x82,0x17,0x71,0x26,0x57,0x4f,0x9f,0xc2,
1434 0x55,0xff,0x5c,0x9b,0x53,0x1a,0xd1,0x5f,0xbc,0x62,0xe4,0x27,
1435 0x2d,0x32,0xf0,0xe4,0x52,0x8c,0xc5,0x0c
1436 };
1437
Andy Polyakov03e389c2011-09-14 20:48:49 +00001438__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001439static const unsigned char sha384_additionalinputreseed[] =
1440 {
1441 0x8d,0xcb,0x8d,0xce,0x08,0xea,0x80,0xe8,0x9b,0x61,0xa8,0x0f,
1442 0xaf,0x49,0x20,0x9e,0x74,0xcb,0x57,0x80,0x42,0xb0,0x84,0x5e,
1443 0x30,0x2a,0x67,0x08,0xf4,0xe3,0x40,0x22
1444 };
1445
Andy Polyakov03e389c2011-09-14 20:48:49 +00001446__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001447static const unsigned char sha384_additionalinput2[] =
1448 {
1449 0x7c,0x8f,0xc2,0xae,0x22,0x4a,0xd6,0xf6,0x05,0xa4,0x7a,0xea,
1450 0xbb,0x25,0xd0,0xb7,0x5a,0xd6,0xcf,0x9d,0xf3,0x6c,0xe2,0xb2,
1451 0x4e,0xb4,0xbd,0xf4,0xe5,0x40,0x80,0x94
1452 };
1453
Andy Polyakov03e389c2011-09-14 20:48:49 +00001454__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001455static const unsigned char sha384_returnedbits[] =
1456 {
1457 0x9e,0x7e,0xfb,0x59,0xbb,0xaa,0x3c,0xf7,0xe1,0xf8,0x76,0xdd,
1458 0x63,0x5f,0xaf,0x23,0xd6,0x64,0x61,0xc0,0x9a,0x09,0x47,0xc9,
1459 0x33,0xdf,0x6d,0x55,0x91,0x34,0x79,0x70,0xc4,0x99,0x6e,0x54,
1460 0x09,0x64,0x21,0x1a,0xbd,0x1e,0x80,0x40,0x34,0xad,0xfa,0xd7
1461 };
1462
1463
1464/* SHA-512 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001465__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001466static const unsigned char sha512_pr_entropyinput[] =
1467 {
1468 0x13,0xf7,0x61,0x75,0x65,0x28,0xa2,0x59,0x13,0x5a,0x4a,0x4f,
1469 0x56,0x60,0x8c,0x53,0x7d,0xb0,0xbd,0x06,0x4f,0xed,0xcc,0xd2,
1470 0xa2,0xb5,0xfd,0x5b,0x3a,0xab,0xec,0x28
1471 };
1472
Andy Polyakov03e389c2011-09-14 20:48:49 +00001473__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001474static const unsigned char sha512_pr_nonce[] =
1475 {
1476 0xbe,0xa3,0x91,0x93,0x1d,0xc3,0x31,0x3a,0x23,0x33,0x50,0x67,
1477 0x88,0xc7,0xa2,0xc4
1478 };
1479
Andy Polyakov03e389c2011-09-14 20:48:49 +00001480__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001481static const unsigned char sha512_pr_personalizationstring[] =
1482 {
1483 0x1f,0x59,0x4d,0x7b,0xe6,0x46,0x91,0x48,0xc1,0x25,0xfa,0xff,
1484 0x89,0x12,0x77,0x35,0xdf,0x3e,0xf4,0x80,0x5f,0xd9,0xb0,0x07,
1485 0x22,0x41,0xdd,0x48,0x78,0x6b,0x77,0x2b
1486 };
1487
Andy Polyakov03e389c2011-09-14 20:48:49 +00001488__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001489static const unsigned char sha512_pr_additionalinput[] =
1490 {
1491 0x30,0xff,0x63,0x6f,0xac,0xd9,0x84,0x39,0x6f,0xe4,0x99,0xce,
1492 0x91,0x7d,0x7e,0xc8,0x58,0xf2,0x12,0xc3,0xb6,0xad,0xda,0x22,
1493 0x04,0xa0,0xd2,0x21,0xfe,0xf2,0x95,0x1d
1494 };
1495
Andy Polyakov03e389c2011-09-14 20:48:49 +00001496__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001497static const unsigned char sha512_pr_entropyinputpr[] =
1498 {
1499 0x64,0x54,0x13,0xec,0x4f,0x77,0xda,0xb2,0x92,0x2e,0x52,0x80,
1500 0x11,0x10,0xc2,0xf8,0xe6,0xa7,0xcd,0x4b,0xfc,0x32,0x2e,0x9e,
1501 0xeb,0xbb,0xb1,0xbf,0x15,0x5c,0x73,0x08
1502 };
1503
Andy Polyakov03e389c2011-09-14 20:48:49 +00001504__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001505static const unsigned char sha512_pr_int_returnedbits[] =
1506 {
1507 0xef,0x1e,0xdc,0x0a,0xa4,0x36,0x91,0x9c,0x3d,0x27,0x97,0x50,
1508 0x8d,0x36,0x29,0x8d,0xce,0x6a,0x0c,0xf7,0x21,0xc0,0x91,0xae,
1509 0x0c,0x96,0x72,0xbd,0x52,0x81,0x58,0xfc,0x6d,0xe5,0xf7,0xa5,
1510 0xfd,0x5d,0xa7,0x58,0x68,0xc8,0x99,0x58,0x8e,0xc8,0xce,0x95,
1511 0x01,0x7d,0xff,0xa4,0xc8,0xf7,0x63,0xfe,0x5f,0x69,0x83,0x53,
1512 0xe2,0xc6,0x8b,0xc3
1513 };
1514
Andy Polyakov03e389c2011-09-14 20:48:49 +00001515__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001516static const unsigned char sha512_pr_additionalinput2[] =
1517 {
1518 0xe6,0x9b,0xc4,0x88,0x34,0xca,0xea,0x29,0x2f,0x98,0x05,0xa4,
1519 0xd3,0xc0,0x7b,0x11,0xe8,0xbb,0x75,0xf2,0xbd,0x29,0xb7,0x40,
1520 0x25,0x7f,0xc1,0xb7,0xb1,0xf1,0x25,0x61
1521 };
1522
Andy Polyakov03e389c2011-09-14 20:48:49 +00001523__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001524static const unsigned char sha512_pr_entropyinputpr2[] =
1525 {
1526 0x23,0x6d,0xff,0xde,0xfb,0xd1,0xba,0x33,0x18,0xe6,0xbe,0xb5,
1527 0x48,0x77,0x6d,0x7f,0xa7,0xe1,0x4d,0x48,0x1e,0x3c,0xa7,0x34,
1528 0x1a,0xc8,0x60,0xdb,0x8f,0x99,0x15,0x99
1529 };
1530
Andy Polyakov03e389c2011-09-14 20:48:49 +00001531__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001532static const unsigned char sha512_pr_returnedbits[] =
1533 {
1534 0x70,0x27,0x31,0xdb,0x92,0x70,0x21,0xfe,0x16,0xb6,0xc8,0x51,
1535 0x34,0x87,0x65,0xd0,0x4e,0xfd,0xfe,0x68,0xec,0xac,0xdc,0x93,
1536 0x41,0x38,0x92,0x90,0xb4,0x94,0xf9,0x0d,0xa4,0xf7,0x4e,0x80,
1537 0x92,0x67,0x48,0x40,0xa7,0x08,0xc7,0xbc,0x66,0x00,0xfd,0xf7,
1538 0x4c,0x8b,0x17,0x6e,0xd1,0x8f,0x9b,0xf3,0x6f,0xf6,0x34,0xdd,
1539 0x67,0xf7,0x68,0xdd
1540 };
1541
1542
1543/* SHA-512 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001544__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001545static const unsigned char sha512_entropyinput[] =
1546 {
1547 0xb6,0x0b,0xb7,0xbc,0x84,0x56,0xf6,0x12,0xaf,0x45,0x67,0x17,
1548 0x7c,0xd1,0xb2,0x78,0x2b,0xa0,0xf2,0xbe,0xb6,0x6d,0x8b,0x56,
1549 0xc6,0xbc,0x4d,0xe1,0xf7,0xbe,0xce,0xbd
1550 };
1551
Andy Polyakov03e389c2011-09-14 20:48:49 +00001552__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001553static const unsigned char sha512_nonce[] =
1554 {
1555 0x9d,0xed,0xc0,0xe5,0x5a,0x98,0x6a,0xcb,0x51,0x7d,0x76,0x31,
1556 0x5a,0x64,0xf0,0xf7
1557 };
1558
Andy Polyakov03e389c2011-09-14 20:48:49 +00001559__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001560static const unsigned char sha512_personalizationstring[] =
1561 {
1562 0xc2,0x6d,0xa3,0xc3,0x06,0x74,0xe5,0x01,0x5c,0x10,0x17,0xc7,
1563 0xaf,0x83,0x9d,0x59,0x8d,0x2d,0x29,0x38,0xc5,0x59,0x70,0x8b,
1564 0x46,0x48,0x2d,0xcf,0x36,0x7d,0x59,0xc0
1565 };
1566
Andy Polyakov03e389c2011-09-14 20:48:49 +00001567__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001568static const unsigned char sha512_additionalinput[] =
1569 {
1570 0xec,0x8c,0xd4,0xf7,0x61,0x6e,0x0d,0x95,0x79,0xb7,0x28,0xad,
1571 0x5f,0x69,0x74,0x5f,0x2d,0x36,0x06,0x8a,0x6b,0xac,0x54,0x97,
1572 0xc4,0xa1,0x12,0x85,0x0a,0xdf,0x4b,0x34
1573 };
1574
Andy Polyakov03e389c2011-09-14 20:48:49 +00001575__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001576static const unsigned char sha512_int_returnedbits[] =
1577 {
1578 0x84,0x2f,0x1f,0x68,0x6a,0xa3,0xad,0x1e,0xfb,0xf4,0x15,0xbd,
1579 0xde,0x38,0xd4,0x30,0x80,0x51,0xe9,0xd3,0xc7,0x20,0x88,0xe9,
1580 0xf5,0xcc,0xdf,0x57,0x5c,0x47,0x2f,0x57,0x3c,0x5f,0x13,0x56,
1581 0xcc,0xc5,0x4f,0x84,0xf8,0x10,0x41,0xd5,0x7e,0x58,0x6e,0x19,
1582 0x19,0x9e,0xaf,0xc2,0x22,0x58,0x41,0x50,0x79,0xc2,0xd8,0x04,
1583 0x28,0xd4,0x39,0x9a
1584 };
1585
Andy Polyakov03e389c2011-09-14 20:48:49 +00001586__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001587static const unsigned char sha512_entropyinputreseed[] =
1588 {
1589 0xfa,0x7f,0x46,0x51,0x83,0x62,0x98,0x16,0x9a,0x19,0xa2,0x49,
1590 0xa9,0xe6,0x4a,0xd8,0x85,0xe7,0xd4,0x3b,0x2c,0x82,0xc5,0x82,
1591 0xbf,0x11,0xf9,0x9e,0xbc,0xd0,0x01,0xee
1592 };
1593
Andy Polyakov03e389c2011-09-14 20:48:49 +00001594__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001595static const unsigned char sha512_additionalinputreseed[] =
1596 {
1597 0xb9,0x12,0xe0,0x4f,0xf7,0xa7,0xc4,0xd8,0xd0,0x8e,0x99,0x29,
1598 0x7c,0x9a,0xe9,0xcf,0xc4,0x6c,0xf8,0xc3,0xa7,0x41,0x83,0xd6,
1599 0x2e,0xfa,0xb8,0x5e,0x8e,0x6b,0x78,0x20
1600 };
1601
Andy Polyakov03e389c2011-09-14 20:48:49 +00001602__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001603static const unsigned char sha512_additionalinput2[] =
1604 {
1605 0xd7,0x07,0x52,0xb9,0x83,0x2c,0x03,0x71,0xee,0xc9,0xc0,0x85,
1606 0xe1,0x57,0xb2,0xcd,0x3a,0xf0,0xc9,0x34,0x24,0x41,0x1c,0x42,
1607 0x99,0xb2,0x84,0xe9,0x17,0xd2,0x76,0x92
1608 };
1609
Andy Polyakov03e389c2011-09-14 20:48:49 +00001610__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001611static const unsigned char sha512_returnedbits[] =
1612 {
1613 0x36,0x17,0x5d,0x98,0x2b,0x65,0x25,0x8e,0xc8,0x29,0xdf,0x27,
1614 0x05,0x36,0x26,0x12,0x8a,0x68,0x74,0x27,0x37,0xd4,0x7f,0x32,
1615 0xb1,0x12,0xd6,0x85,0x83,0xeb,0x2e,0xa0,0xed,0x4b,0xb5,0x7b,
1616 0x6f,0x39,0x3c,0x71,0x77,0x02,0x12,0xcc,0x2c,0x3a,0x8e,0x63,
1617 0xdf,0x4a,0xbd,0x6f,0x6e,0x2e,0xed,0x0a,0x85,0xa5,0x2f,0xa2,
1618 0x68,0xde,0x42,0xb5
1619 };
1620
1621
1622/* HMAC SHA-1 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001623__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001624static const unsigned char hmac_sha1_pr_entropyinput[] =
1625 {
1626 0x26,0x5f,0x36,0x14,0xff,0x3d,0x83,0xfa,0x73,0x5e,0x75,0xdc,
1627 0x2c,0x18,0x17,0x1b
1628 };
1629
Andy Polyakov03e389c2011-09-14 20:48:49 +00001630__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001631static const unsigned char hmac_sha1_pr_nonce[] =
1632 {
1633 0xc8,0xe3,0x57,0xa5,0x7b,0x74,0x86,0x6e
1634 };
1635
Andy Polyakov03e389c2011-09-14 20:48:49 +00001636__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001637static const unsigned char hmac_sha1_pr_personalizationstring[] =
1638 {
1639 0x6e,0xdb,0x0d,0xfe,0x7d,0xac,0x79,0xd0,0xa5,0x3a,0x48,0x85,
1640 0x80,0xe2,0x7f,0x2a
1641 };
1642
Andy Polyakov03e389c2011-09-14 20:48:49 +00001643__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001644static const unsigned char hmac_sha1_pr_additionalinput[] =
1645 {
1646 0x31,0xcd,0x5e,0x43,0xdc,0xfb,0x7a,0x79,0xca,0x88,0xde,0x1f,
1647 0xd7,0xbb,0x42,0x09
1648 };
1649
Andy Polyakov03e389c2011-09-14 20:48:49 +00001650__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001651static const unsigned char hmac_sha1_pr_entropyinputpr[] =
1652 {
1653 0x7c,0x23,0x95,0x38,0x00,0x95,0xc1,0x78,0x1f,0x8f,0xd7,0x63,
1654 0x23,0x87,0x2a,0xed
1655 };
1656
Andy Polyakov03e389c2011-09-14 20:48:49 +00001657__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001658static const unsigned char hmac_sha1_pr_int_returnedbits[] =
1659 {
1660 0xbb,0x34,0xe7,0x93,0xa3,0x02,0x2c,0x4a,0xd0,0x89,0xda,0x7f,
1661 0xed,0xf4,0x4c,0xde,0x17,0xec,0xe5,0x6c
1662 };
1663
Andy Polyakov03e389c2011-09-14 20:48:49 +00001664__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001665static const unsigned char hmac_sha1_pr_additionalinput2[] =
1666 {
1667 0x49,0xbc,0x2d,0x2c,0xb7,0x32,0xcb,0x20,0xdf,0xf5,0x77,0x58,
1668 0xa0,0x4b,0x93,0x6e
1669 };
1670
Andy Polyakov03e389c2011-09-14 20:48:49 +00001671__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001672static const unsigned char hmac_sha1_pr_entropyinputpr2[] =
1673 {
1674 0x3c,0xaa,0xb0,0x21,0x42,0xb0,0xdd,0x34,0xf0,0x16,0x7f,0x0c,
1675 0x0f,0xff,0x2e,0xaf
1676 };
1677
Andy Polyakov03e389c2011-09-14 20:48:49 +00001678__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001679static const unsigned char hmac_sha1_pr_returnedbits[] =
1680 {
1681 0x8e,0xcb,0xa3,0x64,0xb2,0xb8,0x33,0x6c,0x64,0x3b,0x78,0x16,
1682 0x99,0x35,0xc8,0x30,0xcb,0x3e,0xa0,0xd8
1683 };
1684
1685
1686/* HMAC SHA-1 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001687__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001688static const unsigned char hmac_sha1_entropyinput[] =
1689 {
1690 0x32,0x9a,0x2a,0x87,0x7b,0x89,0x7c,0xf6,0xcb,0x95,0xd5,0x40,
1691 0x17,0xfe,0x47,0x70
1692 };
1693
Andy Polyakov03e389c2011-09-14 20:48:49 +00001694__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001695static const unsigned char hmac_sha1_nonce[] =
1696 {
1697 0x16,0xd8,0xe0,0xc7,0x52,0xcf,0x4a,0x25
1698 };
1699
Andy Polyakov03e389c2011-09-14 20:48:49 +00001700__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001701static const unsigned char hmac_sha1_personalizationstring[] =
1702 {
1703 0x35,0x35,0xa9,0xa5,0x40,0xbe,0x9b,0xd1,0x56,0xdd,0x44,0x00,
1704 0x72,0xf7,0xd3,0x5e
1705 };
1706
Andy Polyakov03e389c2011-09-14 20:48:49 +00001707__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001708static const unsigned char hmac_sha1_additionalinput[] =
1709 {
1710 0x1b,0x2c,0x84,0x2d,0x4a,0x89,0x8f,0x69,0x19,0xf1,0xf3,0xdb,
1711 0xbb,0xe3,0xaa,0xea
1712 };
1713
Andy Polyakov03e389c2011-09-14 20:48:49 +00001714__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001715static const unsigned char hmac_sha1_int_returnedbits[] =
1716 {
1717 0xcf,0xfa,0x7d,0x72,0x0f,0xe6,0xc7,0x96,0xa0,0x69,0x31,0x11,
1718 0x9b,0x0b,0x1a,0x20,0x1f,0x3f,0xaa,0xd1
1719 };
1720
Andy Polyakov03e389c2011-09-14 20:48:49 +00001721__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001722static const unsigned char hmac_sha1_entropyinputreseed[] =
1723 {
1724 0x90,0x75,0x15,0x04,0x95,0xf1,0xba,0x81,0x0c,0x37,0x94,0x6f,
1725 0x86,0x52,0x6d,0x9c
1726 };
1727
Andy Polyakov03e389c2011-09-14 20:48:49 +00001728__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001729static const unsigned char hmac_sha1_additionalinputreseed[] =
1730 {
1731 0x5b,0x40,0xba,0x5f,0x17,0x70,0xf0,0x4b,0xdf,0xc9,0x97,0x92,
1732 0x79,0xc5,0x82,0x28
1733 };
1734
Andy Polyakov03e389c2011-09-14 20:48:49 +00001735__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001736static const unsigned char hmac_sha1_additionalinput2[] =
1737 {
1738 0x97,0xc8,0x80,0x90,0xb3,0xaa,0x6e,0x60,0xea,0x83,0x7a,0xe3,
1739 0x8a,0xca,0xa4,0x7f
1740 };
1741
Andy Polyakov03e389c2011-09-14 20:48:49 +00001742__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001743static const unsigned char hmac_sha1_returnedbits[] =
1744 {
1745 0x90,0xbd,0x05,0x56,0x6d,0xb5,0x22,0xd5,0xb9,0x5a,0x29,0x2d,
1746 0xe9,0x0b,0xe1,0xac,0xde,0x27,0x0b,0xb0
1747 };
1748
1749
1750/* HMAC SHA-224 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001751__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001752static const unsigned char hmac_sha224_pr_entropyinput[] =
1753 {
1754 0x17,0x32,0x2b,0x2e,0x6f,0x1b,0x9c,0x6d,0x31,0xe0,0x34,0x07,
1755 0xcf,0xed,0xf6,0xb6,0x5a,0x76,0x4c,0xbc,0x62,0x85,0x01,0x90
1756 };
1757
Andy Polyakov03e389c2011-09-14 20:48:49 +00001758__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001759static const unsigned char hmac_sha224_pr_nonce[] =
1760 {
1761 0x38,0xbf,0x5f,0x20,0xb3,0x68,0x2f,0x43,0x61,0x05,0x8f,0x23
1762 };
1763
Andy Polyakov03e389c2011-09-14 20:48:49 +00001764__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001765static const unsigned char hmac_sha224_pr_personalizationstring[] =
1766 {
1767 0xc0,0xc9,0x45,0xac,0x8d,0x27,0x77,0x08,0x0b,0x17,0x6d,0xed,
1768 0xc1,0x7d,0xd5,0x07,0x9d,0x6e,0xf8,0x23,0x2a,0x22,0x13,0xbd
1769 };
1770
Andy Polyakov03e389c2011-09-14 20:48:49 +00001771__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001772static const unsigned char hmac_sha224_pr_additionalinput[] =
1773 {
1774 0xa4,0x3c,0xe7,0x3b,0xea,0x19,0x45,0x32,0xc2,0x83,0x6d,0x21,
1775 0x8a,0xc0,0xee,0x67,0x45,0xde,0x13,0x7d,0x9d,0x61,0x00,0x3b
1776 };
1777
Andy Polyakov03e389c2011-09-14 20:48:49 +00001778__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001779static const unsigned char hmac_sha224_pr_entropyinputpr[] =
1780 {
1781 0x15,0x05,0x74,0x4a,0x7f,0x8d,0x5c,0x60,0x16,0xe5,0x7b,0xad,
1782 0xf5,0x41,0x8f,0x55,0x60,0xc4,0x09,0xee,0x1e,0x11,0x81,0xab
1783 };
1784
Andy Polyakov03e389c2011-09-14 20:48:49 +00001785__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001786static const unsigned char hmac_sha224_pr_int_returnedbits[] =
1787 {
1788 0x6f,0xf5,0x9a,0xe2,0x54,0x53,0x30,0x3d,0x5a,0x27,0x29,0x38,
1789 0x27,0xf2,0x0d,0x05,0xe9,0x26,0xcb,0x16,0xc3,0x51,0x5f,0x13,
1790 0x41,0xfe,0x99,0xf2
1791 };
1792
Andy Polyakov03e389c2011-09-14 20:48:49 +00001793__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001794static const unsigned char hmac_sha224_pr_additionalinput2[] =
1795 {
1796 0x73,0x81,0x88,0x84,0x8f,0xed,0x6f,0x10,0x9f,0x93,0xbf,0x17,
1797 0x35,0x7c,0xef,0xd5,0x8d,0x26,0xa6,0x7a,0xe8,0x09,0x36,0x4f
1798 };
1799
Andy Polyakov03e389c2011-09-14 20:48:49 +00001800__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001801static const unsigned char hmac_sha224_pr_entropyinputpr2[] =
1802 {
1803 0xe6,0xcf,0xcf,0x7e,0x12,0xe5,0x43,0xd2,0x38,0xd8,0x24,0x6f,
1804 0x5a,0x37,0x68,0xbf,0x4f,0xa0,0xff,0xd5,0x61,0x8a,0x93,0xe0
1805 };
1806
Andy Polyakov03e389c2011-09-14 20:48:49 +00001807__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001808static const unsigned char hmac_sha224_pr_returnedbits[] =
1809 {
1810 0xaf,0xf9,0xd8,0x19,0x91,0x30,0x82,0x6f,0xa9,0x1e,0x9d,0xd7,
1811 0xf3,0x50,0xe0,0xc7,0xd5,0x64,0x96,0x7d,0x4c,0x4d,0x78,0x03,
1812 0x6d,0xd8,0x9e,0x72
1813 };
1814
1815
1816/* HMAC SHA-224 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001817__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001818static const unsigned char hmac_sha224_entropyinput[] =
1819 {
1820 0x11,0x82,0xfd,0xd9,0x42,0xf4,0xfa,0xc8,0xf2,0x41,0xe6,0x54,
1821 0x01,0xae,0x22,0x6e,0xc6,0xaf,0xaf,0xd0,0xa6,0xb2,0xe2,0x6d
1822 };
1823
Andy Polyakov03e389c2011-09-14 20:48:49 +00001824__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001825static const unsigned char hmac_sha224_nonce[] =
1826 {
1827 0xa9,0x48,0xd7,0x92,0x39,0x7e,0x2a,0xdc,0x30,0x1f,0x0e,0x2b
1828 };
1829
Andy Polyakov03e389c2011-09-14 20:48:49 +00001830__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001831static const unsigned char hmac_sha224_personalizationstring[] =
1832 {
1833 0x11,0xd5,0xf4,0xbd,0x67,0x8c,0x31,0xcf,0xa3,0x3f,0x1e,0x6b,
1834 0xa8,0x07,0x02,0x0b,0xc8,0x2e,0x6c,0x64,0x41,0x5b,0xc8,0x37
1835 };
1836
Andy Polyakov03e389c2011-09-14 20:48:49 +00001837__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001838static const unsigned char hmac_sha224_additionalinput[] =
1839 {
1840 0x68,0x18,0xc2,0x06,0xeb,0x3e,0x04,0x95,0x44,0x5e,0xfb,0xe6,
1841 0x41,0xc1,0x5c,0xcc,0x40,0x2f,0xb7,0xd2,0x0f,0xf3,0x6b,0xe7
1842 };
1843
Andy Polyakov03e389c2011-09-14 20:48:49 +00001844__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001845static const unsigned char hmac_sha224_int_returnedbits[] =
1846 {
1847 0x7f,0x45,0xc7,0x5d,0x32,0xe6,0x17,0x60,0xba,0xdc,0xb8,0x42,
1848 0x1b,0x9c,0xf1,0xfa,0x3b,0x4d,0x29,0x54,0xc6,0x90,0xff,0x5c,
1849 0xcd,0xd6,0xa9,0xcc
1850 };
1851
Andy Polyakov03e389c2011-09-14 20:48:49 +00001852__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001853static const unsigned char hmac_sha224_entropyinputreseed[] =
1854 {
1855 0xc4,0x8e,0x37,0x95,0x69,0x53,0x28,0xd7,0x37,0xbb,0x70,0x95,
1856 0x1c,0x07,0x1d,0xd9,0xb7,0xe6,0x1b,0xbb,0xfe,0x41,0xeb,0xc9
1857 };
1858
Andy Polyakov03e389c2011-09-14 20:48:49 +00001859__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001860static const unsigned char hmac_sha224_additionalinputreseed[] =
1861 {
1862 0x53,0x17,0xa1,0x6a,0xfa,0x77,0x47,0xb0,0x95,0x56,0x9a,0x20,
1863 0x57,0xde,0x5c,0x89,0x9f,0x7f,0xe2,0xde,0x17,0x3a,0x50,0x23
1864 };
1865
Andy Polyakov03e389c2011-09-14 20:48:49 +00001866__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001867static const unsigned char hmac_sha224_additionalinput2[] =
1868 {
1869 0x3a,0x32,0xf9,0x85,0x0c,0xc1,0xed,0x76,0x2d,0xdf,0x40,0xc3,
1870 0x06,0x22,0x66,0xd4,0x9a,0x9a,0xff,0x5a,0x7e,0x7a,0xf3,0x96
1871 };
1872
Andy Polyakov03e389c2011-09-14 20:48:49 +00001873__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001874static const unsigned char hmac_sha224_returnedbits[] =
1875 {
1876 0x43,0xb4,0x57,0x5c,0x38,0x25,0x9d,0xae,0xec,0x96,0xd1,0x85,
1877 0x3a,0x84,0x8d,0xfe,0x68,0xd5,0x0e,0x5c,0x8f,0x65,0xa5,0x4e,
1878 0x45,0x84,0xa8,0x94
1879 };
1880
1881
1882/* HMAC SHA-256 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001883__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001884static const unsigned char hmac_sha256_pr_entropyinput[] =
1885 {
1886 0x4d,0xb0,0x43,0xd8,0x34,0x4b,0x10,0x70,0xb1,0x8b,0xed,0xea,
1887 0x07,0x92,0x9f,0x6c,0x79,0x31,0xaf,0x81,0x29,0xeb,0x6e,0xca,
1888 0x32,0x48,0x28,0xe7,0x02,0x5d,0xa6,0xa6
1889 };
1890
Andy Polyakov03e389c2011-09-14 20:48:49 +00001891__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001892static const unsigned char hmac_sha256_pr_nonce[] =
1893 {
1894 0x3a,0xae,0x15,0xa9,0x99,0xdc,0xe4,0x67,0x34,0x3b,0x70,0x15,
1895 0xaa,0xd3,0x30,0x9a
1896 };
1897
Andy Polyakov03e389c2011-09-14 20:48:49 +00001898__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001899static const unsigned char hmac_sha256_pr_personalizationstring[] =
1900 {
1901 0x13,0x1d,0x24,0x04,0xb0,0x18,0x81,0x15,0x21,0x51,0x2a,0x24,
1902 0x52,0x61,0xbe,0x64,0x82,0x6b,0x55,0x2f,0xe2,0xf1,0x40,0x7d,
1903 0x71,0xd8,0x01,0x86,0x15,0xb7,0x8b,0xb5
1904 };
1905
Andy Polyakov03e389c2011-09-14 20:48:49 +00001906__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001907static const unsigned char hmac_sha256_pr_additionalinput[] =
1908 {
1909 0x8f,0xa6,0x54,0x5f,0xb1,0xd0,0xd8,0xc3,0xe7,0x0c,0x15,0xa9,
1910 0x23,0x6e,0xfe,0xfb,0x93,0xf7,0x3a,0xbd,0x59,0x01,0xfa,0x18,
1911 0x8e,0xe9,0x1a,0xa9,0x78,0xfc,0x79,0x0b
1912 };
1913
Andy Polyakov03e389c2011-09-14 20:48:49 +00001914__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001915static const unsigned char hmac_sha256_pr_entropyinputpr[] =
1916 {
1917 0xcf,0x24,0xb9,0xeb,0xb3,0xd4,0xcd,0x17,0x37,0x38,0x75,0x79,
1918 0x15,0xcb,0x2d,0x75,0x51,0xf1,0xcc,0xaa,0x32,0xa4,0xa7,0x36,
1919 0x7c,0x5c,0xe4,0x47,0xf1,0x3e,0x1d,0xe5
1920 };
1921
Andy Polyakov03e389c2011-09-14 20:48:49 +00001922__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001923static const unsigned char hmac_sha256_pr_int_returnedbits[] =
1924 {
1925 0x52,0x42,0xfa,0xeb,0x85,0xe0,0x30,0x22,0x79,0x00,0x16,0xb2,
1926 0x88,0x2f,0x14,0x6a,0xb7,0xfc,0xb7,0x53,0xdc,0x4a,0x12,0xef,
1927 0x54,0xd6,0x33,0xe9,0x20,0xd6,0xfd,0x56
1928 };
1929
Andy Polyakov03e389c2011-09-14 20:48:49 +00001930__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001931static const unsigned char hmac_sha256_pr_additionalinput2[] =
1932 {
1933 0xf4,0xf6,0x49,0xa1,0x2d,0x64,0x2b,0x30,0x58,0xf8,0xbd,0xb8,
1934 0x75,0xeb,0xbb,0x5e,0x1c,0x9b,0x81,0x6a,0xda,0x14,0x86,0x6e,
1935 0xd0,0xda,0x18,0xb7,0x88,0xfb,0x59,0xf3
1936 };
1937
Andy Polyakov03e389c2011-09-14 20:48:49 +00001938__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001939static const unsigned char hmac_sha256_pr_entropyinputpr2[] =
1940 {
1941 0x21,0xcd,0x6e,0x46,0xad,0x99,0x07,0x17,0xb4,0x3d,0x76,0x0a,
1942 0xff,0x5b,0x52,0x50,0x78,0xdf,0x1f,0x24,0x06,0x0d,0x3f,0x74,
1943 0xa9,0xc9,0x37,0xcf,0xd8,0x26,0x25,0x91
1944 };
1945
Andy Polyakov03e389c2011-09-14 20:48:49 +00001946__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001947static const unsigned char hmac_sha256_pr_returnedbits[] =
1948 {
1949 0xa7,0xaf,0x2f,0x29,0xe0,0x3a,0x72,0x95,0x96,0x1c,0xa9,0xf0,
1950 0x4a,0x17,0x4d,0x66,0x06,0x10,0xbf,0x39,0x89,0x88,0xb8,0x91,
1951 0x37,0x18,0x99,0xcf,0x8c,0x53,0x3b,0x7e
1952 };
1953
1954
1955/* HMAC SHA-256 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00001956__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001957static const unsigned char hmac_sha256_entropyinput[] =
1958 {
1959 0x96,0xb7,0x53,0x22,0x1e,0x52,0x2a,0x96,0xb1,0x15,0x3c,0x35,
1960 0x5a,0x8b,0xd3,0x4a,0xa6,0x6c,0x83,0x0a,0x7d,0xa3,0x23,0x3d,
1961 0x43,0xa1,0x07,0x2c,0x2d,0xe3,0x81,0xcc
1962 };
1963
Andy Polyakov03e389c2011-09-14 20:48:49 +00001964__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001965static const unsigned char hmac_sha256_nonce[] =
1966 {
1967 0xf1,0xac,0x97,0xcb,0x5e,0x06,0x48,0xd2,0x94,0xbe,0x15,0x2e,
1968 0xc7,0xfc,0xc2,0x01
1969 };
1970
Andy Polyakov03e389c2011-09-14 20:48:49 +00001971__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001972static const unsigned char hmac_sha256_personalizationstring[] =
1973 {
1974 0x98,0xc5,0x1e,0x35,0x5e,0x89,0x0d,0xce,0x64,0x6d,0x18,0xa7,
1975 0x5a,0xc6,0xf3,0xe7,0xd6,0x9e,0xc0,0xea,0xb7,0x3a,0x8d,0x65,
1976 0xb8,0xeb,0x10,0xd7,0x57,0x18,0xa0,0x32
1977 };
1978
Andy Polyakov03e389c2011-09-14 20:48:49 +00001979__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001980static const unsigned char hmac_sha256_additionalinput[] =
1981 {
1982 0x1b,0x10,0xaf,0xac,0xd0,0x65,0x95,0xad,0x04,0xad,0x03,0x1c,
1983 0xe0,0x40,0xd6,0x3e,0x1c,0x46,0x53,0x39,0x7c,0xe2,0xbc,0xda,
1984 0x8c,0xa2,0x33,0xa7,0x9a,0x26,0xd3,0x27
1985 };
1986
Andy Polyakov03e389c2011-09-14 20:48:49 +00001987__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001988static const unsigned char hmac_sha256_int_returnedbits[] =
1989 {
1990 0xba,0x61,0x0e,0x55,0xfe,0x11,0x8a,0x9e,0x0f,0x80,0xdf,0x1d,
1991 0x03,0x0a,0xfe,0x15,0x94,0x28,0x4b,0xba,0xf4,0x9f,0x51,0x25,
1992 0x88,0xe5,0x4e,0xfb,0xaf,0xce,0x69,0x90
1993 };
1994
Andy Polyakov03e389c2011-09-14 20:48:49 +00001995__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00001996static const unsigned char hmac_sha256_entropyinputreseed[] =
1997 {
1998 0x62,0x7f,0x1e,0x6b,0xe8,0x8e,0xe1,0x35,0x7d,0x9b,0x4f,0xc7,
1999 0xec,0xc8,0xac,0xef,0x6b,0x13,0x9e,0x05,0x56,0xc1,0x08,0xf9,
2000 0x2f,0x0f,0x27,0x9c,0xd4,0x15,0xed,0x2d
2001 };
2002
Andy Polyakov03e389c2011-09-14 20:48:49 +00002003__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002004static const unsigned char hmac_sha256_additionalinputreseed[] =
2005 {
2006 0xc7,0x76,0x6e,0xa9,0xd2,0xb2,0x76,0x40,0x82,0x25,0x2c,0xb3,
2007 0x6f,0xac,0xe9,0x74,0xef,0x8f,0x3c,0x8e,0xcd,0xf1,0xbf,0xb3,
2008 0x49,0x77,0x34,0x88,0x52,0x36,0xe6,0x2e
2009 };
2010
Andy Polyakov03e389c2011-09-14 20:48:49 +00002011__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002012static const unsigned char hmac_sha256_additionalinput2[] =
2013 {
2014 0x8d,0xb8,0x0c,0xd1,0xbf,0x70,0xf6,0x19,0xc3,0x41,0x80,0x9f,
2015 0xe1,0xa5,0xa4,0x1f,0x2c,0x26,0xb1,0xe5,0xd8,0xeb,0xbe,0xf8,
2016 0xdf,0x88,0x6a,0x89,0xd6,0x05,0xd8,0x9d
2017 };
2018
Andy Polyakov03e389c2011-09-14 20:48:49 +00002019__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002020static const unsigned char hmac_sha256_returnedbits[] =
2021 {
2022 0x43,0x12,0x2a,0x2c,0x40,0x53,0x2e,0x7c,0x66,0x34,0xac,0xc3,
2023 0x43,0xe3,0xe0,0x6a,0xfc,0xfa,0xea,0x87,0x21,0x1f,0xe2,0x26,
2024 0xc4,0xf9,0x09,0x9a,0x0d,0x6e,0x7f,0xe0
2025 };
2026
2027
2028/* HMAC SHA-384 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002029__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002030static const unsigned char hmac_sha384_pr_entropyinput[] =
2031 {
2032 0x69,0x81,0x98,0x88,0x44,0xf5,0xd6,0x2e,0x00,0x08,0x3b,0xc5,
2033 0xfb,0xd7,0x8e,0x6f,0x23,0xf8,0x6d,0x09,0xd6,0x85,0x49,0xd1,
2034 0xf8,0x6d,0xa4,0x58,0x54,0xfd,0x88,0xa9
2035 };
2036
Andy Polyakov03e389c2011-09-14 20:48:49 +00002037__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002038static const unsigned char hmac_sha384_pr_nonce[] =
2039 {
2040 0x6e,0x38,0x81,0xca,0xb7,0xe8,0x6e,0x66,0x49,0x8a,0xb2,0x59,
2041 0xee,0x16,0xc9,0xde
2042 };
2043
Andy Polyakov03e389c2011-09-14 20:48:49 +00002044__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002045static const unsigned char hmac_sha384_pr_personalizationstring[] =
2046 {
2047 0xfe,0x4c,0xd9,0xf4,0x78,0x3b,0x08,0x41,0x8d,0x8f,0x55,0xc4,
2048 0x43,0x56,0xb6,0x12,0x36,0x6b,0x30,0xb7,0x5e,0xe1,0xb9,0x47,
2049 0x04,0xb1,0x4e,0xa9,0x00,0xa1,0x52,0xa1
2050 };
2051
Andy Polyakov03e389c2011-09-14 20:48:49 +00002052__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002053static const unsigned char hmac_sha384_pr_additionalinput[] =
2054 {
2055 0x89,0xe9,0xcc,0x8f,0x27,0x3c,0x26,0xd1,0x95,0xc8,0x7d,0x0f,
2056 0x5b,0x1a,0xf0,0x78,0x39,0x56,0x6f,0xa4,0x23,0xe7,0xd1,0xda,
2057 0x7c,0x66,0x33,0xa0,0x90,0xc9,0x92,0x88
2058 };
2059
Andy Polyakov03e389c2011-09-14 20:48:49 +00002060__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002061static const unsigned char hmac_sha384_pr_entropyinputpr[] =
2062 {
2063 0xbe,0x3d,0x7c,0x0d,0xca,0xda,0x7c,0x49,0xb8,0x12,0x36,0xc0,
2064 0xdb,0xad,0x35,0xa8,0xc7,0x0b,0x2a,0x2c,0x69,0x6d,0x25,0x56,
2065 0x63,0x82,0x11,0x3e,0xa7,0x33,0x70,0x72
2066 };
2067
Andy Polyakov03e389c2011-09-14 20:48:49 +00002068__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002069static const unsigned char hmac_sha384_pr_int_returnedbits[] =
2070 {
2071 0x82,0x3d,0xe6,0x54,0x80,0x42,0xf8,0xba,0x90,0x4f,0x06,0xa6,
2072 0xd2,0x7f,0xbf,0x79,0x7c,0x12,0x7d,0xa6,0xa2,0x66,0xe8,0xa6,
2073 0xc0,0xd6,0x4a,0x55,0xbf,0xd8,0x0a,0xc5,0xf8,0x03,0x88,0xdd,
2074 0x8e,0x87,0xd1,0x5a,0x48,0x26,0x72,0x2a,0x8e,0xcf,0xee,0xba
2075 };
2076
Andy Polyakov03e389c2011-09-14 20:48:49 +00002077__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002078static const unsigned char hmac_sha384_pr_additionalinput2[] =
2079 {
2080 0x8f,0xff,0xd9,0x84,0xbb,0x85,0x3a,0x66,0xa1,0x21,0xce,0xb2,
2081 0x3a,0x3a,0x17,0x22,0x19,0xae,0xc7,0xb6,0x63,0x81,0xd5,0xff,
2082 0x0d,0xc8,0xe1,0xaf,0x57,0xd2,0xcb,0x60
2083 };
2084
Andy Polyakov03e389c2011-09-14 20:48:49 +00002085__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002086static const unsigned char hmac_sha384_pr_entropyinputpr2[] =
2087 {
2088 0xd7,0xfb,0xc9,0xe8,0xe2,0xf2,0xaa,0x4c,0xb8,0x51,0x2f,0xe1,
2089 0x22,0xba,0xf3,0xda,0x0a,0x19,0x76,0x71,0x57,0xb2,0x1d,0x94,
2090 0x09,0x69,0x6c,0xd3,0x97,0x51,0x81,0x87
2091 };
2092
Andy Polyakov03e389c2011-09-14 20:48:49 +00002093__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002094static const unsigned char hmac_sha384_pr_returnedbits[] =
2095 {
2096 0xe6,0x19,0x28,0xa8,0x21,0xce,0x5e,0xdb,0x24,0x79,0x8c,0x76,
2097 0x5d,0x73,0xb2,0xdf,0xac,0xef,0x85,0xa7,0x3b,0x19,0x09,0x8b,
2098 0x7f,0x98,0x28,0xa9,0x93,0xd8,0x7a,0xad,0x55,0x8b,0x24,0x9d,
2099 0xe6,0x98,0xfe,0x47,0xd5,0x48,0xc1,0x23,0xd8,0x1d,0x62,0x75
2100 };
2101
2102
2103/* HMAC SHA-384 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002104__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002105static const unsigned char hmac_sha384_entropyinput[] =
2106 {
2107 0xc3,0x56,0x2b,0x1d,0xc2,0xbb,0xa8,0xf0,0xae,0x1b,0x0d,0xd3,
2108 0x5a,0x6c,0xda,0x57,0x8e,0xa5,0x8a,0x0d,0x6c,0x4b,0x18,0xb1,
2109 0x04,0x3e,0xb4,0x99,0x35,0xc4,0xc0,0x5f
2110 };
2111
Andy Polyakov03e389c2011-09-14 20:48:49 +00002112__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002113static const unsigned char hmac_sha384_nonce[] =
2114 {
2115 0xc5,0x49,0x1e,0x66,0x27,0x92,0xbe,0xec,0xb5,0x1e,0x4b,0xb1,
2116 0x38,0xe3,0xeb,0x62
2117 };
2118
Andy Polyakov03e389c2011-09-14 20:48:49 +00002119__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002120static const unsigned char hmac_sha384_personalizationstring[] =
2121 {
2122 0xbe,0xe7,0x6b,0x57,0xde,0x88,0x11,0x96,0x9b,0x6e,0xea,0xe5,
2123 0x63,0x83,0x4c,0xb6,0x8d,0x66,0xaa,0x1f,0x8b,0x54,0xe7,0x62,
2124 0x6d,0x5a,0xfc,0xbf,0x97,0xba,0xcd,0x77
2125 };
2126
Andy Polyakov03e389c2011-09-14 20:48:49 +00002127__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002128static const unsigned char hmac_sha384_additionalinput[] =
2129 {
2130 0xe5,0x28,0x5f,0x43,0xf5,0x83,0x6e,0x0a,0x83,0x5c,0xe3,0x81,
2131 0x03,0xf2,0xf8,0x78,0x00,0x7c,0x95,0x87,0x16,0xd6,0x6c,0x58,
2132 0x33,0x6c,0x53,0x35,0x0d,0x66,0xe3,0xce
2133 };
2134
Andy Polyakov03e389c2011-09-14 20:48:49 +00002135__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002136static const unsigned char hmac_sha384_int_returnedbits[] =
2137 {
2138 0xe2,0x1f,0xf3,0xda,0x0d,0x19,0x99,0x87,0xc4,0x90,0xa2,0x31,
2139 0xca,0x2a,0x89,0x58,0x43,0x44,0xb8,0xde,0xcf,0xa4,0xbe,0x3b,
2140 0x53,0x26,0x22,0x31,0x76,0x41,0x22,0xb5,0xa8,0x70,0x2f,0x4b,
2141 0x64,0x95,0x4d,0x48,0x96,0x35,0xe6,0xbd,0x3c,0x34,0xdb,0x1b
2142 };
2143
Andy Polyakov03e389c2011-09-14 20:48:49 +00002144__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002145static const unsigned char hmac_sha384_entropyinputreseed[] =
2146 {
2147 0x77,0x61,0xba,0xbc,0xf2,0xc1,0xf3,0x4b,0x86,0x65,0xfd,0x48,
2148 0x0e,0x3c,0x02,0x5e,0xa2,0x7a,0x6b,0x7c,0xed,0x21,0x5e,0xf9,
2149 0xcd,0xcd,0x77,0x07,0x2b,0xbe,0xc5,0x5c
2150 };
2151
Andy Polyakov03e389c2011-09-14 20:48:49 +00002152__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002153static const unsigned char hmac_sha384_additionalinputreseed[] =
2154 {
2155 0x18,0x24,0x5f,0xc6,0x84,0xd1,0x67,0xc3,0x9a,0x11,0xa5,0x8c,
2156 0x07,0x39,0x21,0x83,0x4d,0x04,0xc4,0x6a,0x28,0x19,0xcf,0x92,
2157 0x21,0xd9,0x9e,0x41,0x72,0x6c,0x9e,0x63
2158 };
2159
Andy Polyakov03e389c2011-09-14 20:48:49 +00002160__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002161static const unsigned char hmac_sha384_additionalinput2[] =
2162 {
2163 0x96,0x67,0x41,0x28,0x9b,0xb7,0x92,0x8d,0x64,0x3b,0xe4,0xcf,
2164 0x7e,0xaa,0x1e,0xb1,0x4b,0x1d,0x09,0x56,0x67,0x9c,0xc6,0x6d,
2165 0x3b,0xe8,0x91,0x9d,0xe1,0x8a,0xb7,0x32
2166 };
2167
Andy Polyakov03e389c2011-09-14 20:48:49 +00002168__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002169static const unsigned char hmac_sha384_returnedbits[] =
2170 {
2171 0xe3,0x59,0x61,0x38,0x92,0xec,0xe2,0x3c,0xff,0xb7,0xdb,0x19,
2172 0x0f,0x5b,0x93,0x68,0x0d,0xa4,0x94,0x40,0x72,0x0b,0xe0,0xed,
2173 0x4d,0xcd,0x68,0xa0,0x1e,0xfe,0x67,0xb2,0xfa,0x21,0x56,0x74,
2174 0xa4,0xad,0xcf,0xb7,0x60,0x66,0x2e,0x40,0xde,0x82,0xca,0xfb
2175 };
2176
2177
2178/* HMAC SHA-512 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002179__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002180static const unsigned char hmac_sha512_pr_entropyinput[] =
2181 {
2182 0xaa,0x9e,0x45,0x67,0x0e,0x00,0x2a,0x67,0x98,0xd6,0xda,0x0b,
2183 0x0f,0x17,0x7e,0xac,0xfd,0x27,0xc4,0xca,0x84,0xdf,0xde,0xba,
2184 0x85,0xd9,0xbe,0x8f,0xf3,0xff,0x91,0x4d
2185 };
2186
Andy Polyakov03e389c2011-09-14 20:48:49 +00002187__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002188static const unsigned char hmac_sha512_pr_nonce[] =
2189 {
2190 0x8c,0x49,0x2f,0x58,0x1e,0x7a,0xda,0x4b,0x7e,0x8a,0x30,0x7b,
2191 0x86,0xea,0xaf,0xa2
2192 };
2193
Andy Polyakov03e389c2011-09-14 20:48:49 +00002194__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002195static const unsigned char hmac_sha512_pr_personalizationstring[] =
2196 {
2197 0x71,0xe1,0xbb,0xad,0xa7,0x4b,0x2e,0x31,0x3b,0x0b,0xec,0x24,
2198 0x99,0x38,0xbc,0xaa,0x05,0x4c,0x46,0x44,0xfa,0xad,0x8e,0x02,
2199 0xc1,0x7e,0xad,0xec,0x54,0xa6,0xd0,0xad
2200 };
2201
Andy Polyakov03e389c2011-09-14 20:48:49 +00002202__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002203static const unsigned char hmac_sha512_pr_additionalinput[] =
2204 {
2205 0x3d,0x6e,0xa6,0xa8,0x29,0x2a,0xb2,0xf5,0x98,0x42,0xe4,0x92,
2206 0x78,0x22,0x67,0xfd,0x1b,0x15,0x1e,0x29,0xaa,0x71,0x3c,0x3c,
2207 0xe7,0x05,0x20,0xa9,0x29,0xc6,0x75,0x71
2208 };
2209
Andy Polyakov03e389c2011-09-14 20:48:49 +00002210__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002211static const unsigned char hmac_sha512_pr_entropyinputpr[] =
2212 {
2213 0xab,0xb9,0x16,0xd8,0x55,0x35,0x54,0xb7,0x97,0x3f,0x94,0xbc,
2214 0x2f,0x7c,0x70,0xc7,0xd0,0xed,0xb7,0x4b,0xf7,0xf6,0x6c,0x03,
2215 0x0c,0xb0,0x03,0xd8,0xbb,0x71,0xd9,0x10
2216 };
2217
Andy Polyakov03e389c2011-09-14 20:48:49 +00002218__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002219static const unsigned char hmac_sha512_pr_int_returnedbits[] =
2220 {
2221 0x8e,0xd3,0xfd,0x52,0x9e,0x83,0x08,0x49,0x18,0x6e,0x23,0x56,
2222 0x5c,0x45,0x93,0x34,0x05,0xe2,0x98,0x8f,0x0c,0xd4,0x32,0x0c,
2223 0xfd,0xda,0x5f,0x92,0x3a,0x8c,0x81,0xbd,0xf6,0x6c,0x55,0xfd,
2224 0xb8,0x20,0xce,0x8d,0x97,0x27,0xe8,0xe8,0xe0,0xb3,0x85,0x50,
2225 0xa2,0xc2,0xb2,0x95,0x1d,0x48,0xd3,0x7b,0x4b,0x78,0x13,0x35,
2226 0x05,0x17,0xbe,0x0d
2227 };
2228
Andy Polyakov03e389c2011-09-14 20:48:49 +00002229__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002230static const unsigned char hmac_sha512_pr_additionalinput2[] =
2231 {
2232 0xc3,0xfc,0x95,0xaa,0x69,0x06,0xae,0x59,0x41,0xce,0x26,0x08,
2233 0x29,0x6d,0x45,0xda,0xe8,0xb3,0x6c,0x95,0x60,0x0f,0x70,0x2c,
2234 0x10,0xba,0x38,0x8c,0xcf,0x29,0x99,0xaa
2235 };
2236
Andy Polyakov03e389c2011-09-14 20:48:49 +00002237__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002238static const unsigned char hmac_sha512_pr_entropyinputpr2[] =
2239 {
2240 0x3b,0x9a,0x25,0xce,0xd7,0xf9,0x5c,0xd1,0x3a,0x3e,0xaa,0x71,
2241 0x14,0x3e,0x19,0xe8,0xce,0xe6,0xfe,0x51,0x84,0xe9,0x1b,0xfe,
2242 0x3f,0xa7,0xf2,0xfd,0x76,0x5f,0x6a,0xe7
2243 };
2244
Andy Polyakov03e389c2011-09-14 20:48:49 +00002245__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002246static const unsigned char hmac_sha512_pr_returnedbits[] =
2247 {
2248 0xb7,0x82,0xa9,0x57,0x81,0x67,0x53,0xb5,0xa1,0xe9,0x3d,0x35,
2249 0xf9,0xe4,0x97,0xbe,0xa6,0xca,0xf1,0x01,0x13,0x09,0xe7,0x21,
2250 0xc0,0xed,0x93,0x5d,0x4b,0xf4,0xeb,0x8d,0x53,0x25,0x8a,0xc4,
2251 0xb1,0x6f,0x6e,0x37,0xcd,0x2e,0xac,0x39,0xb2,0xb6,0x99,0xa3,
2252 0x82,0x00,0xb0,0x21,0xf0,0xc7,0x2f,0x4c,0x73,0x92,0xfd,0x00,
2253 0xb6,0xaf,0xbc,0xd3
2254 };
2255
2256
2257/* HMAC SHA-512 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002258__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002259static const unsigned char hmac_sha512_entropyinput[] =
2260 {
2261 0x6e,0x85,0xe6,0x25,0x96,0x29,0xa7,0x52,0x5b,0x60,0xba,0xaa,
2262 0xde,0xdb,0x36,0x0a,0x51,0x9a,0x15,0xae,0x6e,0x18,0xd3,0xfe,
2263 0x39,0xb9,0x4a,0x96,0xf8,0x77,0xcb,0x95
2264 };
2265
Andy Polyakov03e389c2011-09-14 20:48:49 +00002266__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002267static const unsigned char hmac_sha512_nonce[] =
2268 {
2269 0xe0,0xa6,0x5d,0x08,0xc3,0x7c,0xae,0x25,0x2e,0x80,0xd1,0x3e,
2270 0xd9,0xaf,0x43,0x3c
2271 };
2272
Andy Polyakov03e389c2011-09-14 20:48:49 +00002273__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002274static const unsigned char hmac_sha512_personalizationstring[] =
2275 {
2276 0x53,0x99,0x52,0x5f,0x11,0xa9,0x64,0x66,0x20,0x5e,0x1b,0x5f,
2277 0x42,0xb3,0xf4,0xda,0xed,0xbb,0x63,0xc1,0x23,0xaf,0xd0,0x01,
2278 0x90,0x3b,0xd0,0x78,0xe4,0x0b,0xa7,0x20
2279 };
2280
Andy Polyakov03e389c2011-09-14 20:48:49 +00002281__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002282static const unsigned char hmac_sha512_additionalinput[] =
2283 {
2284 0x85,0x90,0x80,0xd3,0x98,0xf1,0x53,0x6d,0x68,0x15,0x8f,0xe5,
2285 0x60,0x3f,0x17,0x29,0x55,0x8d,0x33,0xb1,0x45,0x64,0x64,0x8d,
2286 0x50,0x21,0x89,0xae,0xf6,0xfd,0x32,0x73
2287 };
2288
Andy Polyakov03e389c2011-09-14 20:48:49 +00002289__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002290static const unsigned char hmac_sha512_int_returnedbits[] =
2291 {
2292 0x28,0x56,0x30,0x6f,0xf4,0xa1,0x48,0xe0,0xc9,0xf5,0x75,0x90,
2293 0xcc,0xfb,0xdf,0xdf,0x71,0x3d,0x0a,0x9a,0x03,0x65,0x3b,0x18,
2294 0x61,0xe3,0xd1,0xda,0xcc,0x4a,0xfe,0x55,0x38,0xf8,0x21,0x6b,
2295 0xfa,0x18,0x01,0x42,0x39,0x2f,0x99,0x53,0x38,0x15,0x82,0x34,
2296 0xc5,0x93,0x92,0xbc,0x4d,0x75,0x1a,0x5f,0x21,0x27,0xcc,0xa1,
2297 0xb1,0x57,0x69,0xe8
2298 };
2299
Andy Polyakov03e389c2011-09-14 20:48:49 +00002300__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002301static const unsigned char hmac_sha512_entropyinputreseed[] =
2302 {
2303 0x8c,0x52,0x7e,0x77,0x72,0x3f,0xa3,0x04,0x97,0x10,0x9b,0x41,
2304 0xbd,0xe8,0xff,0x89,0xed,0x80,0xe3,0xbd,0xaa,0x12,0x2d,0xca,
2305 0x75,0x82,0x36,0x77,0x88,0xcd,0xa6,0x73
2306 };
2307
Andy Polyakov03e389c2011-09-14 20:48:49 +00002308__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002309static const unsigned char hmac_sha512_additionalinputreseed[] =
2310 {
2311 0x7e,0x32,0xe3,0x69,0x69,0x07,0x34,0xa2,0x16,0xa2,0x5d,0x1a,
2312 0x10,0x91,0xd3,0xe2,0x21,0xa2,0xa3,0xdd,0xcd,0x0c,0x09,0x86,
2313 0x11,0xe1,0x50,0xff,0x5c,0xb7,0xeb,0x5c
2314 };
2315
Andy Polyakov03e389c2011-09-14 20:48:49 +00002316__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002317static const unsigned char hmac_sha512_additionalinput2[] =
2318 {
2319 0x7f,0x78,0x66,0xd8,0xfb,0x67,0xcf,0x8d,0x8c,0x08,0x30,0xa5,
2320 0xf8,0x7d,0xcf,0x44,0x59,0xce,0xf8,0xdf,0x58,0xd3,0x60,0xcb,
2321 0xa8,0x60,0xb9,0x07,0xc4,0xb1,0x95,0x48
2322 };
2323
Andy Polyakov03e389c2011-09-14 20:48:49 +00002324__fips_constseg
Dr. Stephen Hensoneb9e63d2011-09-04 18:35:33 +00002325static const unsigned char hmac_sha512_returnedbits[] =
2326 {
2327 0xdf,0xa7,0x36,0xd4,0xdc,0x5d,0x4d,0x31,0xad,0x69,0x46,0x9f,
2328 0xf1,0x7c,0xd7,0x3b,0x4f,0x55,0xf2,0xd7,0xb9,0x9d,0xad,0x7a,
2329 0x79,0x08,0x59,0xa5,0xdc,0x74,0xf5,0x9b,0x73,0xd2,0x13,0x25,
2330 0x0b,0x81,0x08,0x08,0x25,0xfb,0x39,0xf2,0xf0,0xa3,0xa4,0x8d,
2331 0xef,0x05,0x9e,0xb8,0xc7,0x52,0xe4,0x0e,0x42,0xaa,0x7c,0x79,
2332 0xc2,0xd6,0xfd,0xa5
2333 };
2334
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002335
2336/* P-256 SHA-1 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002337__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002338static const unsigned char p_256_sha1_pr_entropyinput[] =
2339 {
2340 0xb7,0xd4,0x38,0x90,0x9a,0xa8,0xfc,0xb6,0xd6,0x3c,0xc5,0x35,
2341 0x2b,0x0b,0x0e,0x1f
2342 };
2343
Andy Polyakov03e389c2011-09-14 20:48:49 +00002344__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002345static const unsigned char p_256_sha1_pr_nonce[] =
2346 {
2347 0xd9,0xae,0xf5,0xe8,0xd5,0x10,0x1f,0x82
2348 };
2349
Andy Polyakov03e389c2011-09-14 20:48:49 +00002350__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002351static const unsigned char p_256_sha1_pr_personalizationstring[] =
2352 {
2353 0x88,0xe8,0x77,0xab,0x01,0x19,0x5e,0xaf,0x50,0x6c,0x89,0x2d,
2354 0x0c,0x12,0xe2,0x11
2355 };
2356
Andy Polyakov03e389c2011-09-14 20:48:49 +00002357__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002358static const unsigned char p_256_sha1_pr_additionalinput[] =
2359 {
2360 0xd1,0x46,0xa6,0xb0,0x6e,0xc5,0xaa,0x7b,0x6d,0x1a,0xf9,0x36,
2361 0x8c,0x95,0x9c,0xed
2362 };
2363
Andy Polyakov03e389c2011-09-14 20:48:49 +00002364__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002365static const unsigned char p_256_sha1_pr_entropyinputpr[] =
2366 {
2367 0xb0,0x97,0xa8,0x3e,0xd3,0x28,0x3d,0x36,0xdd,0xfe,0x89,0x00,
2368 0x63,0x4f,0x21,0xfc
2369 };
2370
Andy Polyakov03e389c2011-09-14 20:48:49 +00002371__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002372static const unsigned char p_256_sha1_pr_int_returnedbits[] =
2373 {
2374 0x9f,0x66,0x6a,0x38,0x57,0x49,0x15,0xcd,0x5a,0x85,0x03,0x97,
2375 0x67,0xc3,0x62,0x46,0xb7,0x3a,0xd2,0x08,0x86,0x40,0x4e,0x6d,
2376 0x67,0xf4,0x19,0x68,0x92,0x63
2377 };
2378
Andy Polyakov03e389c2011-09-14 20:48:49 +00002379__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002380static const unsigned char p_256_sha1_pr_additionalinput2[] =
2381 {
2382 0x0c,0xb6,0x1c,0xc7,0x52,0x47,0xe4,0xf1,0xa7,0x75,0x60,0x3d,
2383 0x60,0x07,0x72,0x6f
2384 };
2385
Andy Polyakov03e389c2011-09-14 20:48:49 +00002386__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002387static const unsigned char p_256_sha1_pr_entropyinputpr2[] =
2388 {
2389 0x39,0x37,0xb6,0x55,0x82,0x71,0x0e,0xd4,0x8f,0x8c,0x10,0xe5,
2390 0x7c,0x8f,0x5e,0x37
2391 };
2392
Andy Polyakov03e389c2011-09-14 20:48:49 +00002393__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002394static const unsigned char p_256_sha1_pr_returnedbits[] =
2395 {
2396 0x37,0x6c,0x94,0x02,0xbe,0x28,0x42,0xd5,0xe7,0x4d,0x1a,0x6e,
2397 0xa8,0x5a,0x90,0x9a,0x31,0xa8,0x84,0x16,0xbc,0xe9,0x18,0xa4,
2398 0xe1,0xa1,0x05,0xf0,0x2a,0xe3
2399 };
2400
2401
2402/* P-256 SHA-1 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002403__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002404static const unsigned char p_256_sha1_entropyinput[] =
2405 {
2406 0xac,0x08,0x45,0x86,0x79,0xfc,0x4b,0xb4,0x8b,0xe4,0xfd,0x1d,
2407 0x0e,0xeb,0x1b,0x8f
2408 };
2409
Andy Polyakov03e389c2011-09-14 20:48:49 +00002410__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002411static const unsigned char p_256_sha1_nonce[] =
2412 {
2413 0x5e,0xf4,0xe9,0xc5,0x04,0xee,0xb7,0x8a
2414 };
2415
Andy Polyakov03e389c2011-09-14 20:48:49 +00002416__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002417static const unsigned char p_256_sha1_personalizationstring[] =
2418 {
2419 0x55,0x0f,0xca,0x3b,0x1c,0xa6,0xf3,0xce,0xcb,0x6f,0xa7,0xc7,
2420 0x26,0x65,0x0f,0x7c
2421 };
2422
Andy Polyakov03e389c2011-09-14 20:48:49 +00002423__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002424static const unsigned char p_256_sha1_additionalinput[] =
2425 {
2426 0x74,0x51,0x73,0xa9,0xee,0x2e,0x21,0xf9,0xba,0x07,0xe4,0xad,
2427 0x97,0xae,0x1c,0x8b
2428 };
2429
Andy Polyakov03e389c2011-09-14 20:48:49 +00002430__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002431static const unsigned char p_256_sha1_int_returnedbits[] =
2432 {
2433 0x8d,0x45,0x11,0xa9,0x74,0x14,0x05,0x94,0x97,0x66,0x71,0xe2,
2434 0x9b,0x61,0x22,0x85,0xa5,0xaa,0x09,0x01,0x75,0xb5,0xab,0x3a,
2435 0x3a,0x6e,0x69,0xd3,0xc8,0xc4
2436 };
2437
Andy Polyakov03e389c2011-09-14 20:48:49 +00002438__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002439static const unsigned char p_256_sha1_entropyinputreseed[] =
2440 {
2441 0x34,0xd9,0x8b,0x67,0x82,0xaf,0x97,0x95,0xe9,0x25,0xa7,0x93,
2442 0x37,0x06,0x73,0x5c
2443 };
2444
Andy Polyakov03e389c2011-09-14 20:48:49 +00002445__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002446static const unsigned char p_256_sha1_additionalinputreseed[] =
2447 {
2448 0x39,0x21,0x24,0x27,0x67,0xa1,0xc3,0xc4,0x90,0xc2,0x68,0x68,
2449 0x26,0x9b,0x32,0xc2
2450 };
2451
Andy Polyakov03e389c2011-09-14 20:48:49 +00002452__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002453static const unsigned char p_256_sha1_additionalinput2[] =
2454 {
2455 0x84,0xa8,0x10,0xe5,0x71,0x0c,0x1e,0x74,0x42,0x6a,0xa5,0x09,
2456 0x90,0x74,0x39,0xd7
2457 };
2458
Andy Polyakov03e389c2011-09-14 20:48:49 +00002459__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002460static const unsigned char p_256_sha1_returnedbits[] =
2461 {
2462 0x1e,0x0b,0x5c,0x41,0xcd,0xab,0x07,0xbd,0xdc,0x53,0xa7,0x62,
2463 0xd1,0xd0,0xca,0x19,0xe6,0xbb,0x8e,0xcf,0x1e,0x0a,0x4c,0xc0,
2464 0x2d,0x8c,0xe2,0xa4,0x89,0x2c
2465 };
2466
2467
2468/* P-256 SHA-224 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002469__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002470static const unsigned char p_256_sha224_pr_entropyinput[] =
2471 {
2472 0x92,0x05,0xf0,0x1e,0xc4,0xc4,0x9e,0xab,0x85,0x10,0x16,0xda,
2473 0xa6,0xb4,0xba,0x6f
2474 };
2475
Andy Polyakov03e389c2011-09-14 20:48:49 +00002476__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002477static const unsigned char p_256_sha224_pr_nonce[] =
2478 {
2479 0xa3,0x5e,0xde,0x12,0xdc,0xa7,0x67,0xfd
2480 };
2481
Andy Polyakov03e389c2011-09-14 20:48:49 +00002482__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002483static const unsigned char p_256_sha224_pr_personalizationstring[] =
2484 {
2485 0x76,0xa0,0x8d,0x6c,0x0d,0x19,0x5d,0x94,0x9b,0x92,0x67,0x78,
2486 0x6c,0x02,0xfe,0xe4
2487 };
2488
Andy Polyakov03e389c2011-09-14 20:48:49 +00002489__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002490static const unsigned char p_256_sha224_pr_additionalinput[] =
2491 {
2492 0xe2,0x05,0xcf,0x63,0x0f,0xf1,0xd0,0x41,0xc9,0xe3,0xf6,0xb0,
2493 0x57,0xaa,0xcd,0x92
2494 };
2495
Andy Polyakov03e389c2011-09-14 20:48:49 +00002496__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002497static const unsigned char p_256_sha224_pr_entropyinputpr[] =
2498 {
2499 0x1a,0xd5,0xa9,0x25,0x52,0xa8,0xba,0x51,0x81,0x99,0x62,0x4d,
2500 0xbf,0x30,0x44,0xf3
2501 };
2502
Andy Polyakov03e389c2011-09-14 20:48:49 +00002503__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002504static const unsigned char p_256_sha224_pr_int_returnedbits[] =
2505 {
2506 0xbf,0x9e,0x45,0x73,0x67,0x4b,0x25,0xa5,0x58,0x23,0x31,0xd8,
2507 0x0f,0xf3,0xe5,0x5d,0x0e,0x2d,0x9b,0x4a,0x5f,0x93,0x9c,0xad,
2508 0x6a,0xc5,0x70,0x4e,0x5e,0x58
2509 };
2510
Andy Polyakov03e389c2011-09-14 20:48:49 +00002511__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002512static const unsigned char p_256_sha224_pr_additionalinput2[] =
2513 {
2514 0x4a,0x85,0x19,0xb2,0x61,0x5d,0xd5,0xc0,0x1f,0x47,0x72,0x8b,
2515 0x62,0x35,0x19,0xc1
2516 };
2517
Andy Polyakov03e389c2011-09-14 20:48:49 +00002518__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002519static const unsigned char p_256_sha224_pr_entropyinputpr2[] =
2520 {
2521 0xda,0xa7,0x84,0x3f,0xfa,0xf9,0xd1,0x51,0x17,0xf8,0xe3,0x77,
2522 0xf5,0x20,0x37,0x17
2523 };
2524
Andy Polyakov03e389c2011-09-14 20:48:49 +00002525__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002526static const unsigned char p_256_sha224_pr_returnedbits[] =
2527 {
2528 0x15,0xa4,0xa1,0x53,0x4f,0x63,0x06,0xfe,0x28,0xfd,0x58,0xa9,
2529 0xac,0x9c,0x83,0xb7,0x3a,0x86,0x82,0x92,0x96,0x89,0xea,0x3d,
2530 0xbd,0x83,0x3a,0x06,0x2a,0x7d
2531 };
2532
2533
2534/* P-256 SHA-224 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002535__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002536static const unsigned char p_256_sha224_entropyinput[] =
2537 {
2538 0xec,0x5b,0x46,0x4a,0xe1,0xe1,0xcb,0x31,0x86,0xa7,0x11,0x3a,
2539 0xff,0x87,0x4a,0x66
2540 };
2541
Andy Polyakov03e389c2011-09-14 20:48:49 +00002542__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002543static const unsigned char p_256_sha224_nonce[] =
2544 {
2545 0xd1,0x6c,0x33,0x3c,0x37,0xc9,0xc6,0xac
2546 };
2547
Andy Polyakov03e389c2011-09-14 20:48:49 +00002548__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002549static const unsigned char p_256_sha224_personalizationstring[] =
2550 {
2551 0x8b,0xfe,0x68,0x96,0x2d,0xc5,0x91,0xb3,0xf2,0xaa,0x15,0xad,
2552 0x1a,0x50,0x0c,0x0a
2553 };
2554
Andy Polyakov03e389c2011-09-14 20:48:49 +00002555__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002556static const unsigned char p_256_sha224_additionalinput[] =
2557 {
2558 0xd4,0x48,0xfd,0x16,0x41,0xea,0xef,0x06,0x7f,0x4a,0xa2,0x60,
2559 0x60,0x31,0x20,0x5d
2560 };
2561
Andy Polyakov03e389c2011-09-14 20:48:49 +00002562__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002563static const unsigned char p_256_sha224_int_returnedbits[] =
2564 {
2565 0x68,0x64,0x67,0x0c,0x73,0x08,0x00,0x60,0x5a,0xa6,0x9a,0x27,
2566 0x01,0x81,0xae,0x2e,0x1d,0xa6,0x0a,0x86,0x77,0xef,0x05,0x3f,
2567 0x42,0xbe,0x46,0x73,0x40,0x1c
2568 };
2569
Andy Polyakov03e389c2011-09-14 20:48:49 +00002570__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002571static const unsigned char p_256_sha224_entropyinputreseed[] =
2572 {
2573 0x9c,0xde,0x86,0x11,0x55,0x9a,0xb4,0x2b,0x70,0xf0,0xc6,0x9d,
2574 0x8d,0x3a,0xc3,0x1e
2575 };
2576
Andy Polyakov03e389c2011-09-14 20:48:49 +00002577__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002578static const unsigned char p_256_sha224_additionalinputreseed[] =
2579 {
2580 0x5d,0x5b,0xeb,0x38,0xc5,0x8b,0x2b,0xc8,0x73,0xe3,0x0e,0xca,
2581 0x35,0xb0,0x4d,0x11
2582 };
2583
Andy Polyakov03e389c2011-09-14 20:48:49 +00002584__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002585static const unsigned char p_256_sha224_additionalinput2[] =
2586 {
2587 0xf7,0xa3,0x79,0x4b,0xb0,0x2c,0x1e,0xc6,0x61,0x69,0x14,0x6a,
2588 0xed,0xf1,0xa2,0xd8
2589 };
2590
Andy Polyakov03e389c2011-09-14 20:48:49 +00002591__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002592static const unsigned char p_256_sha224_returnedbits[] =
2593 {
2594 0x89,0x75,0x1b,0x89,0x20,0xcc,0xe2,0xaf,0xae,0x5e,0xc1,0xa9,
2595 0xde,0xc0,0x35,0x0b,0xf6,0x4e,0x04,0xfc,0xa7,0xe6,0x35,0xf9,
2596 0x16,0x8a,0xc6,0x0c,0x63,0x6b
2597 };
2598
2599
2600/* P-256 SHA-256 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002601__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002602static const unsigned char p_256_sha256_pr_entropyinput[] =
2603 {
2604 0x22,0xe4,0x4c,0x01,0x94,0x59,0xce,0x08,0xb3,0x92,0x48,0xe2,
2605 0x0d,0x1a,0x32,0x4d
2606 };
2607
Andy Polyakov03e389c2011-09-14 20:48:49 +00002608__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002609static const unsigned char p_256_sha256_pr_nonce[] =
2610 {
2611 0x8d,0xf9,0x20,0x8a,0x65,0xf4,0x93,0x37
2612 };
2613
Andy Polyakov03e389c2011-09-14 20:48:49 +00002614__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002615static const unsigned char p_256_sha256_pr_personalizationstring[] =
2616 {
2617 0x06,0x7e,0xe8,0x4f,0xdd,0xae,0x8d,0xf1,0xc9,0x13,0x9a,0x81,
2618 0xd3,0x68,0x76,0xc1
2619 };
2620
Andy Polyakov03e389c2011-09-14 20:48:49 +00002621__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002622static const unsigned char p_256_sha256_pr_additionalinput[] =
2623 {
2624 0xfa,0x8e,0xea,0xf3,0xcf,0xda,0x7c,0x11,0x88,0xaa,0xb9,0x02,
2625 0x84,0xc4,0x30,0x54
2626 };
2627
Andy Polyakov03e389c2011-09-14 20:48:49 +00002628__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002629static const unsigned char p_256_sha256_pr_entropyinputpr[] =
2630 {
2631 0xbb,0x21,0x72,0x4f,0x83,0x03,0x14,0x18,0x8e,0x88,0xec,0x73,
2632 0xde,0xed,0x60,0xf7
2633 };
2634
Andy Polyakov03e389c2011-09-14 20:48:49 +00002635__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002636static const unsigned char p_256_sha256_pr_int_returnedbits[] =
2637 {
2638 0xdc,0x40,0x73,0x5e,0x1d,0x21,0x35,0x8c,0xcf,0xa4,0x50,0x05,
2639 0x5e,0x73,0xbd,0xde,0x5e,0x58,0xcc,0xc0,0x6f,0xd9,0xca,0x8d,
2640 0x48,0x9d,0x84,0x77,0xc2,0x8e
2641 };
2642
Andy Polyakov03e389c2011-09-14 20:48:49 +00002643__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002644static const unsigned char p_256_sha256_pr_additionalinput2[] =
2645 {
2646 0x0e,0xa7,0x4d,0x4f,0x19,0x94,0x34,0x05,0x46,0x3e,0x0c,0x05,
2647 0x27,0x85,0xd9,0xdf
2648 };
2649
Andy Polyakov03e389c2011-09-14 20:48:49 +00002650__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002651static const unsigned char p_256_sha256_pr_entropyinputpr2[] =
2652 {
2653 0x4f,0xae,0x44,0x10,0x2b,0xa1,0xbc,0xd7,0xcb,0xa7,0x49,0x55,
2654 0x27,0x54,0x36,0x2b
2655 };
2656
Andy Polyakov03e389c2011-09-14 20:48:49 +00002657__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002658static const unsigned char p_256_sha256_pr_returnedbits[] =
2659 {
2660 0x1c,0x16,0xf7,0x2b,0xd0,0xb7,0x54,0x5a,0xa5,0x85,0x14,0x63,
2661 0xd4,0x96,0x81,0x5a,0x6b,0xa4,0xde,0x57,0xbf,0xf3,0x81,0xc7,
2662 0xf5,0xbc,0xeb,0x4e,0x49,0xdf
2663 };
2664
2665
2666/* P-256 SHA-256 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002667__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002668static const unsigned char p_256_sha256_entropyinput[] =
2669 {
2670 0xa7,0x0b,0x6b,0xf7,0xfb,0x40,0x1a,0xca,0xa9,0x1f,0x16,0xc9,
2671 0x6a,0xd0,0x4a,0x8c
2672 };
2673
Andy Polyakov03e389c2011-09-14 20:48:49 +00002674__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002675static const unsigned char p_256_sha256_nonce[] =
2676 {
2677 0x97,0x8e,0xb1,0x72,0xe8,0x30,0xfc,0x43
2678 };
2679
Andy Polyakov03e389c2011-09-14 20:48:49 +00002680__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002681static const unsigned char p_256_sha256_personalizationstring[] =
2682 {
2683 0x6c,0x90,0x00,0x41,0x84,0x7c,0x58,0x56,0x48,0xf0,0x60,0x04,
2684 0xe9,0xc0,0xa0,0xd8
2685 };
2686
Andy Polyakov03e389c2011-09-14 20:48:49 +00002687__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002688static const unsigned char p_256_sha256_additionalinput[] =
2689 {
2690 0x69,0xad,0xd7,0x7c,0xbd,0x90,0xa1,0x63,0xcd,0x64,0x7c,0xb3,
2691 0xce,0xff,0xf2,0xf7
2692 };
2693
Andy Polyakov03e389c2011-09-14 20:48:49 +00002694__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002695static const unsigned char p_256_sha256_int_returnedbits[] =
2696 {
2697 0xe8,0x5a,0x4f,0x5d,0xab,0xc7,0xd2,0x94,0x4d,0xbf,0x02,0x57,
2698 0xa1,0x89,0x73,0xa1,0xc2,0xca,0xfb,0x46,0x11,0x41,0x47,0x8e,
2699 0x32,0x45,0xd7,0x8a,0x8a,0x38
2700 };
2701
Andy Polyakov03e389c2011-09-14 20:48:49 +00002702__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002703static const unsigned char p_256_sha256_entropyinputreseed[] =
2704 {
2705 0x5c,0xb4,0x82,0x38,0xa2,0x2d,0x78,0x63,0x2a,0x38,0x77,0x5b,
2706 0x9a,0x59,0x4d,0x17
2707 };
2708
Andy Polyakov03e389c2011-09-14 20:48:49 +00002709__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002710static const unsigned char p_256_sha256_additionalinputreseed[] =
2711 {
2712 0x43,0x28,0x7f,0x91,0x92,0xad,0x88,0x75,0x64,0xe5,0xef,0x95,
2713 0x59,0xa9,0x11,0x61
2714 };
2715
Andy Polyakov03e389c2011-09-14 20:48:49 +00002716__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002717static const unsigned char p_256_sha256_additionalinput2[] =
2718 {
2719 0x77,0xee,0xfc,0x84,0x5b,0x69,0xdf,0x9f,0x7e,0xf2,0xb1,0x35,
2720 0x34,0x28,0x8f,0xcd
2721 };
2722
Andy Polyakov03e389c2011-09-14 20:48:49 +00002723__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002724static const unsigned char p_256_sha256_returnedbits[] =
2725 {
2726 0x2d,0x45,0x00,0x60,0x87,0x6c,0xfa,0x69,0x06,0x9e,0x99,0xf9,
2727 0xf6,0xb6,0x1e,0xf6,0xfb,0x6b,0x54,0x68,0x1a,0xd3,0xda,0x31,
2728 0x3e,0x60,0x4a,0x31,0x7d,0x41
2729 };
2730
2731
2732/* P-256 SHA-384 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002733__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002734static const unsigned char p_256_sha384_pr_entropyinput[] =
2735 {
2736 0xb3,0x6a,0x1b,0x68,0xe3,0x8a,0xa4,0xad,0x2d,0xa0,0x6a,0xae,
2737 0x10,0xe5,0x55,0x58
2738 };
2739
Andy Polyakov03e389c2011-09-14 20:48:49 +00002740__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002741static const unsigned char p_256_sha384_pr_nonce[] =
2742 {
2743 0xe2,0xe8,0xd4,0x8d,0xc8,0x47,0xad,0x79
2744 };
2745
Andy Polyakov03e389c2011-09-14 20:48:49 +00002746__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002747static const unsigned char p_256_sha384_pr_personalizationstring[] =
2748 {
2749 0xf9,0xbb,0xac,0xe9,0xd9,0x8a,0x58,0xae,0x58,0xa6,0x68,0xd2,
2750 0xff,0x49,0x71,0x08
2751 };
2752
Andy Polyakov03e389c2011-09-14 20:48:49 +00002753__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002754static const unsigned char p_256_sha384_pr_additionalinput[] =
2755 {
2756 0xa7,0xa3,0xcc,0xc1,0xbf,0xa7,0x32,0xe8,0xcb,0x21,0xf4,0x35,
2757 0x42,0xa6,0xdd,0x4b
2758 };
2759
Andy Polyakov03e389c2011-09-14 20:48:49 +00002760__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002761static const unsigned char p_256_sha384_pr_entropyinputpr[] =
2762 {
2763 0x37,0xdb,0x5a,0x83,0x9c,0x7a,0x50,0xe3,0xc7,0xbd,0x50,0x63,
2764 0x88,0x44,0xa1,0x50
2765 };
2766
Andy Polyakov03e389c2011-09-14 20:48:49 +00002767__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002768static const unsigned char p_256_sha384_pr_int_returnedbits[] =
2769 {
2770 0x65,0x3a,0xdd,0x95,0x3a,0x52,0xd7,0x7f,0x8d,0x81,0x1b,0x53,
2771 0x4e,0xa9,0x5b,0x80,0xa2,0x08,0x1e,0xf5,0x7f,0xac,0x62,0x28,
2772 0xbc,0x1c,0x02,0xd2,0xe9,0x1e
2773 };
2774
Andy Polyakov03e389c2011-09-14 20:48:49 +00002775__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002776static const unsigned char p_256_sha384_pr_additionalinput2[] =
2777 {
2778 0xb3,0xff,0xbc,0x54,0x38,0x49,0x1f,0xad,0x3f,0x33,0x5f,0x45,
2779 0x21,0x2f,0xcf,0xba
2780 };
2781
Andy Polyakov03e389c2011-09-14 20:48:49 +00002782__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002783static const unsigned char p_256_sha384_pr_entropyinputpr2[] =
2784 {
2785 0x43,0x37,0x4a,0x16,0x15,0x1d,0x3d,0xa9,0x3b,0xcf,0xbb,0x73,
2786 0x67,0xce,0x93,0xbf
2787 };
2788
Andy Polyakov03e389c2011-09-14 20:48:49 +00002789__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002790static const unsigned char p_256_sha384_pr_returnedbits[] =
2791 {
2792 0x1e,0x1b,0x69,0x67,0xb8,0xd7,0xb4,0x18,0xb8,0xa0,0x11,0xc7,
2793 0x5f,0xd7,0x14,0xb7,0x24,0xae,0xa5,0x35,0x06,0xa0,0xd0,0x7f,
2794 0xcd,0x9b,0x20,0x03,0x66,0xc0
2795 };
2796
2797
2798/* P-256 SHA-384 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002799__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002800static const unsigned char p_256_sha384_entropyinput[] =
2801 {
2802 0x1c,0x0d,0xa7,0x27,0x1f,0xb4,0xa2,0x4a,0xe5,0x25,0x00,0xbe,
2803 0xbe,0x80,0x88,0xa8
2804 };
2805
Andy Polyakov03e389c2011-09-14 20:48:49 +00002806__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002807static const unsigned char p_256_sha384_nonce[] =
2808 {
2809 0x2c,0x7e,0x21,0x02,0x46,0x9e,0xe5,0xae
2810 };
2811
Andy Polyakov03e389c2011-09-14 20:48:49 +00002812__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002813static const unsigned char p_256_sha384_personalizationstring[] =
2814 {
2815 0x0a,0xf6,0x83,0xa9,0x7b,0x97,0x20,0x60,0xcc,0x46,0x0e,0x52,
2816 0xd0,0xcb,0x57,0xb5
2817 };
2818
Andy Polyakov03e389c2011-09-14 20:48:49 +00002819__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002820static const unsigned char p_256_sha384_additionalinput[] =
2821 {
2822 0xac,0xd8,0x25,0xef,0x85,0xa8,0x5e,0x55,0x89,0x5b,0x6e,0xf6,
2823 0x4d,0x4d,0x05,0x53
2824 };
2825
Andy Polyakov03e389c2011-09-14 20:48:49 +00002826__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002827static const unsigned char p_256_sha384_int_returnedbits[] =
2828 {
2829 0x5c,0x71,0x32,0x2f,0x34,0x09,0x99,0x6a,0x4e,0x55,0xaf,0x4b,
2830 0x73,0x32,0xb5,0xad,0x52,0x4c,0x54,0xa0,0x25,0x3b,0xd9,0x70,
2831 0xe5,0xe4,0x6f,0x61,0xab,0x8c
2832 };
2833
Andy Polyakov03e389c2011-09-14 20:48:49 +00002834__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002835static const unsigned char p_256_sha384_entropyinputreseed[] =
2836 {
2837 0x4b,0x0d,0xa9,0x66,0xc3,0x64,0xe9,0xd5,0x87,0xb1,0x98,0xc2,
2838 0xeb,0x14,0xd2,0x8a
2839 };
2840
Andy Polyakov03e389c2011-09-14 20:48:49 +00002841__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002842static const unsigned char p_256_sha384_additionalinputreseed[] =
2843 {
2844 0x1f,0x11,0x6b,0xc0,0x15,0x38,0xbd,0x62,0x27,0xf7,0x6d,0x97,
2845 0x77,0xd1,0xcc,0x00
2846 };
2847
Andy Polyakov03e389c2011-09-14 20:48:49 +00002848__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002849static const unsigned char p_256_sha384_additionalinput2[] =
2850 {
2851 0x1d,0x9a,0xe5,0xfc,0xed,0x93,0x3d,0xbb,0x08,0xf3,0xba,0x01,
2852 0x6f,0x9f,0xdf,0xb1
2853 };
2854
Andy Polyakov03e389c2011-09-14 20:48:49 +00002855__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002856static const unsigned char p_256_sha384_returnedbits[] =
2857 {
2858 0x4a,0xd5,0xd3,0x62,0xbb,0x6e,0x6c,0xb2,0x1c,0x0e,0xf6,0x97,
2859 0xd3,0x15,0x18,0xb5,0x42,0x59,0xc4,0xf6,0xa9,0x8f,0x1b,0xff,
2860 0xaa,0xf8,0xf9,0x9c,0xba,0x47
2861 };
2862
2863
2864/* P-256 SHA-512 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002865__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002866static const unsigned char p_256_sha512_pr_entropyinput[] =
2867 {
2868 0x73,0x83,0x07,0x93,0x85,0x39,0x2f,0x96,0xcd,0x74,0x32,0x4d,
2869 0x68,0x0e,0x97,0x9d
2870 };
2871
Andy Polyakov03e389c2011-09-14 20:48:49 +00002872__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002873static const unsigned char p_256_sha512_pr_nonce[] =
2874 {
2875 0xab,0xc6,0xf4,0x38,0x72,0x9b,0x9f,0x36
2876 };
2877
Andy Polyakov03e389c2011-09-14 20:48:49 +00002878__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002879static const unsigned char p_256_sha512_pr_personalizationstring[] =
2880 {
2881 0x88,0x8e,0xc1,0xaf,0xe9,0x1b,0x8a,0xf5,0xf2,0x23,0x44,0x71,
2882 0xf5,0x9a,0xed,0x5e
2883 };
2884
Andy Polyakov03e389c2011-09-14 20:48:49 +00002885__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002886static const unsigned char p_256_sha512_pr_additionalinput[] =
2887 {
2888 0x38,0xf7,0x2b,0x11,0x7b,0xd6,0xfa,0xbd,0x07,0x42,0x46,0x77,
2889 0xed,0x1b,0x3f,0x95
2890 };
2891
Andy Polyakov03e389c2011-09-14 20:48:49 +00002892__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002893static const unsigned char p_256_sha512_pr_entropyinputpr[] =
2894 {
2895 0x52,0xf2,0x68,0x6d,0xc9,0x1b,0xc7,0xb0,0x52,0x07,0x69,0x79,
2896 0x25,0x5d,0xbb,0xdb
2897 };
2898
Andy Polyakov03e389c2011-09-14 20:48:49 +00002899__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002900static const unsigned char p_256_sha512_pr_int_returnedbits[] =
2901 {
2902 0x23,0xa6,0x84,0x48,0x4f,0xd3,0x1f,0x56,0x57,0xae,0x50,0xea,
2903 0x9f,0x2b,0x47,0x80,0x6a,0x46,0x10,0x54,0x1d,0x77,0x67,0x79,
2904 0x45,0xbb,0x1d,0x90,0x2c,0xce
2905 };
2906
Andy Polyakov03e389c2011-09-14 20:48:49 +00002907__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002908static const unsigned char p_256_sha512_pr_additionalinput2[] =
2909 {
2910 0x9c,0x46,0x61,0x85,0x2c,0x9e,0x2c,0xd0,0x4d,0xcd,0x73,0x78,
2911 0x08,0x8d,0x49,0x5b
2912 };
2913
Andy Polyakov03e389c2011-09-14 20:48:49 +00002914__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002915static const unsigned char p_256_sha512_pr_entropyinputpr2[] =
2916 {
2917 0x71,0x60,0x46,0x14,0xc1,0xaa,0x21,0xc8,0xf1,0xfe,0x32,0x90,
2918 0x46,0xfd,0xe9,0x80
2919 };
2920
Andy Polyakov03e389c2011-09-14 20:48:49 +00002921__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002922static const unsigned char p_256_sha512_pr_returnedbits[] =
2923 {
2924 0x7a,0x30,0x7d,0x6e,0xb1,0x22,0xb9,0x68,0x7d,0x00,0x14,0x63,
2925 0xca,0xe2,0x06,0x03,0xe0,0x94,0xbb,0x45,0x14,0x2d,0xd2,0xd1,
2926 0xfb,0x35,0xfd,0xe6,0xf1,0x81
2927 };
2928
2929
2930/* P-256 SHA-512 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002931__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002932static const unsigned char p_256_sha512_entropyinput[] =
2933 {
2934 0x55,0xd0,0x7f,0xb7,0x23,0x81,0x95,0x38,0xa7,0xbf,0x01,0x8d,
2935 0x06,0x8b,0xbc,0x47
2936 };
2937
Andy Polyakov03e389c2011-09-14 20:48:49 +00002938__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002939static const unsigned char p_256_sha512_nonce[] =
2940 {
2941 0x96,0xab,0x85,0xba,0x88,0x7b,0xf5,0x6e
2942 };
2943
Andy Polyakov03e389c2011-09-14 20:48:49 +00002944__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002945static const unsigned char p_256_sha512_personalizationstring[] =
2946 {
2947 0xea,0x25,0x60,0xd0,0x5d,0xd8,0x9c,0x8d,0x43,0x23,0x49,0x0a,
2948 0xd5,0x57,0xf3,0x54
2949 };
2950
Andy Polyakov03e389c2011-09-14 20:48:49 +00002951__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002952static const unsigned char p_256_sha512_additionalinput[] =
2953 {
2954 0x8e,0xe8,0xfd,0x2e,0xcd,0x27,0xc6,0x7e,0x7a,0xf8,0xe7,0x11,
2955 0xb8,0x0d,0x20,0x36
2956 };
2957
Andy Polyakov03e389c2011-09-14 20:48:49 +00002958__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002959static const unsigned char p_256_sha512_int_returnedbits[] =
2960 {
2961 0x57,0x18,0x20,0x51,0xd7,0x57,0x13,0xb0,0xa0,0x8f,0x92,0xd2,
2962 0xf5,0xa0,0x85,0xf3,0xac,0x64,0xb7,0x6b,0x94,0xde,0x9f,0xda,
2963 0x0a,0x04,0x11,0xdf,0x52,0x27
2964 };
2965
Andy Polyakov03e389c2011-09-14 20:48:49 +00002966__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002967static const unsigned char p_256_sha512_entropyinputreseed[] =
2968 {
2969 0x89,0x1d,0x17,0x0c,0xe4,0x82,0x34,0xe7,0x81,0x6c,0x47,0x47,
2970 0xc6,0x49,0x50,0x3e
2971 };
2972
Andy Polyakov03e389c2011-09-14 20:48:49 +00002973__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002974static const unsigned char p_256_sha512_additionalinputreseed[] =
2975 {
2976 0xe7,0xe4,0x88,0x00,0xa7,0xc9,0xb7,0x6b,0x70,0xda,0xe3,0xf0,
2977 0x44,0xa9,0x02,0xf6
2978 };
2979
Andy Polyakov03e389c2011-09-14 20:48:49 +00002980__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002981static const unsigned char p_256_sha512_additionalinput2[] =
2982 {
2983 0x09,0x9f,0xd2,0xe8,0xb2,0x0e,0x6e,0x89,0xf5,0x73,0x1c,0x1f,
2984 0x93,0xf2,0x76,0xb2
2985 };
2986
Andy Polyakov03e389c2011-09-14 20:48:49 +00002987__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002988static const unsigned char p_256_sha512_returnedbits[] =
2989 {
2990 0xdd,0x42,0x2a,0x7b,0x4f,0x84,0x07,0xfa,0x4d,0x17,0x9a,0x2e,
2991 0x48,0xba,0xbf,0xc5,0x1c,0x42,0xc7,0xc3,0x63,0x4f,0x79,0xb0,
2992 0xc1,0x54,0x1d,0xa6,0x0a,0x1c
2993 };
2994
2995
2996/* P-384 SHA-224 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00002997__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00002998static const unsigned char p_384_sha224_pr_entropyinput[] =
2999 {
3000 0x34,0xf0,0x89,0xac,0x46,0x33,0xe2,0x7f,0x8c,0x02,0x65,0x09,
3001 0xe1,0xcf,0x93,0x5b,0x10,0xbc,0xb0,0x43,0x4f,0xc7,0x62,0x19
3002 };
3003
Andy Polyakov03e389c2011-09-14 20:48:49 +00003004__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003005static const unsigned char p_384_sha224_pr_nonce[] =
3006 {
3007 0x55,0x30,0xdf,0xa9,0xfb,0xbe,0x4a,0x2e,0x1d,0x03,0xf5,0x91
3008 };
3009
Andy Polyakov03e389c2011-09-14 20:48:49 +00003010__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003011static const unsigned char p_384_sha224_pr_personalizationstring[] =
3012 {
3013 0x35,0xc7,0x3a,0x7b,0x5a,0x4e,0xd4,0x1a,0x82,0xe2,0xf5,0xed,
3014 0x40,0x61,0x4b,0xf4,0xb9,0xcf,0xd0,0xc1,0xe2,0x41,0x23,0x04
3015 };
3016
Andy Polyakov03e389c2011-09-14 20:48:49 +00003017__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003018static const unsigned char p_384_sha224_pr_additionalinput[] =
3019 {
3020 0xec,0xef,0x64,0xfb,0x92,0xbb,0xdf,0x8b,0xc8,0xf2,0xad,0xd8,
3021 0x93,0x21,0x6f,0x11,0xde,0x37,0x52,0xe3,0x16,0x49,0xc7,0xe1
3022 };
3023
Andy Polyakov03e389c2011-09-14 20:48:49 +00003024__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003025static const unsigned char p_384_sha224_pr_entropyinputpr[] =
3026 {
3027 0x59,0xb0,0x7e,0x34,0x49,0x29,0x7e,0x91,0x92,0x91,0x0c,0xca,
3028 0x8e,0x31,0x62,0x06,0xab,0xf4,0x81,0x80,0xa4,0x55,0x8f,0x0f
3029 };
3030
Andy Polyakov03e389c2011-09-14 20:48:49 +00003031__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003032static const unsigned char p_384_sha224_pr_int_returnedbits[] =
3033 {
3034 0x29,0xd9,0x3a,0x95,0xb1,0x34,0xff,0x73,0x06,0x1e,0x08,0x43,
3035 0xd7,0x1d,0x53,0xd1,0xcf,0x09,0xd2,0x83,0x04,0x44,0x29,0x9d,
3036 0x0d,0x18,0x76,0x94,0xa8,0x98,0xb4,0xc1,0xb0,0x31,0xbc,0xe6,
3037 0xf0,0xc7,0x57,0x35,0x5d,0x32,0x78,0x9e,0x1d,0x2a
3038 };
3039
Andy Polyakov03e389c2011-09-14 20:48:49 +00003040__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003041static const unsigned char p_384_sha224_pr_additionalinput2[] =
3042 {
3043 0x56,0x8c,0x6f,0x29,0xd6,0x25,0x9f,0xb8,0x6a,0x1d,0x70,0x5f,
3044 0x6a,0xe7,0xe2,0x2e,0xcc,0x6b,0x78,0x0a,0x3f,0x54,0x73,0x97
3045 };
3046
Andy Polyakov03e389c2011-09-14 20:48:49 +00003047__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003048static const unsigned char p_384_sha224_pr_entropyinputpr2[] =
3049 {
3050 0xe3,0x91,0x20,0x13,0x78,0xc6,0x01,0xfd,0x82,0xd7,0x43,0x1e,
3051 0xed,0x85,0x4a,0xe2,0x0c,0x6f,0xdc,0x43,0x5f,0x7c,0xfd,0xd0
3052 };
3053
Andy Polyakov03e389c2011-09-14 20:48:49 +00003054__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003055static const unsigned char p_384_sha224_pr_returnedbits[] =
3056 {
3057 0x89,0xa9,0x17,0xd8,0xcb,0x73,0x17,0x69,0x78,0x69,0x50,0x58,
3058 0x74,0xe4,0x8c,0x6f,0x5c,0xfa,0x6e,0x01,0xb3,0xf0,0xce,0xa9,
3059 0xd0,0xc0,0x40,0xb3,0x20,0x78,0xe2,0xdb,0xec,0x1f,0x73,0xea,
3060 0x2e,0xa6,0xf1,0xc8,0xfe,0x7c,0xe7,0x68,0xf7,0x86
3061 };
3062
3063
3064/* P-384 SHA-224 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003065__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003066static const unsigned char p_384_sha224_entropyinput[] =
3067 {
3068 0x44,0x2c,0xc3,0xc6,0x20,0xe6,0x61,0xec,0xd1,0x2b,0xdf,0x18,
3069 0x2e,0xc5,0x4a,0xd4,0x80,0x55,0xbd,0x54,0x89,0x01,0x7b,0xbb
3070 };
3071
Andy Polyakov03e389c2011-09-14 20:48:49 +00003072__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003073static const unsigned char p_384_sha224_nonce[] =
3074 {
3075 0x16,0x27,0x4b,0xb3,0x0f,0x01,0xd0,0xe6,0x9f,0x5c,0x44,0xa4
3076 };
3077
Andy Polyakov03e389c2011-09-14 20:48:49 +00003078__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003079static const unsigned char p_384_sha224_personalizationstring[] =
3080 {
3081 0x55,0x26,0x3e,0xee,0xaa,0x1b,0x35,0x27,0xef,0x18,0x28,0x62,
3082 0x51,0x1e,0xbc,0x4c,0x64,0x0d,0xf8,0x20,0xe6,0x0a,0x1d,0xaa
3083 };
3084
Andy Polyakov03e389c2011-09-14 20:48:49 +00003085__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003086static const unsigned char p_384_sha224_additionalinput[] =
3087 {
3088 0x27,0x08,0x22,0x32,0x4a,0xd6,0xc6,0x51,0xff,0xc5,0xb7,0x8f,
3089 0xb4,0x3e,0xa0,0x6e,0xe2,0x55,0xa1,0xf1,0x2e,0x0d,0x89,0x91
3090 };
3091
Andy Polyakov03e389c2011-09-14 20:48:49 +00003092__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003093static const unsigned char p_384_sha224_int_returnedbits[] =
3094 {
3095 0x85,0x0e,0xe3,0xde,0xed,0x40,0xdc,0xec,0x9a,0x2d,0x65,0x24,
3096 0x2b,0x56,0xd6,0xce,0x7c,0x40,0x07,0xe5,0x61,0x64,0xe5,0xac,
3097 0x6e,0x48,0xa3,0xda,0x7d,0x4c,0xd6,0x7d,0xd0,0x69,0xa8,0x93,
3098 0xa7,0xb1,0x91,0xba,0x0d,0x81,0x8f,0x04,0xaf,0x91
3099 };
3100
Andy Polyakov03e389c2011-09-14 20:48:49 +00003101__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003102static const unsigned char p_384_sha224_entropyinputreseed[] =
3103 {
3104 0x27,0x57,0xc2,0x22,0xa6,0x70,0xb9,0x74,0x86,0x59,0x8c,0xff,
3105 0x7d,0x10,0x0c,0xe3,0x24,0xf1,0x95,0xbd,0x99,0x84,0xca,0x11
3106 };
3107
Andy Polyakov03e389c2011-09-14 20:48:49 +00003108__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003109static const unsigned char p_384_sha224_additionalinputreseed[] =
3110 {
3111 0x5a,0xc3,0x47,0x2c,0x9c,0x1d,0xe0,0x43,0x3b,0x1b,0x01,0xed,
3112 0x86,0x5d,0x1b,0x3f,0x45,0xb1,0x8e,0xa9,0x79,0x7b,0x88,0x01
3113 };
3114
Andy Polyakov03e389c2011-09-14 20:48:49 +00003115__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003116static const unsigned char p_384_sha224_additionalinput2[] =
3117 {
3118 0x7d,0x48,0x91,0xda,0x00,0x60,0x33,0x2c,0x22,0xe4,0x42,0x61,
3119 0xbc,0x70,0x05,0x73,0x22,0x23,0x42,0xda,0x7a,0x2b,0xba,0xbb
3120 };
3121
Andy Polyakov03e389c2011-09-14 20:48:49 +00003122__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003123static const unsigned char p_384_sha224_returnedbits[] =
3124 {
3125 0xfa,0x7d,0x7b,0x35,0x32,0xbe,0x44,0x91,0x90,0xd2,0x69,0x9a,
3126 0x06,0xb8,0x52,0x3e,0x3b,0xcf,0x1e,0x81,0xd3,0x20,0x5f,0x5b,
3127 0x55,0xb6,0xb3,0xc9,0x6b,0xc7,0x0c,0xf1,0xa7,0xbd,0x4a,0x83,
3128 0x25,0x50,0xc3,0x78,0x3f,0x4e,0xe9,0xed,0x6c,0x4c
3129 };
3130
3131
3132/* P-384 SHA-256 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003133__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003134static const unsigned char p_384_sha256_pr_entropyinput[] =
3135 {
3136 0xc6,0xd0,0xc7,0xa3,0x7e,0x2b,0x8c,0xd6,0x23,0xe9,0x9e,0x1f,
3137 0x77,0x30,0xed,0x6a,0xfc,0xe4,0x7b,0xf0,0x6f,0xd6,0xfe,0x05
3138 };
3139
Andy Polyakov03e389c2011-09-14 20:48:49 +00003140__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003141static const unsigned char p_384_sha256_pr_nonce[] =
3142 {
3143 0x67,0x91,0xca,0x93,0xc8,0x1e,0x93,0x13,0x00,0x72,0x4e,0xa2
3144 };
3145
Andy Polyakov03e389c2011-09-14 20:48:49 +00003146__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003147static const unsigned char p_384_sha256_pr_personalizationstring[] =
3148 {
3149 0xa5,0x5b,0x6e,0xeb,0xc9,0x0d,0x42,0x0b,0x41,0xec,0x0b,0x9e,
3150 0xde,0xc1,0x80,0x4d,0xe3,0x86,0xa0,0xfe,0x7e,0x92,0x47,0xa3
3151 };
3152
Andy Polyakov03e389c2011-09-14 20:48:49 +00003153__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003154static const unsigned char p_384_sha256_pr_additionalinput[] =
3155 {
3156 0x9a,0x04,0xa9,0x78,0x48,0xa8,0x77,0x0f,0x38,0x2a,0x54,0x66,
3157 0x34,0xaa,0x31,0xbd,0xf6,0xfb,0xc1,0x14,0xa5,0xcb,0x1c,0xf2
3158 };
3159
Andy Polyakov03e389c2011-09-14 20:48:49 +00003160__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003161static const unsigned char p_384_sha256_pr_entropyinputpr[] =
3162 {
3163 0x19,0x6c,0x48,0xf5,0x64,0xb3,0xb4,0x49,0x6e,0xb8,0xc4,0x8b,
3164 0xab,0xba,0xb5,0x8e,0xa3,0xf1,0x6e,0xe9,0xf6,0x37,0xa1,0x46
3165 };
3166
Andy Polyakov03e389c2011-09-14 20:48:49 +00003167__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003168static const unsigned char p_384_sha256_pr_int_returnedbits[] =
3169 {
3170 0xfd,0x04,0x26,0x4f,0xbd,0x84,0xe3,0x54,0xb2,0x9b,0xb1,0x84,
3171 0x66,0x5f,0x02,0xc0,0xcc,0x69,0x7e,0x4d,0x4f,0xc4,0x00,0x8e,
3172 0x13,0x5d,0xe9,0x0f,0x98,0x71,0xe8,0x7f,0x50,0xd1,0x49,0xc8,
3173 0xae,0x71,0xe9,0x60,0x94,0x90,0xce,0x6d,0xba,0xab
3174 };
3175
Andy Polyakov03e389c2011-09-14 20:48:49 +00003176__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003177static const unsigned char p_384_sha256_pr_additionalinput2[] =
3178 {
3179 0x4d,0x27,0x90,0x17,0x81,0x74,0x4f,0xa4,0x40,0xdf,0x42,0x29,
3180 0xc5,0x37,0xf1,0x31,0x89,0x90,0x27,0x8a,0x96,0xcc,0x68,0x6e
3181 };
3182
Andy Polyakov03e389c2011-09-14 20:48:49 +00003183__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003184static const unsigned char p_384_sha256_pr_entropyinputpr2[] =
3185 {
3186 0x1d,0xbe,0xdf,0x39,0xd8,0x82,0xb2,0x8f,0x7f,0x90,0xac,0x19,
3187 0xc8,0x65,0xf2,0x5a,0xff,0x4e,0xbb,0xcf,0xcd,0xce,0x2c,0xfd
3188 };
3189
Andy Polyakov03e389c2011-09-14 20:48:49 +00003190__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003191static const unsigned char p_384_sha256_pr_returnedbits[] =
3192 {
3193 0x45,0x63,0xac,0xb5,0x1e,0x49,0x99,0x67,0x89,0xd4,0x9c,0xa9,
3194 0xf8,0x5a,0x05,0x0d,0xeb,0xe6,0xc7,0x78,0x8e,0xf1,0xec,0xe3,
3195 0xc8,0x52,0xf1,0xfa,0x0f,0xd0,0xd7,0xbe,0x8a,0x34,0x0a,0x1f,
3196 0x38,0x42,0xc6,0xac,0x61,0xd4,0x32,0xc5,0xd2,0x15
3197 };
3198
3199
3200/* P-384 SHA-256 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003201__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003202static const unsigned char p_384_sha256_entropyinput[] =
3203 {
3204 0x52,0x92,0xc4,0xac,0xce,0xf5,0x35,0xa4,0x15,0xdb,0xa9,0xe1,
3205 0xbc,0x7b,0x08,0xa5,0x27,0x16,0xe3,0x50,0x08,0x2d,0x09,0x2d
3206 };
3207
Andy Polyakov03e389c2011-09-14 20:48:49 +00003208__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003209static const unsigned char p_384_sha256_nonce[] =
3210 {
3211 0xe8,0x14,0x2b,0xee,0xba,0xac,0xe0,0x25,0xd0,0x3b,0x78,0xc5
3212 };
3213
Andy Polyakov03e389c2011-09-14 20:48:49 +00003214__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003215static const unsigned char p_384_sha256_personalizationstring[] =
3216 {
3217 0x28,0x0c,0x86,0x48,0x5e,0xca,0xfa,0x89,0x1f,0x58,0xb8,0x2c,
3218 0x41,0x28,0x3f,0x98,0x71,0x66,0x7b,0xb7,0x32,0xa2,0xe1,0x49
3219 };
3220
Andy Polyakov03e389c2011-09-14 20:48:49 +00003221__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003222static const unsigned char p_384_sha256_additionalinput[] =
3223 {
3224 0xdc,0x59,0xb1,0x23,0x39,0x75,0x1b,0x27,0x24,0x5f,0x7a,0x55,
3225 0x82,0xdc,0xdc,0xe2,0x12,0x65,0xbf,0x8a,0x65,0xdb,0x27,0xdb
3226 };
3227
Andy Polyakov03e389c2011-09-14 20:48:49 +00003228__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003229static const unsigned char p_384_sha256_int_returnedbits[] =
3230 {
3231 0xc0,0x86,0xd8,0x67,0xdd,0xe4,0xce,0x15,0x60,0xad,0x45,0x60,
3232 0x80,0x8b,0x5a,0xb6,0x85,0x6d,0x4a,0xdf,0x8e,0xc0,0x2d,0xbf,
3233 0xa9,0x8c,0x9b,0x8d,0x03,0xca,0xbf,0x3b,0x1f,0xdc,0xc1,0xac,
3234 0xa8,0x0f,0x45,0xd6,0x2e,0xd1,0xe6,0x29,0xb5,0x1c
3235 };
3236
Andy Polyakov03e389c2011-09-14 20:48:49 +00003237__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003238static const unsigned char p_384_sha256_entropyinputreseed[] =
3239 {
3240 0x9f,0x19,0x9f,0xc8,0x18,0x43,0xfc,0x9a,0x97,0xed,0x20,0x13,
3241 0xad,0xc9,0xa0,0x65,0xef,0x38,0xd6,0x2e,0xce,0x4d,0xe1,0x1d
3242 };
3243
Andy Polyakov03e389c2011-09-14 20:48:49 +00003244__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003245static const unsigned char p_384_sha256_additionalinputreseed[] =
3246 {
3247 0xa6,0x27,0x35,0x9f,0x8a,0xaa,0xf5,0xb3,0x60,0x4b,0x16,0x68,
3248 0xdd,0x32,0x2e,0x1b,0xb1,0x34,0x47,0x03,0x45,0x3f,0xb6,0x3e
3249 };
3250
Andy Polyakov03e389c2011-09-14 20:48:49 +00003251__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003252static const unsigned char p_384_sha256_additionalinput2[] =
3253 {
3254 0x76,0x4e,0x5c,0x75,0x33,0xa5,0x94,0x95,0xf4,0x36,0xa5,0x39,
3255 0x28,0xc1,0x74,0xd1,0xfa,0x1d,0x8a,0x40,0x6e,0x84,0x4e,0xc7
3256 };
3257
Andy Polyakov03e389c2011-09-14 20:48:49 +00003258__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003259static const unsigned char p_384_sha256_returnedbits[] =
3260 {
3261 0x50,0x15,0xc9,0x98,0x73,0x71,0x55,0xb7,0x7a,0xf4,0xa5,0xe7,
3262 0xb3,0xe2,0x24,0x2e,0x96,0x5b,0xd1,0xab,0xe8,0x51,0x1f,0xbe,
3263 0x3b,0x1e,0x1f,0xd4,0x18,0x2d,0x99,0xda,0xb8,0xa5,0x98,0x65,
3264 0x1d,0xaa,0x1e,0x46,0x8f,0x6b,0x4f,0xa2,0xd5,0xdf
3265 };
3266
3267
3268/* P-384 SHA-384 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003269__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003270static const unsigned char p_384_sha384_pr_entropyinput[] =
3271 {
3272 0x3b,0x40,0x57,0x65,0x46,0x14,0xa5,0xf6,0x63,0x21,0xe7,0x33,
3273 0xd7,0x38,0xa7,0x54,0x33,0x62,0x08,0x08,0x37,0xef,0xbf,0x22
3274 };
3275
Andy Polyakov03e389c2011-09-14 20:48:49 +00003276__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003277static const unsigned char p_384_sha384_pr_nonce[] =
3278 {
3279 0xf4,0xd4,0x11,0x0a,0x4a,0xdb,0xfc,0xbb,0x08,0x7a,0x20,0x51
3280 };
3281
Andy Polyakov03e389c2011-09-14 20:48:49 +00003282__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003283static const unsigned char p_384_sha384_pr_personalizationstring[] =
3284 {
3285 0x5d,0x5b,0x9d,0xe5,0x45,0x62,0x5b,0xd0,0xa8,0x1b,0xea,0xe3,
3286 0xbd,0x59,0xd4,0xab,0x50,0xbe,0x5d,0x21,0x5d,0x85,0x42,0x16
3287 };
3288
Andy Polyakov03e389c2011-09-14 20:48:49 +00003289__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003290static const unsigned char p_384_sha384_pr_additionalinput[] =
3291 {
3292 0xd9,0xac,0x4b,0x76,0x18,0x46,0xba,0x30,0x88,0xdf,0x41,0xdb,
3293 0x72,0x9b,0x4d,0xb7,0xbb,0x12,0xd2,0xd8,0x00,0xa0,0x81,0x14
3294 };
3295
Andy Polyakov03e389c2011-09-14 20:48:49 +00003296__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003297static const unsigned char p_384_sha384_pr_entropyinputpr[] =
3298 {
3299 0x46,0x6d,0x66,0xaf,0xcf,0xb3,0x59,0x37,0x52,0x7e,0xa0,0xce,
3300 0x6d,0xaa,0x40,0xac,0x87,0xce,0x01,0x76,0x8f,0xac,0x49,0x42
3301 };
3302
Andy Polyakov03e389c2011-09-14 20:48:49 +00003303__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003304static const unsigned char p_384_sha384_pr_int_returnedbits[] =
3305 {
3306 0xe1,0xea,0x43,0x73,0x35,0xf8,0x1f,0x2d,0xab,0x82,0x82,0x7f,
3307 0x82,0xca,0x78,0xb4,0x9b,0xfd,0x89,0xbc,0x83,0xcb,0x8d,0x09,
3308 0x44,0xb6,0xd6,0x0c,0xd9,0x43,0x97,0x5c,0xf8,0x51,0x5d,0xe3,
3309 0x0c,0x36,0xe1,0xaf,0xd3,0xbd,0x43,0x08,0xb8,0x65
3310 };
3311
Andy Polyakov03e389c2011-09-14 20:48:49 +00003312__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003313static const unsigned char p_384_sha384_pr_additionalinput2[] =
3314 {
3315 0x6f,0xe5,0x27,0xa8,0x0c,0x4b,0xad,0x03,0xba,0xaa,0x70,0xc5,
3316 0xc6,0x4c,0xa6,0x6b,0xd9,0xb4,0x74,0x7a,0xea,0x4b,0x07,0xc8
3317 };
3318
Andy Polyakov03e389c2011-09-14 20:48:49 +00003319__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003320static const unsigned char p_384_sha384_pr_entropyinputpr2[] =
3321 {
3322 0xec,0xc8,0x0c,0x3a,0x39,0xd3,0x2e,0xa9,0xab,0x57,0x89,0x1d,
3323 0x85,0x23,0x54,0x40,0xdf,0x15,0xbd,0x65,0x41,0xe5,0xaf,0xfb
3324 };
3325
Andy Polyakov03e389c2011-09-14 20:48:49 +00003326__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003327static const unsigned char p_384_sha384_pr_returnedbits[] =
3328 {
3329 0x3f,0xe0,0xa9,0x90,0x8e,0x27,0x2c,0xbe,0xfe,0xdd,0x35,0x67,
3330 0x4e,0x9b,0x9b,0x54,0xf3,0xb9,0x53,0xf4,0x62,0x8a,0xad,0x67,
3331 0x3e,0x68,0x92,0xd5,0xdb,0xd7,0x8f,0xb1,0xf7,0x10,0x5e,0xc6,
3332 0xc3,0xe8,0x45,0x60,0xde,0x05,0x4e,0x94,0xbc,0x43
3333 };
3334
3335
3336/* P-384 SHA-384 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003337__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003338static const unsigned char p_384_sha384_entropyinput[] =
3339 {
3340 0x52,0x51,0xd7,0x2a,0x26,0xda,0xeb,0x5c,0xfb,0x23,0x47,0x49,
3341 0xf7,0x04,0xc6,0x62,0xed,0x72,0x3e,0x70,0x41,0x87,0x75,0x42
3342 };
3343
Andy Polyakov03e389c2011-09-14 20:48:49 +00003344__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003345static const unsigned char p_384_sha384_nonce[] =
3346 {
3347 0x63,0x66,0x35,0x65,0x9b,0xe5,0xd3,0xcb,0x94,0x82,0x81,0x05
3348 };
3349
Andy Polyakov03e389c2011-09-14 20:48:49 +00003350__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003351static const unsigned char p_384_sha384_personalizationstring[] =
3352 {
3353 0x52,0xa4,0xce,0x0e,0x4b,0x72,0x21,0x63,0xad,0x21,0x7f,0x60,
3354 0x9e,0x5d,0xa7,0xff,0xef,0xf1,0xfb,0x04,0xdb,0x30,0x5a,0x0c
3355 };
3356
Andy Polyakov03e389c2011-09-14 20:48:49 +00003357__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003358static const unsigned char p_384_sha384_additionalinput[] =
3359 {
3360 0xd7,0xde,0x8e,0xc4,0xeb,0x69,0xd2,0x2b,0xed,0x00,0x4a,0x6e,
3361 0x3a,0x13,0xf5,0x48,0xe4,0x83,0xad,0x81,0x4d,0x68,0xe5,0x57
3362 };
3363
Andy Polyakov03e389c2011-09-14 20:48:49 +00003364__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003365static const unsigned char p_384_sha384_int_returnedbits[] =
3366 {
3367 0xbc,0x2d,0x9b,0x3b,0xbb,0x75,0xf4,0xdf,0xda,0x0f,0x10,0x88,
3368 0xb4,0x95,0x4c,0xf3,0xfa,0xff,0x3d,0x30,0x53,0x0b,0xa7,0xb9,
3369 0x95,0x27,0xc3,0x11,0xc9,0xef,0xd4,0xfe,0x84,0x9d,0xe0,0x76,
3370 0xcc,0x39,0x83,0xab,0x3f,0x31,0xe7,0x6d,0x44,0x0f
3371 };
3372
Andy Polyakov03e389c2011-09-14 20:48:49 +00003373__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003374static const unsigned char p_384_sha384_entropyinputreseed[] =
3375 {
3376 0xef,0x0f,0xa7,0x4e,0x90,0xe1,0x57,0x9e,0xce,0x52,0xe1,0xa0,
3377 0xd3,0x0f,0x06,0xa4,0xfe,0x5d,0x55,0x60,0xe2,0xc5,0x45,0x3b
3378 };
3379
Andy Polyakov03e389c2011-09-14 20:48:49 +00003380__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003381static const unsigned char p_384_sha384_additionalinputreseed[] =
3382 {
3383 0xec,0x87,0x9e,0x8e,0x58,0xb8,0xa3,0xd3,0x3e,0x49,0x22,0xf5,
3384 0x68,0x5b,0x60,0x6e,0x7b,0x73,0xd5,0xa4,0x7c,0x9e,0xcd,0xba
3385 };
3386
Andy Polyakov03e389c2011-09-14 20:48:49 +00003387__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003388static const unsigned char p_384_sha384_additionalinput2[] =
3389 {
3390 0x1c,0xd2,0xce,0x30,0x31,0x8b,0xbb,0xaf,0xbb,0xa8,0xae,0x20,
3391 0xa3,0x6b,0xb5,0x37,0xfe,0x09,0x91,0x1a,0x63,0x33,0x29,0x8c
3392 };
3393
Andy Polyakov03e389c2011-09-14 20:48:49 +00003394__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003395static const unsigned char p_384_sha384_returnedbits[] =
3396 {
3397 0xd7,0x36,0x7b,0x33,0x50,0x6a,0x59,0xb0,0x7c,0xb3,0xc4,0xe9,
3398 0xc2,0x16,0x41,0x7b,0xe4,0x4c,0xd8,0x7c,0x6b,0x74,0x00,0x31,
3399 0xd1,0x97,0x2d,0x7a,0x97,0x22,0x45,0xe6,0xf0,0xcd,0x8e,0xa5,
3400 0xeb,0xab,0x37,0xd6,0xb7,0xb1,0x9c,0x42,0xfb,0xcf
3401 };
3402
3403
3404/* P-384 SHA-512 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003405__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003406static const unsigned char p_384_sha512_pr_entropyinput[] =
3407 {
3408 0x14,0xdf,0x91,0xdb,0xad,0xe2,0x22,0xe5,0x56,0xa1,0x88,0xbd,
3409 0x42,0x73,0xf7,0x8d,0xdc,0x99,0x54,0x99,0x8a,0xab,0x11,0x4b
3410 };
3411
Andy Polyakov03e389c2011-09-14 20:48:49 +00003412__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003413static const unsigned char p_384_sha512_pr_nonce[] =
3414 {
3415 0x10,0x49,0x5d,0xf6,0x5d,0x17,0xa7,0xa6,0xd8,0xc7,0xc8,0xe7
3416 };
3417
Andy Polyakov03e389c2011-09-14 20:48:49 +00003418__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003419static const unsigned char p_384_sha512_pr_personalizationstring[] =
3420 {
3421 0x61,0x59,0xc5,0x8e,0x30,0x77,0x05,0x75,0x87,0xff,0x0b,0x06,
3422 0x03,0x79,0xa5,0x8b,0x59,0xb8,0x32,0xc9,0x19,0x47,0x7d,0x0e
3423 };
3424
Andy Polyakov03e389c2011-09-14 20:48:49 +00003425__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003426static const unsigned char p_384_sha512_pr_additionalinput[] =
3427 {
3428 0x41,0xd5,0x73,0x17,0x13,0x4c,0xe8,0x7c,0x83,0x45,0x84,0xf1,
3429 0x72,0xae,0x1d,0xea,0x08,0x0a,0x56,0xec,0x16,0xf9,0x1f,0xb6
3430 };
3431
Andy Polyakov03e389c2011-09-14 20:48:49 +00003432__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003433static const unsigned char p_384_sha512_pr_entropyinputpr[] =
3434 {
3435 0xa6,0x85,0xa8,0xa4,0x0f,0xad,0x96,0x32,0x39,0x5e,0x86,0xb0,
3436 0x8b,0xda,0xb2,0xf0,0x38,0x75,0xf8,0xe2,0xc0,0xbf,0x77,0x62
3437 };
3438
Andy Polyakov03e389c2011-09-14 20:48:49 +00003439__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003440static const unsigned char p_384_sha512_pr_int_returnedbits[] =
3441 {
3442 0xc8,0xf2,0x0c,0x8a,0xe7,0x72,0xe2,0xa3,0x5e,0x0a,0xaa,0x21,
3443 0x3a,0x92,0x08,0x70,0xaf,0xc2,0x1e,0xed,0xd1,0x2c,0xa0,0xbc,
3444 0xcb,0x0e,0x46,0xb9,0x34,0x97,0x62,0x03,0x4a,0x93,0xe3,0x6f,
3445 0x92,0x08,0x71,0x16,0xce,0x3e,0x5b,0x6b,0x9a,0x52
3446 };
3447
Andy Polyakov03e389c2011-09-14 20:48:49 +00003448__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003449static const unsigned char p_384_sha512_pr_additionalinput2[] =
3450 {
3451 0x72,0x72,0xb3,0x26,0x05,0x49,0xf0,0x34,0xb6,0x04,0x75,0x6a,
3452 0x0a,0x86,0x9c,0x8f,0xe5,0x3d,0x90,0x26,0x42,0x92,0x2a,0x77
3453 };
3454
Andy Polyakov03e389c2011-09-14 20:48:49 +00003455__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003456static const unsigned char p_384_sha512_pr_entropyinputpr2[] =
3457 {
3458 0xf1,0xda,0x51,0xa2,0x21,0x54,0x2d,0x6d,0xec,0x92,0xe5,0x8f,
3459 0x81,0x96,0x21,0x60,0x93,0x33,0x3d,0xfb,0x92,0xfe,0xae,0xcb
3460 };
3461
Andy Polyakov03e389c2011-09-14 20:48:49 +00003462__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003463static const unsigned char p_384_sha512_pr_returnedbits[] =
3464 {
3465 0x12,0x87,0x30,0xc4,0x87,0x61,0x58,0xab,0x79,0x05,0xb4,0xfd,
3466 0x47,0x95,0x86,0x4c,0x24,0x45,0xb0,0x4b,0x23,0x9a,0xe6,0x72,
3467 0x03,0xd8,0xc1,0x8a,0xbc,0xd0,0x3b,0xb5,0x8e,0x84,0x9f,0x2d,
3468 0xa4,0xf6,0x9b,0x89,0xd6,0x92,0x72,0x70,0x63,0xb9
3469 };
3470
3471
3472/* P-384 SHA-512 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003473__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003474static const unsigned char p_384_sha512_entropyinput[] =
3475 {
3476 0xc7,0x7b,0x0e,0xe1,0x06,0x66,0x63,0x87,0x15,0x09,0x0a,0xe2,
3477 0xbe,0xdc,0xd5,0x3c,0x65,0xce,0xc5,0x25,0xfd,0xf2,0x23,0xbe
3478 };
3479
Andy Polyakov03e389c2011-09-14 20:48:49 +00003480__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003481static const unsigned char p_384_sha512_nonce[] =
3482 {
3483 0x5c,0xe8,0xa7,0x7d,0x45,0x8d,0x89,0xcd,0xb7,0xa3,0x4a,0x98
3484 };
3485
Andy Polyakov03e389c2011-09-14 20:48:49 +00003486__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003487static const unsigned char p_384_sha512_personalizationstring[] =
3488 {
3489 0xa9,0x0e,0x29,0xff,0x2f,0x4e,0x92,0xe3,0xbd,0xcf,0x25,0xfa,
3490 0x96,0xdf,0x18,0x16,0x9a,0x99,0xb0,0x07,0xfe,0x51,0x24,0x9e
3491 };
3492
Andy Polyakov03e389c2011-09-14 20:48:49 +00003493__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003494static const unsigned char p_384_sha512_additionalinput[] =
3495 {
3496 0x1a,0x19,0xdf,0x08,0x35,0x94,0x83,0x30,0xab,0x01,0x98,0x2b,
3497 0xa5,0xe2,0x6d,0x99,0xe7,0x30,0xd5,0xef,0xf1,0xa7,0x61,0x61
3498 };
3499
Andy Polyakov03e389c2011-09-14 20:48:49 +00003500__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003501static const unsigned char p_384_sha512_int_returnedbits[] =
3502 {
3503 0xa2,0x80,0xdb,0xa3,0x6c,0x7b,0x74,0x57,0x65,0x9d,0x32,0x53,
3504 0xaf,0xcc,0x91,0x21,0x59,0x3c,0xf2,0xf7,0xf7,0x06,0x29,0xee,
3505 0xce,0x1f,0x3d,0xdb,0x2c,0x9c,0xb9,0xfb,0xf1,0xe1,0xf1,0xac,
3506 0x90,0xcd,0x6e,0xc5,0x97,0x1e,0xa2,0x90,0x2b,0x7e
3507 };
3508
Andy Polyakov03e389c2011-09-14 20:48:49 +00003509__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003510static const unsigned char p_384_sha512_entropyinputreseed[] =
3511 {
3512 0xf4,0x57,0x3d,0xc5,0x13,0x99,0xb2,0x4d,0xdd,0xdf,0xf3,0xa0,
3513 0x7b,0x82,0x8a,0x22,0x9a,0x02,0x9c,0xac,0x6f,0xb4,0x07,0xd8
3514 };
3515
Andy Polyakov03e389c2011-09-14 20:48:49 +00003516__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003517static const unsigned char p_384_sha512_additionalinputreseed[] =
3518 {
3519 0x12,0x98,0x84,0xa1,0xb5,0x26,0x7e,0x55,0xe1,0xd1,0x00,0x8f,
3520 0x50,0x96,0x30,0xa7,0x33,0xf5,0xb4,0x76,0x93,0x7a,0x2d,0x82
3521 };
3522
Andy Polyakov03e389c2011-09-14 20:48:49 +00003523__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003524static const unsigned char p_384_sha512_additionalinput2[] =
3525 {
3526 0xfd,0x4c,0x76,0x61,0x48,0x40,0xa7,0x1e,0xa1,0xe9,0x25,0xcc,
3527 0xa6,0x21,0x4e,0x87,0xc9,0x27,0x06,0x3e,0x89,0x8b,0x18,0x3c
3528 };
3529
Andy Polyakov03e389c2011-09-14 20:48:49 +00003530__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003531static const unsigned char p_384_sha512_returnedbits[] =
3532 {
3533 0x90,0xa9,0xd4,0x1a,0x7f,0xb5,0xdd,0x66,0x5f,0xa7,0xc9,0x53,
3534 0x57,0xfc,0xc1,0x42,0x93,0x09,0xb4,0xf6,0x6c,0x7a,0xce,0x16,
3535 0x5e,0xed,0xad,0xea,0x0e,0x34,0x06,0xbb,0x80,0x89,0xba,0xd3,
3536 0xfe,0x49,0x21,0x4e,0x28,0xa7,0xfe,0xdb,0x27,0xfe
3537 };
3538
3539
3540/* P-521 SHA-256 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003541__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003542static const unsigned char p_521_sha256_pr_entropyinput[] =
3543 {
3544 0x1a,0xb3,0x78,0x1e,0x14,0x19,0x83,0x05,0xac,0xb0,0x95,0xe1,
3545 0x10,0xa3,0xc4,0xbc,0x8e,0x13,0x2c,0xf2,0xad,0x63,0x25,0x1f,
3546 0x88,0xc4,0xc4,0x4e,0x6d,0x03,0x96,0x5e
3547 };
3548
Andy Polyakov03e389c2011-09-14 20:48:49 +00003549__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003550static const unsigned char p_521_sha256_pr_nonce[] =
3551 {
3552 0xd8,0x3d,0x1c,0x7e,0x4a,0x8e,0x28,0x4a,0xd6,0xf7,0xe8,0x0c,
3553 0x54,0x69,0x31,0xe4
3554 };
3555
Andy Polyakov03e389c2011-09-14 20:48:49 +00003556__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003557static const unsigned char p_521_sha256_pr_personalizationstring[] =
3558 {
3559 0xc7,0xa6,0xb8,0xc0,0x25,0xaa,0x88,0xf5,0xc7,0x6a,0xd2,0xfc,
3560 0x7a,0x07,0xdd,0xf9,0x02,0xfb,0x79,0x36,0x17,0xc3,0x23,0x6e,
3561 0x9e,0xcd,0x5c,0x5d,0x2b,0xa3,0x45,0x86
3562 };
3563
Andy Polyakov03e389c2011-09-14 20:48:49 +00003564__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003565static const unsigned char p_521_sha256_pr_additionalinput[] =
3566 {
3567 0xde,0xc5,0x1d,0x59,0x4d,0x25,0x3c,0x4f,0xbb,0x81,0xb3,0x61,
3568 0xd4,0x84,0x6e,0x4e,0x52,0x80,0xcd,0x5d,0x1a,0xb9,0xdf,0x44,
3569 0x94,0xf2,0xde,0x54,0x49,0x37,0xea,0xe8
3570 };
3571
Andy Polyakov03e389c2011-09-14 20:48:49 +00003572__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003573static const unsigned char p_521_sha256_pr_entropyinputpr[] =
3574 {
3575 0x4e,0xe6,0x23,0xa4,0x97,0xaf,0x70,0x36,0xed,0xed,0x37,0x6b,
3576 0xc9,0x31,0x95,0x1e,0x07,0x42,0x42,0x4b,0x24,0x06,0xee,0xa0,
3577 0xb5,0xb1,0xd7,0x40,0x29,0x2e,0xa8,0xd8
3578 };
3579
Andy Polyakov03e389c2011-09-14 20:48:49 +00003580__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003581static const unsigned char p_521_sha256_pr_int_returnedbits[] =
3582 {
3583 0x7d,0x64,0x63,0x00,0xa5,0x98,0x9b,0xf3,0xf4,0x09,0x44,0x64,
3584 0xcc,0xa8,0x99,0xbc,0x6e,0xac,0x67,0xb9,0xb1,0xb5,0x3b,0xe8,
3585 0x99,0xde,0x91,0xe8,0x8b,0x95,0x09,0xcc,0x35,0xde,0xd7,0x78,
3586 0x97,0x47,0x7d,0xa0,0x5f,0xe4,0x48,0x1e,0x5f,0x14,0xa0,0xda,
3587 0xd6,0xac,0x59,0xf0,0x31,0xc6,0xb4,0x78,0x70,0x32,0x87,0xd8,
3588 0xbb,0xe1,0x8e
3589 };
3590
Andy Polyakov03e389c2011-09-14 20:48:49 +00003591__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003592static const unsigned char p_521_sha256_pr_additionalinput2[] =
3593 {
3594 0xda,0x8a,0xbb,0x5e,0x1f,0xc7,0x4b,0x7e,0x2b,0x09,0xdd,0x64,
3595 0x42,0x4b,0x19,0x66,0x16,0xb6,0xec,0x1c,0x46,0xd1,0x23,0x26,
3596 0x16,0xe9,0x4a,0x3b,0x6e,0xc1,0xc6,0x74
3597 };
3598
Andy Polyakov03e389c2011-09-14 20:48:49 +00003599__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003600static const unsigned char p_521_sha256_pr_entropyinputpr2[] =
3601 {
3602 0x7b,0x4d,0x60,0x68,0xb1,0xd7,0xbe,0xf7,0x40,0xb5,0x84,0xa8,
3603 0x3b,0x49,0x38,0x8a,0xc2,0x40,0x44,0x0b,0x80,0xc8,0x94,0xbf,
3604 0x6a,0xf5,0x72,0x74,0xb5,0x6f,0x9f,0x7a
3605 };
3606
Andy Polyakov03e389c2011-09-14 20:48:49 +00003607__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003608static const unsigned char p_521_sha256_pr_returnedbits[] =
3609 {
3610 0xb2,0x4e,0x40,0x75,0xaf,0xcf,0x93,0x13,0xaf,0x97,0x49,0x49,
3611 0x5f,0xdf,0x5d,0x21,0x2f,0x99,0x7d,0xe9,0xb8,0x98,0x3e,0x1f,
3612 0x06,0xcc,0xca,0xb6,0xcf,0x6d,0xd2,0xd9,0x85,0x45,0x1a,0xd5,
3613 0x39,0x6a,0x26,0x6c,0x7b,0x7b,0x72,0x18,0xa2,0xf1,0x99,0x7e,
3614 0xe1,0xa0,0xa6,0x54,0xe4,0x0f,0x73,0x48,0xc2,0x54,0xc2,0xc3,
3615 0x4f,0x53,0xb3
3616 };
3617
3618
3619/* P-521 SHA-256 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003620__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003621static const unsigned char p_521_sha256_entropyinput[] =
3622 {
3623 0x69,0x5d,0x57,0x6d,0xe8,0xb1,0x0a,0x01,0xf8,0x1d,0xb9,0x5d,
3624 0xbd,0xfb,0xec,0x38,0xc9,0xd3,0x70,0x88,0x9a,0x8d,0xf2,0x4e,
3625 0x55,0xd6,0xde,0xa2,0xc4,0xd2,0x78,0xfb
3626 };
3627
Andy Polyakov03e389c2011-09-14 20:48:49 +00003628__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003629static const unsigned char p_521_sha256_nonce[] =
3630 {
3631 0x12,0xd2,0x1a,0xac,0xaf,0x49,0xb2,0xa4,0x9c,0x33,0x2e,0xdb,
3632 0x46,0xd1,0xc7,0x23
3633 };
3634
Andy Polyakov03e389c2011-09-14 20:48:49 +00003635__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003636static const unsigned char p_521_sha256_personalizationstring[] =
3637 {
3638 0xb7,0xe2,0xeb,0xa9,0x88,0xb5,0x24,0xf3,0x82,0xc6,0x83,0xe3,
3639 0x5e,0x12,0x32,0xd1,0x50,0x16,0xd4,0x96,0x5e,0x62,0x0b,0xb8,
3640 0x02,0x5b,0x2e,0xd2,0x01,0x52,0x4a,0x48
3641 };
3642
Andy Polyakov03e389c2011-09-14 20:48:49 +00003643__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003644static const unsigned char p_521_sha256_additionalinput[] =
3645 {
3646 0xf4,0xa2,0xfa,0xae,0x18,0x94,0xdb,0x12,0x0b,0xa8,0x1e,0x4e,
3647 0x7f,0xdb,0x3d,0x9e,0x06,0xe2,0x77,0x53,0x2b,0x76,0x0a,0xbd,
3648 0xcc,0xdb,0xae,0x5a,0xbc,0xb0,0x53,0x3f
3649 };
3650
Andy Polyakov03e389c2011-09-14 20:48:49 +00003651__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003652static const unsigned char p_521_sha256_int_returnedbits[] =
3653 {
3654 0xbd,0x16,0xe4,0x4d,0x62,0xa1,0xb4,0x4f,0x3f,0xba,0x27,0x58,
3655 0xa3,0xa1,0x6f,0x92,0xe9,0xe9,0x48,0xd0,0x64,0xba,0xb2,0x17,
3656 0x54,0x9a,0xcc,0x8d,0xae,0x2e,0x68,0x62,0x42,0xab,0x55,0x24,
3657 0x47,0x0f,0x71,0xd2,0xa8,0x78,0xf0,0x5b,0x76,0xd0,0x01,0xd7,
3658 0x86,0xca,0xe5,0xa4,0x41,0x82,0x73,0x51,0x5e,0xa4,0x12,0xa4,
3659 0xe1,0xea,0xbd
3660 };
3661
Andy Polyakov03e389c2011-09-14 20:48:49 +00003662__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003663static const unsigned char p_521_sha256_entropyinputreseed[] =
3664 {
3665 0xda,0x4e,0x7f,0xf0,0x7d,0x4d,0xd8,0x74,0xa2,0x74,0x08,0x82,
3666 0x1b,0xe2,0xab,0xc9,0xd2,0xae,0x07,0xc3,0xc5,0x94,0x2f,0xfa,
3667 0x40,0xe0,0x5a,0x95,0x5b,0x99,0x7f,0x28
3668 };
3669
Andy Polyakov03e389c2011-09-14 20:48:49 +00003670__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003671static const unsigned char p_521_sha256_additionalinputreseed[] =
3672 {
3673 0xf3,0x7d,0x64,0xae,0x7a,0xb3,0x9c,0xee,0x0a,0xd3,0x1a,0x56,
3674 0x3d,0x65,0xac,0x33,0xcc,0x3c,0xb0,0x4a,0x43,0xe3,0xf4,0xe7,
3675 0x05,0x49,0xcc,0x28,0x81,0xaf,0x73,0x8a
3676 };
3677
Andy Polyakov03e389c2011-09-14 20:48:49 +00003678__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003679static const unsigned char p_521_sha256_additionalinput2[] =
3680 {
3681 0x80,0xf2,0xdc,0xd2,0x0e,0x77,0x89,0xd7,0x46,0x67,0x31,0x28,
3682 0xf6,0xe1,0x1a,0x3f,0x70,0xdb,0x42,0x57,0xc7,0x0a,0xbd,0xf9,
3683 0x46,0x0e,0x50,0xc8,0x32,0xe0,0x4d,0x8f
3684 };
3685
Andy Polyakov03e389c2011-09-14 20:48:49 +00003686__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003687static const unsigned char p_521_sha256_returnedbits[] =
3688 {
3689 0x04,0xce,0x3f,0x47,0x4b,0x90,0x0e,0x0b,0x5d,0x61,0xd2,0xe4,
3690 0xca,0x19,0x98,0x3e,0xda,0xbb,0xe0,0x68,0x42,0x16,0x3c,0x25,
3691 0x69,0xb2,0x62,0x3f,0x57,0x84,0x22,0xc5,0x27,0x94,0xcb,0x2a,
3692 0x6c,0xe4,0xe5,0x3a,0x4d,0xfe,0x23,0xeb,0x81,0x09,0x8a,0xa4,
3693 0x57,0x8d,0x38,0x26,0x36,0x83,0xc7,0xfa,0xbd,0x1e,0xab,0x50,
3694 0xfe,0xae,0x42
3695 };
3696
3697
3698/* P-521 SHA-384 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003699__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003700static const unsigned char p_521_sha384_pr_entropyinput[] =
3701 {
3702 0xd7,0xc3,0x75,0xc9,0xdc,0xd6,0x28,0x49,0x6c,0x0c,0x26,0xe8,
3703 0x50,0x5a,0x98,0x53,0xa0,0xa1,0x59,0xfc,0xd9,0xef,0x34,0x05,
3704 0x42,0x12,0x5f,0x6c,0x80,0x65,0x37,0x77
3705 };
3706
Andy Polyakov03e389c2011-09-14 20:48:49 +00003707__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003708static const unsigned char p_521_sha384_pr_nonce[] =
3709 {
3710 0x07,0x8a,0xc4,0xbb,0x27,0x54,0x33,0xe2,0xfa,0x4a,0xe2,0x84,
3711 0xe5,0x5b,0x27,0x69
3712 };
3713
Andy Polyakov03e389c2011-09-14 20:48:49 +00003714__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003715static const unsigned char p_521_sha384_pr_personalizationstring[] =
3716 {
3717 0x69,0x90,0xea,0xac,0x46,0x2f,0x9a,0x3a,0xcc,0xdb,0xbc,0x26,
3718 0x5d,0xae,0x6d,0xca,0x80,0x62,0x95,0x3f,0x7c,0x17,0xa3,0xc5,
3719 0x36,0x69,0x8a,0x70,0x4e,0xb0,0xfb,0x16
3720 };
3721
Andy Polyakov03e389c2011-09-14 20:48:49 +00003722__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003723static const unsigned char p_521_sha384_pr_additionalinput[] =
3724 {
3725 0xc7,0x82,0x8d,0xac,0x49,0xed,0x4d,0xe0,0x5f,0x26,0xe4,0xdf,
3726 0xd6,0x26,0xd0,0x90,0x5b,0xeb,0x36,0xa1,0x5a,0x8d,0xe0,0x33,
3727 0x18,0x86,0x73,0xcb,0x0d,0x3c,0xf4,0x76
3728 };
3729
Andy Polyakov03e389c2011-09-14 20:48:49 +00003730__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003731static const unsigned char p_521_sha384_pr_entropyinputpr[] =
3732 {
3733 0x88,0xeb,0xbc,0xc4,0xdb,0xb0,0x0c,0xc7,0xc9,0x0a,0xae,0x9f,
3734 0xe7,0x2c,0x8d,0x8e,0x9a,0x5b,0x37,0xf4,0x91,0x15,0x7c,0x1c,
3735 0x84,0x84,0x48,0x47,0x2d,0x24,0xc4,0xf8
3736 };
3737
Andy Polyakov03e389c2011-09-14 20:48:49 +00003738__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003739static const unsigned char p_521_sha384_pr_int_returnedbits[] =
3740 {
3741 0xf1,0x8a,0x43,0xec,0x2b,0x3f,0x74,0x05,0xae,0x4f,0x96,0xbb,
3742 0x90,0xba,0x55,0x23,0xb5,0x07,0xc9,0xfc,0x53,0x36,0x02,0x1d,
3743 0xb5,0xf4,0x8a,0x8c,0x71,0xb0,0xb2,0x35,0x2e,0xc1,0x91,0xbb,
3744 0x78,0xf1,0x5f,0x1d,0x1b,0xa3,0xa3,0x4d,0x93,0x76,0x36,0xbe,
3745 0xb2,0x83,0x6e,0xe1,0x00,0xe3,0x58,0x98,0x84,0x1a,0x4d,0x77,
3746 0x1c,0x3a,0x5f
3747 };
3748
Andy Polyakov03e389c2011-09-14 20:48:49 +00003749__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003750static const unsigned char p_521_sha384_pr_additionalinput2[] =
3751 {
3752 0x1e,0xbd,0x75,0x87,0x28,0x2e,0x05,0xbe,0xb3,0xa8,0x81,0x57,
3753 0x00,0x24,0xe5,0xe2,0xad,0x7d,0xe5,0x60,0x36,0x9b,0x82,0x09,
3754 0xac,0xdd,0xec,0x5e,0xb6,0xc6,0x9e,0x72
3755 };
3756
Andy Polyakov03e389c2011-09-14 20:48:49 +00003757__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003758static const unsigned char p_521_sha384_pr_entropyinputpr2[] =
3759 {
3760 0xa4,0x30,0xe4,0xec,0x31,0x84,0x79,0x5c,0x40,0xd8,0x54,0x9d,
3761 0xd9,0x64,0xdf,0x46,0xc4,0xca,0x08,0x19,0x65,0x24,0x41,0xa8,
3762 0xdb,0x4c,0xbd,0x4a,0x5a,0x6c,0xe7,0x40
3763 };
3764
Andy Polyakov03e389c2011-09-14 20:48:49 +00003765__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003766static const unsigned char p_521_sha384_pr_returnedbits[] =
3767 {
3768 0x15,0x44,0x90,0x6e,0x56,0xc1,0x51,0x2a,0x0d,0x3a,0x2f,0x1a,
3769 0x2d,0x0e,0xf8,0x32,0x05,0xe0,0xd7,0x77,0xd4,0x82,0x31,0x11,
3770 0x4e,0x70,0x50,0x76,0x5a,0x42,0x56,0x0a,0xeb,0x27,0x63,0x74,
3771 0xe5,0xc4,0x83,0x31,0x25,0x14,0xc4,0x5e,0x6e,0xc7,0xec,0x57,
3772 0x4b,0xaf,0x17,0xd9,0x43,0x61,0xfb,0xf6,0xc1,0x18,0xc3,0x41,
3773 0x3a,0xae,0x81
3774 };
3775
3776
3777/* P-521 SHA-384 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003778__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003779static const unsigned char p_521_sha384_entropyinput[] =
3780 {
3781 0xd2,0x5e,0x8a,0xdf,0x9d,0x50,0x3e,0xb8,0x0e,0x01,0x7b,0x02,
3782 0x95,0xb4,0x26,0x59,0x25,0x7c,0xdf,0x15,0x6f,0x2f,0x59,0xe2,
3783 0x60,0x8d,0xf8,0x83,0xdc,0xaf,0xb0,0xe1
3784 };
3785
Andy Polyakov03e389c2011-09-14 20:48:49 +00003786__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003787static const unsigned char p_521_sha384_nonce[] =
3788 {
3789 0x03,0xb8,0xbe,0x6f,0x90,0x5a,0xca,0x32,0xcd,0x86,0x9f,0x0a,
3790 0x01,0xb6,0x8f,0x41
3791 };
3792
Andy Polyakov03e389c2011-09-14 20:48:49 +00003793__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003794static const unsigned char p_521_sha384_personalizationstring[] =
3795 {
3796 0x39,0x5d,0xc0,0xa6,0xa7,0x8f,0xc4,0x5e,0xec,0xb7,0x45,0xa7,
3797 0x18,0x35,0x73,0xac,0x41,0x12,0x9c,0x8e,0x83,0xaa,0x45,0xb0,
3798 0x35,0x9a,0x8a,0x44,0x6f,0xea,0xb8,0x15
3799 };
3800
Andy Polyakov03e389c2011-09-14 20:48:49 +00003801__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003802static const unsigned char p_521_sha384_additionalinput[] =
3803 {
3804 0xac,0x37,0xb4,0x53,0x39,0xd7,0xdd,0xad,0x63,0x8d,0xe6,0x1a,
3805 0x4c,0xdf,0x1d,0x3a,0x0c,0x54,0xcf,0xb0,0x15,0x01,0xc5,0x46,
3806 0xc7,0x56,0xff,0x64,0x50,0x29,0xb2,0xb2
3807 };
3808
Andy Polyakov03e389c2011-09-14 20:48:49 +00003809__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003810static const unsigned char p_521_sha384_int_returnedbits[] =
3811 {
3812 0x16,0xf7,0x2a,0xa2,0x12,0x41,0xb9,0x58,0xac,0x9c,0x99,0xaa,
3813 0x9b,0xbd,0xcd,0x2c,0x18,0x0d,0xf6,0x5a,0x52,0xd8,0x26,0x4e,
3814 0xd0,0x7a,0xc1,0xe5,0x67,0x54,0x7f,0x65,0x63,0x2a,0xd1,0xef,
3815 0xf0,0x8f,0xb9,0x2e,0xb0,0xdb,0xc7,0x03,0xc8,0xe1,0x58,0xaa,
3816 0xdb,0x7c,0x67,0xf6,0xf4,0x4d,0x33,0x0d,0xf0,0x6c,0xd9,0xdd,
3817 0xd4,0x2c,0xa1
3818 };
3819
Andy Polyakov03e389c2011-09-14 20:48:49 +00003820__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003821static const unsigned char p_521_sha384_entropyinputreseed[] =
3822 {
3823 0x38,0xae,0xd1,0xbd,0xde,0xcc,0x88,0xc7,0x2d,0x39,0x68,0x1e,
3824 0xef,0x19,0xb6,0x3c,0xcc,0xed,0xec,0x87,0xc5,0xc5,0x56,0x22,
3825 0xf6,0xa9,0xea,0xf4,0x8b,0x43,0x6b,0xf7
3826 };
3827
Andy Polyakov03e389c2011-09-14 20:48:49 +00003828__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003829static const unsigned char p_521_sha384_additionalinputreseed[] =
3830 {
3831 0x6f,0xd8,0x16,0x55,0x9f,0xe8,0x71,0x65,0x83,0xf2,0xf5,0xaf,
3832 0xad,0xff,0x19,0x72,0x59,0x8c,0x84,0xdb,0xc7,0x14,0x88,0x34,
3833 0xda,0xda,0xde,0x4f,0xf0,0xfa,0xa3,0x33
3834 };
3835
Andy Polyakov03e389c2011-09-14 20:48:49 +00003836__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003837static const unsigned char p_521_sha384_additionalinput2[] =
3838 {
3839 0xd9,0xe2,0x19,0x2e,0x78,0x71,0x2f,0xec,0x45,0xcc,0x63,0x0e,
3840 0x5b,0x7a,0x02,0x34,0x29,0x90,0xd5,0x2c,0x10,0x7e,0xdd,0x5a,
3841 0x3e,0x1a,0x4c,0x69,0xcb,0xec,0xc6,0x33
3842 };
3843
Andy Polyakov03e389c2011-09-14 20:48:49 +00003844__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003845static const unsigned char p_521_sha384_returnedbits[] =
3846 {
3847 0x88,0x53,0x0c,0xa7,0x5c,0x3f,0x56,0x6a,0x0a,0x10,0xa5,0xac,
3848 0x41,0x60,0x2a,0xa2,0x29,0x35,0x4c,0xc8,0x24,0xd1,0x75,0xc9,
3849 0xcc,0xb8,0x87,0x46,0xcc,0xf2,0x72,0x05,0x7f,0x39,0xf0,0x0f,
3850 0x4d,0x26,0xac,0x8c,0xa4,0x9a,0x87,0xe1,0x16,0xb3,0xc1,0x95,
3851 0xba,0x0e,0x7b,0x96,0xa9,0x91,0x15,0x9c,0x54,0x16,0x73,0x3b,
3852 0xce,0x2a,0xfd
3853 };
3854
3855
3856/* P-521 SHA-512 PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003857__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003858static const unsigned char p_521_sha512_pr_entropyinput[] =
3859 {
3860 0xb7,0x8e,0x4a,0x70,0x59,0xf4,0xb4,0xfa,0x94,0xef,0xc7,0xe7,
3861 0x7b,0xde,0x06,0x46,0x2e,0x71,0xde,0x82,0x59,0xd5,0x3a,0x32,
3862 0xee,0x1e,0x64,0x24,0x25,0xf4,0x1d,0xa6
3863 };
3864
Andy Polyakov03e389c2011-09-14 20:48:49 +00003865__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003866static const unsigned char p_521_sha512_pr_nonce[] =
3867 {
3868 0x46,0x15,0x8e,0x0c,0x97,0x3c,0x81,0x7b,0x2b,0x38,0xde,0x1a,
3869 0x93,0x68,0x00,0x30
3870 };
3871
Andy Polyakov03e389c2011-09-14 20:48:49 +00003872__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003873static const unsigned char p_521_sha512_pr_personalizationstring[] =
3874 {
3875 0x05,0x12,0xdf,0xac,0xf9,0xf8,0xce,0xec,0x1e,0x98,0x91,0x6d,
3876 0x1d,0xf5,0x4c,0xdf,0xb5,0xb4,0x43,0x90,0x1d,0xaa,0x53,0x9c,
3877 0x9a,0xa3,0xb5,0x54,0x63,0x74,0xf0,0xf2
3878 };
3879
Andy Polyakov03e389c2011-09-14 20:48:49 +00003880__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003881static const unsigned char p_521_sha512_pr_additionalinput[] =
3882 {
3883 0x04,0x8d,0xfc,0x7a,0xa2,0x25,0x99,0x6a,0xb0,0x17,0x7e,0xe8,
3884 0x3b,0xc1,0x2f,0x59,0x48,0xde,0xbe,0x44,0xcc,0x2c,0xe6,0xa8,
3885 0xf0,0x57,0x69,0x7e,0x85,0x2a,0xa8,0x8b
3886 };
3887
Andy Polyakov03e389c2011-09-14 20:48:49 +00003888__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003889static const unsigned char p_521_sha512_pr_entropyinputpr[] =
3890 {
3891 0xbb,0xa2,0x0b,0x9f,0xf2,0x01,0x4c,0x9a,0x20,0x87,0x75,0x69,
3892 0x18,0x51,0x21,0x12,0x55,0xf3,0xc4,0xfe,0x2c,0x5e,0x08,0x85,
3893 0x52,0x12,0x68,0xb8,0x90,0x87,0x0c,0x6f
3894 };
3895
Andy Polyakov03e389c2011-09-14 20:48:49 +00003896__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003897static const unsigned char p_521_sha512_pr_int_returnedbits[] =
3898 {
3899 0x81,0x79,0xde,0xe3,0xe0,0x72,0xd8,0x86,0x39,0x42,0x4b,0x86,
3900 0xf0,0x4b,0xf2,0xa2,0x56,0xc1,0x67,0x41,0x12,0x2e,0x33,0x2d,
3901 0x48,0x80,0x91,0x40,0xef,0x3d,0x47,0xf1,0x9b,0xea,0x55,0x2e,
3902 0x78,0xa1,0x22,0x24,0x5b,0x0c,0xea,0x35,0xba,0xb5,0x0c,0x74,
3903 0x17,0x1a,0x07,0xe6,0x0b,0x51,0xb5,0x9b,0xbf,0xdb,0xa8,0x05,
3904 0xe4,0x7a,0x01
3905 };
3906
Andy Polyakov03e389c2011-09-14 20:48:49 +00003907__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003908static const unsigned char p_521_sha512_pr_additionalinput2[] =
3909 {
3910 0x9d,0x9c,0xbd,0x7e,0x2d,0x33,0x41,0x63,0xb7,0x44,0x91,0xd0,
3911 0xd1,0xaf,0x07,0x8a,0xb2,0xc4,0xd9,0xbc,0x72,0x37,0x70,0x7d,
3912 0x85,0x47,0x06,0x9e,0x73,0x2b,0x85,0xb7
3913 };
3914
Andy Polyakov03e389c2011-09-14 20:48:49 +00003915__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003916static const unsigned char p_521_sha512_pr_entropyinputpr2[] =
3917 {
3918 0xcd,0x1e,0x0c,0x58,0xe9,0x65,0x44,0x95,0x7a,0x68,0xf1,0xe1,
3919 0xd7,0xc5,0xdb,0x89,0x0d,0xdc,0x30,0x0e,0x16,0xc1,0xe5,0xad,
3920 0x57,0x60,0x50,0x31,0x5f,0xf0,0x05,0xf7
3921 };
3922
Andy Polyakov03e389c2011-09-14 20:48:49 +00003923__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003924static const unsigned char p_521_sha512_pr_returnedbits[] =
3925 {
3926 0x5b,0x24,0x8e,0xab,0x1b,0x1b,0x86,0xe0,0x65,0x11,0x84,0x75,
3927 0xbf,0x5b,0x00,0x0b,0xd8,0x08,0x7d,0x3f,0xfa,0x70,0xe7,0x65,
3928 0xe3,0x68,0xe8,0x1f,0x78,0x68,0x49,0x5d,0x06,0x3f,0x7b,0x9b,
3929 0xc2,0xc9,0x06,0x48,0xbd,0x3d,0x27,0x6c,0x36,0xc3,0xfb,0x57,
3930 0x89,0x8a,0x90,0x92,0x1c,0xc0,0xda,0x58,0xd8,0x0e,0x81,0x70,
3931 0x6d,0xd4,0x34
3932 };
3933
3934
3935/* P-521 SHA-512 No PR */
Andy Polyakov03e389c2011-09-14 20:48:49 +00003936__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003937static const unsigned char p_521_sha512_entropyinput[] =
3938 {
3939 0x3d,0x1f,0x10,0x75,0x3c,0x9f,0x09,0xf2,0xe2,0x38,0x50,0x8e,
3940 0x88,0xb1,0x1f,0x45,0xd3,0xb9,0x60,0xd9,0xd4,0x2f,0xed,0xbb,
3941 0x5f,0xb2,0x0e,0x3b,0xaa,0x6b,0x2e,0xee
3942 };
3943
Andy Polyakov03e389c2011-09-14 20:48:49 +00003944__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003945static const unsigned char p_521_sha512_nonce[] =
3946 {
3947 0x9d,0x59,0xbf,0xcb,0xcf,0x3f,0xe0,0xb1,0x2b,0x6f,0x3d,0xd8,
3948 0x38,0x77,0xf6,0x1c
3949 };
3950
Andy Polyakov03e389c2011-09-14 20:48:49 +00003951__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003952static const unsigned char p_521_sha512_personalizationstring[] =
3953 {
3954 0xf2,0x91,0xdb,0xef,0x70,0x9a,0x87,0x74,0xc4,0xf6,0x8e,0x09,
3955 0xe8,0x39,0xe5,0xc0,0x79,0x12,0xcb,0xeb,0x58,0x1c,0x88,0x81,
3956 0x83,0xe8,0x66,0xd0,0x2f,0x49,0xef,0x63
3957 };
3958
Andy Polyakov03e389c2011-09-14 20:48:49 +00003959__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003960static const unsigned char p_521_sha512_additionalinput[] =
3961 {
3962 0x38,0x7c,0xdd,0x33,0xcd,0x09,0x12,0xc0,0xb8,0x73,0x72,0xdf,
3963 0xad,0xe1,0xe9,0xd2,0x69,0xd0,0xa0,0x1a,0xe5,0xfc,0x51,0x0a,
3964 0xd5,0x90,0xe9,0x8c,0x66,0x8c,0x63,0x35
3965 };
3966
Andy Polyakov03e389c2011-09-14 20:48:49 +00003967__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003968static const unsigned char p_521_sha512_int_returnedbits[] =
3969 {
3970 0x7c,0xd6,0xd8,0xbb,0x12,0x5d,0xaf,0x65,0x65,0xd2,0x20,0x58,
3971 0x82,0x17,0xbb,0xd6,0x37,0x24,0x23,0xe2,0x49,0xe3,0x13,0x74,
3972 0x66,0x7a,0xaf,0x35,0x8f,0x18,0x88,0xa8,0xb8,0xc3,0x84,0xb1,
3973 0xb5,0xfa,0xf2,0x46,0x49,0x91,0x95,0x06,0x1a,0x8c,0xb3,0x94,
3974 0x78,0x11,0x73,0x9d,0xeb,0x07,0xc6,0x20,0x52,0x89,0xf1,0xaf,
3975 0xb2,0x66,0xba
3976 };
3977
Andy Polyakov03e389c2011-09-14 20:48:49 +00003978__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003979static const unsigned char p_521_sha512_entropyinputreseed[] =
3980 {
3981 0xd5,0x51,0xf0,0x88,0xb6,0xa5,0x26,0x8c,0x34,0x82,0xd3,0xa4,
3982 0xee,0x6e,0xc4,0x70,0x27,0xb8,0x85,0xa7,0xca,0x22,0x7b,0x62,
3983 0x9c,0xcf,0x3e,0xa9,0xc2,0x6e,0x3a,0x3e
3984 };
3985
Andy Polyakov03e389c2011-09-14 20:48:49 +00003986__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003987static const unsigned char p_521_sha512_additionalinputreseed[] =
3988 {
3989 0x22,0xce,0x9f,0x3b,0x36,0x8d,0x4e,0xe2,0xe5,0xff,0xaf,0x72,
3990 0x90,0xe8,0xfa,0x3b,0x16,0xe2,0xcb,0xc6,0xf1,0xac,0x5e,0xb8,
3991 0x8e,0xb0,0x0a,0x05,0xeb,0xd4,0xfd,0x58
3992 };
3993
Andy Polyakov03e389c2011-09-14 20:48:49 +00003994__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00003995static const unsigned char p_521_sha512_additionalinput2[] =
3996 {
3997 0x2f,0x55,0x03,0xe2,0x5f,0x58,0xf4,0xc8,0xf9,0x98,0x79,0x9a,
3998 0x1e,0x44,0xa5,0x0d,0x38,0x20,0x5e,0xe4,0x54,0x0a,0xd4,0x1f,
3999 0xc3,0xcf,0x3e,0x66,0xf2,0x2f,0xd5,0xb6
4000 };
4001
Andy Polyakov03e389c2011-09-14 20:48:49 +00004002__fips_constseg
Dr. Stephen Henson7fdcb452011-09-09 17:16:43 +00004003static const unsigned char p_521_sha512_returnedbits[] =
4004 {
4005 0x2e,0xbf,0x98,0xf9,0x85,0x27,0x8b,0xff,0x36,0xb9,0x40,0x0b,
4006 0xc0,0xa1,0xa0,0x13,0x20,0x06,0xcc,0xe6,0x2a,0x03,0x77,0x7d,
4007 0xee,0xde,0xcc,0x34,0xe3,0xcd,0x77,0xea,0xd0,0x3e,0xbe,0xdd,
4008 0xf6,0x15,0xfb,0xa7,0xd7,0x8e,0xd0,0x2e,0x2f,0x82,0x4c,0xc7,
4009 0x87,0xb1,0x6f,0xc5,0xf8,0x5c,0x78,0xde,0x77,0x9b,0x15,0x9a,
4010 0xb9,0x3c,0x38
4011 };
4012