Lines Matching +full:0 +full:x0b

28 		0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8,  in test_siv()
29 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0, in test_siv()
30 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_siv()
31 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff in test_siv()
34 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_siv()
35 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, in test_siv()
36 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27 in test_siv()
39 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, in test_siv()
40 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee in test_siv()
43 0x85, 0x63, 0x2d, 0x07, 0xc6, 0xe8, 0xf3, 0x7f, in test_siv()
44 0x95, 0x0a, 0xcd, 0x32, 0x0a, 0x2e, 0xcc, 0x93, in test_siv()
45 0x40, 0xc0, 0x2b, 0x96, 0x90, 0xc4, 0xdc, 0x04, in test_siv()
46 0xda, 0xef, 0x7f, 0x6a, 0xfe, 0x5c in test_siv()
50 0x7f, 0x7e, 0x7d, 0x7c, 0x7b, 0x7a, 0x79, 0x78, in test_siv()
51 0x77, 0x76, 0x75, 0x74, 0x73, 0x72, 0x71, 0x70, in test_siv()
52 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, in test_siv()
53 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f in test_siv()
56 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_siv()
57 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, in test_siv()
58 0xde, 0xad, 0xda, 0xda, 0xde, 0xad, 0xda, 0xda, in test_siv()
59 0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88, in test_siv()
60 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11, 0x00 in test_siv()
63 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, in test_siv()
64 0x90, 0xa0 in test_siv()
67 0x09, 0xf9, 0x11, 0x02, 0x9d, 0x74, 0xe3, 0x5b, in test_siv()
68 0xd8, 0x41, 0x56, 0xc5, 0x63, 0x56, 0x88, 0xc0 in test_siv()
71 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, in test_siv()
72 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x70, 0x6c, 0x61, in test_siv()
73 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20, 0x74, in test_siv()
74 0x6f, 0x20, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, in test_siv()
75 0x74, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, in test_siv()
76 0x53, 0x49, 0x56, 0x2d, 0x41, 0x45, 0x53 in test_siv()
79 0x7b, 0xdb, 0x6e, 0x3b, 0x43, 0x26, 0x67, 0xeb, in test_siv()
80 0x06, 0xf4, 0xd1, 0x4b, 0xff, 0x2f, 0xbd, 0x0f, in test_siv()
81 0xcb, 0x90, 0x0f, 0x2f, 0xdd, 0xbe, 0x40, 0x43, in test_siv()
82 0x26, 0x60, 0x19, 0x65, 0xc8, 0x89, 0xbf, 0x17, in test_siv()
83 0xdb, 0xa7, 0x7c, 0xeb, 0x09, 0x4f, 0xa6, 0x63, in test_siv()
84 0xb7, 0xa3, 0xf7, 0x48, 0xba, 0x8a, 0xf8, 0x29, in test_siv()
85 0xea, 0x64, 0xad, 0x54, 0x4a, 0x27, 0x2e, 0x9c, in test_siv()
86 0x48, 0x5b, 0x62, 0xa3, 0xfd, 0x5c, 0x0d in test_siv()
93 addr[0] = ad; in test_siv()
94 len[0] = sizeof(ad); in test_siv()
101 if (os_memcmp(out, iv_c, sizeof(iv_c)) != 0) { in test_siv()
112 if (os_memcmp(out, plaintext, sizeof(plaintext)) != 0) { in test_siv()
119 addr[0] = ad1_2; in test_siv()
120 len[0] = sizeof(ad1_2); in test_siv()
132 if (os_memcmp(out, iv_c_2, sizeof(iv_c_2)) != 0) { in test_siv()
143 if (os_memcmp(out, plaintext_2, sizeof(plaintext_2)) != 0) { in test_siv()
152 return 0; in test_siv()
172 { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
173 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c },
175 0,
176 { 0xbb, 0x1d, 0x69, 0x29, 0xe9, 0x59, 0x37, 0x28,
177 0x7f, 0xa3, 0x7d, 0x12, 0x9b, 0x75, 0x67, 0x46 }
180 { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
181 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c },
182 { 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
183 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a},
185 { 0x07, 0x0a, 0x16, 0xb4, 0x6b, 0x4d, 0x41, 0x44,
186 0xf7, 0x9b, 0xdd, 0x9d, 0xd0, 0x4a, 0x28, 0x7c }
189 { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
190 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c },
191 { 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
192 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
193 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c,
194 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
195 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11 },
197 { 0xdf, 0xa6, 0x67, 0x47, 0xde, 0x9a, 0xe6, 0x30,
198 0x30, 0xca, 0x32, 0x61, 0x14, 0x97, 0xc8, 0x27 }
201 { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
202 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c },
203 { 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
204 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
205 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c,
206 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
207 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11,
208 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef,
209 0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17,
210 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 },
212 { 0x51, 0xf0, 0xbe, 0xbf, 0x7e, 0x3b, 0x9d, 0x92,
213 0xfc, 0x49, 0x74, 0x17, 0x79, 0x36, 0x3c, 0xfe }
222 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in test_omac1_vector()
223 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c in test_omac1_vector()
225 u8 msg[] = { 0x12, 0x34, 0x56 }; in test_omac1_vector()
231 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
238 addr[0] = tv->msg; in test_omac1_vector()
239 len[0] = 1; in test_omac1_vector()
244 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
251 addr[0] = tv->msg; in test_omac1_vector()
252 len[0] = tv->msg_len - 2; in test_omac1_vector()
259 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
267 addr[0] = &msg[0]; in test_omac1_vector()
268 len[0] = 1; in test_omac1_vector()
275 os_memcmp(result, result2, 16) != 0) { in test_omac1_vector()
280 return 0; in test_omac1_vector()
288 for (i = 0; i < ARRAY_SIZE(omac1_test_vectors); i++) { in test_omac1()
295 return 0; in test_omac1()
302 u8 msg[] = { 0xF7, 0xFB }; in test_eax()
303 u8 key[] = { 0x91, 0x94, 0x5D, 0x3F, 0x4D, 0xCB, 0xEE, 0x0B, in test_eax()
304 0xF4, 0x5E, 0xF5, 0x22, 0x55, 0xF0, 0x95, 0xA4 }; in test_eax()
305 u8 nonce[] = { 0xBE, 0xCA, 0xF0, 0x43, 0xB0, 0xA2, 0x3D, 0x84, in test_eax()
306 0x31, 0x94, 0xBA, 0x97, 0x2C, 0x66, 0xDE, 0xBD }; in test_eax()
307 u8 hdr[] = { 0xFA, 0x3B, 0xFD, 0x48, 0x06, 0xEB, 0x53, 0xFA }; in test_eax()
308 u8 cipher[] = { 0x19, 0xDD, 0x5C, 0x4C, 0x93, 0x31, 0x04, 0x9D, in test_eax()
309 0x0B, 0xDA, 0xB0, 0x27, 0x74, 0x08, 0xF6, 0x79, in test_eax()
310 0x67, 0xE5 }; in test_eax()
319 if (os_memcmp(data, cipher, sizeof(data)) != 0) { in test_eax()
324 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax()
335 if (os_memcmp(data, msg, sizeof(data)) != 0) { in test_eax()
344 return 0; in test_eax()
358 { 0x06, 0xa9, 0x21, 0x40, 0x36, 0xb8, 0xa1, 0x5b, in test_cbc()
359 0x51, 0x2e, 0x03, 0xd5, 0x34, 0x12, 0x00, 0x06 }, in test_cbc()
360 { 0x3d, 0xaf, 0xba, 0x42, 0x9d, 0x9e, 0xb4, 0x30, in test_cbc()
361 0xb4, 0x22, 0xda, 0x80, 0x2c, 0x9f, 0xac, 0x41 }, in test_cbc()
363 { 0xe3, 0x53, 0x77, 0x9c, 0x10, 0x79, 0xae, 0xb8, in test_cbc()
364 0x27, 0x08, 0x94, 0x2d, 0xbe, 0x77, 0x18, 0x1a }, in test_cbc()
368 { 0xc2, 0x86, 0x69, 0x6d, 0x88, 0x7c, 0x9a, 0xa0, in test_cbc()
369 0x61, 0x1b, 0xbb, 0x3e, 0x20, 0x25, 0xa4, 0x5a }, in test_cbc()
370 { 0x56, 0x2e, 0x17, 0x99, 0x6d, 0x09, 0x3d, 0x28, in test_cbc()
371 0xdd, 0xb3, 0xba, 0x69, 0x5a, 0x2e, 0x6f, 0x58 }, in test_cbc()
372 { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_cbc()
373 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, in test_cbc()
374 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_cbc()
375 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f }, in test_cbc()
376 { 0xd2, 0x96, 0xcd, 0x94, 0xc2, 0xcc, 0xcf, 0x8a, in test_cbc()
377 0x3a, 0x86, 0x30, 0x28, 0xb5, 0xe1, 0xdc, 0x0a, in test_cbc()
378 0x75, 0x86, 0x60, 0x2d, 0x25, 0x3c, 0xff, 0xf9, in test_cbc()
379 0x1b, 0x82, 0x66, 0xbe, 0xa6, 0xd6, 0x1a, 0xb1 }, in test_cbc()
383 int ret = 0; in test_cbc()
387 for (i = 0; i < ARRAY_SIZE(vectors); i++) { in test_cbc()
398 os_memcmp(buf, tv->cipher, tv->len) != 0) { in test_cbc()
405 os_memcmp(buf, tv->plain, tv->len) != 0) { in test_cbc()
473 int ret = 0; in test_ecb()
477 for (i = 0; i < ARRAY_SIZE(vectors); i++) { in test_ecb()
489 if (aes_128_encrypt_block(key, plain, out) < 0 || in test_ecb()
490 os_memcmp(out, cipher, 16) != 0) { in test_ecb()
502 return 0; in test_ecb()
508 int ret = 0; in test_key_wrap()
512 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
513 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f in test_key_wrap()
516 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
517 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff in test_key_wrap()
520 0x1F, 0xA6, 0x8B, 0x0A, 0x81, 0x12, 0xB4, 0x47, in test_key_wrap()
521 0xAE, 0xF3, 0x4B, 0xD8, 0xFB, 0x5A, 0x7B, 0x82, in test_key_wrap()
522 0x9D, 0x3E, 0x86, 0x23, 0x71, 0xD2, 0xCF, 0xE5 in test_key_wrap()
527 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
528 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, in test_key_wrap()
529 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 in test_key_wrap()
532 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
533 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff in test_key_wrap()
536 0x96, 0x77, 0x8B, 0x25, 0xAE, 0x6C, 0xA4, 0x35, in test_key_wrap()
537 0xF9, 0x2B, 0x5B, 0x97, 0xC0, 0x50, 0xAE, 0xD2, in test_key_wrap()
538 0x46, 0x8A, 0xB8, 0xA1, 0x7A, 0xD8, 0x4E, 0x5D in test_key_wrap()
543 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
544 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, in test_key_wrap()
545 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_key_wrap()
546 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F in test_key_wrap()
549 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
550 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff in test_key_wrap()
553 0x64, 0xE8, 0xC3, 0xF9, 0xCE, 0x0F, 0x5B, 0xA2, in test_key_wrap()
554 0x63, 0xE9, 0x77, 0x79, 0x05, 0x81, 0x8A, 0x2A, in test_key_wrap()
555 0x93, 0xC8, 0x19, 0x1E, 0x7D, 0x6E, 0x8A, 0xE7, in test_key_wrap()
560 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
561 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, in test_key_wrap()
562 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 in test_key_wrap()
565 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
566 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, in test_key_wrap()
567 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 in test_key_wrap()
570 0x03, 0x1D, 0x33, 0x26, 0x4E, 0x15, 0xD3, 0x32, in test_key_wrap()
571 0x68, 0xF2, 0x4E, 0xC2, 0x60, 0x74, 0x3E, 0xDC, in test_key_wrap()
572 0xE1, 0xC6, 0xC7, 0xDD, 0xEE, 0x72, 0x5A, 0x93, in test_key_wrap()
573 0x6B, 0xA8, 0x14, 0x91, 0x5C, 0x67, 0x62, 0xD2 in test_key_wrap()
578 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
579 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, in test_key_wrap()
580 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_key_wrap()
581 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F in test_key_wrap()
584 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
585 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, in test_key_wrap()
586 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 in test_key_wrap()
589 0xA8, 0xF9, 0xBC, 0x16, 0x12, 0xC6, 0x8B, 0x3F, in test_key_wrap()
590 0xF6, 0xE6, 0xF4, 0xFB, 0xE3, 0x0E, 0x71, 0xE4, in test_key_wrap()
591 0x76, 0x9C, 0x8B, 0x80, 0xA3, 0x2C, 0xB8, 0x95, in test_key_wrap()
592 0x8C, 0xD5, 0xD1, 0x7D, 0x6B, 0x25, 0x4D, 0xA1, in test_key_wrap()
596 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
597 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, in test_key_wrap()
598 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_key_wrap()
599 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F in test_key_wrap()
602 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in test_key_wrap()
603 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, in test_key_wrap()
604 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_key_wrap()
605 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F in test_key_wrap()
608 0x28, 0xC9, 0xF4, 0x04, 0xC4, 0xB8, 0x10, 0xF4, in test_key_wrap()
609 0xCB, 0xCC, 0xB3, 0x5C, 0xFB, 0x87, 0xF8, 0x26, in test_key_wrap()
610 0x3F, 0x57, 0x86, 0xE2, 0xD8, 0x0E, 0xD3, 0x26, in test_key_wrap()
611 0xCB, 0xC7, 0xF0, 0xE7, 0x1A, 0x99, 0xF4, 0x3B, in test_key_wrap()
612 0xFB, 0x98, 0x8B, 0x9B, 0x7A, 0x02, 0xDD, 0x21 in test_key_wrap()
622 if (os_memcmp(result, crypt41, sizeof(crypt41)) != 0) { in test_key_wrap()
631 if (os_memcmp(result, plain41, sizeof(plain41)) != 0) { in test_key_wrap()
643 if (os_memcmp(result, crypt42, sizeof(crypt42)) != 0) { in test_key_wrap()
652 if (os_memcmp(result, plain42, sizeof(plain42)) != 0) { in test_key_wrap()
664 if (os_memcmp(result, crypt43, sizeof(crypt43)) != 0) { in test_key_wrap()
673 if (os_memcmp(result, plain43, sizeof(plain43)) != 0) { in test_key_wrap()
685 if (os_memcmp(result, crypt44, sizeof(crypt44)) != 0) { in test_key_wrap()
694 if (os_memcmp(result, plain44, sizeof(plain44)) != 0) { in test_key_wrap()
706 if (os_memcmp(result, crypt45, sizeof(crypt45)) != 0) { in test_key_wrap()
715 if (os_memcmp(result, plain45, sizeof(plain45)) != 0) { in test_key_wrap()
726 if (os_memcmp(result, crypt46, sizeof(crypt46)) != 0) { in test_key_wrap()
735 if (os_memcmp(result, plain46, sizeof(plain46)) != 0) { in test_key_wrap()
749 int res = 0; in test_aes_ctr()
754 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in test_aes_ctr()
755 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c in test_aes_ctr()
758 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_aes_ctr()
759 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff in test_aes_ctr()
762 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in test_aes_ctr()
763 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a, in test_aes_ctr()
764 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c, in test_aes_ctr()
765 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51, in test_aes_ctr()
766 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11, in test_aes_ctr()
767 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef, in test_aes_ctr()
768 0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17, in test_aes_ctr()
769 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 in test_aes_ctr()
772 0x87, 0x4d, 0x61, 0x91, 0xb6, 0x20, 0xe3, 0x26, in test_aes_ctr()
773 0x1b, 0xef, 0x68, 0x64, 0x99, 0x0d, 0xb6, 0xce, in test_aes_ctr()
774 0x98, 0x06, 0xf6, 0x6b, 0x79, 0x70, 0xfd, 0xff, in test_aes_ctr()
775 0x86, 0x17, 0x18, 0x7b, 0xb9, 0xff, 0xfd, 0xff, in test_aes_ctr()
776 0x5a, 0xe4, 0xdf, 0x3e, 0xdb, 0xd5, 0xd3, 0x5e, in test_aes_ctr()
777 0x5b, 0x4f, 0x09, 0x02, 0x0d, 0xb0, 0x3e, 0xab, in test_aes_ctr()
778 0x1e, 0x03, 0x1d, 0xda, 0x2f, 0xbe, 0x03, 0xd1, in test_aes_ctr()
779 0x79, 0x21, 0x70, 0xa0, 0xf3, 0x00, 0x9c, 0xee in test_aes_ctr()
782 0x8e, 0x73, 0xb0, 0xf7, 0xda, 0x0e, 0x64, 0x52, in test_aes_ctr()
783 0xc8, 0x10, 0xf3, 0x2b, 0x80, 0x90, 0x79, 0xe5, in test_aes_ctr()
784 0x62, 0xf8, 0xea, 0xd2, 0x52, 0x2c, 0x6b, 0x7b in test_aes_ctr()
787 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_aes_ctr()
788 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff in test_aes_ctr()
791 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in test_aes_ctr()
792 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a, in test_aes_ctr()
793 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c, in test_aes_ctr()
794 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51, in test_aes_ctr()
795 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11, in test_aes_ctr()
796 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef, in test_aes_ctr()
797 0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17, in test_aes_ctr()
798 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 in test_aes_ctr()
801 0x1a, 0xbc, 0x93, 0x24, 0x17, 0x52, 0x1c, 0xa2, in test_aes_ctr()
802 0x4f, 0x2b, 0x04, 0x59, 0xfe, 0x7e, 0x6e, 0x0b, in test_aes_ctr()
803 0x09, 0x03, 0x39, 0xec, 0x0a, 0xa6, 0xfa, 0xef, in test_aes_ctr()
804 0xd5, 0xcc, 0xc2, 0xc6, 0xf4, 0xce, 0x8e, 0x94, in test_aes_ctr()
805 0x1e, 0x36, 0xb2, 0x6b, 0xd1, 0xeb, 0xc6, 0x70, in test_aes_ctr()
806 0xd1, 0xbd, 0x1d, 0x66, 0x56, 0x20, 0xab, 0xf7, in test_aes_ctr()
807 0x4f, 0x78, 0xa7, 0xf6, 0xd2, 0x98, 0x09, 0x58, in test_aes_ctr()
808 0x5a, 0x97, 0xda, 0xec, 0x58, 0xc6, 0xb0, 0x50 in test_aes_ctr()
811 0x60, 0x3d, 0xeb, 0x10, 0x15, 0xca, 0x71, 0xbe, in test_aes_ctr()
812 0x2b, 0x73, 0xae, 0xf0, 0x85, 0x7d, 0x77, 0x81, in test_aes_ctr()
813 0x1f, 0x35, 0x2c, 0x07, 0x3b, 0x61, 0x08, 0xd7, in test_aes_ctr()
814 0x2d, 0x98, 0x10, 0xa3, 0x09, 0x14, 0xdf, 0xf4 in test_aes_ctr()
817 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_aes_ctr()
818 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff in test_aes_ctr()
821 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in test_aes_ctr()
822 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a, in test_aes_ctr()
823 0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c, in test_aes_ctr()
824 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51, in test_aes_ctr()
825 0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11, in test_aes_ctr()
826 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef, in test_aes_ctr()
827 0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17, in test_aes_ctr()
828 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 in test_aes_ctr()
831 0x60, 0x1e, 0xc3, 0x13, 0x77, 0x57, 0x89, 0xa5, in test_aes_ctr()
832 0xb7, 0xa7, 0xf5, 0x04, 0xbb, 0xf3, 0xd2, 0x28, in test_aes_ctr()
833 0xf4, 0x43, 0xe3, 0xca, 0x4d, 0x62, 0xb5, 0x9a, in test_aes_ctr()
834 0xca, 0x84, 0xe9, 0x90, 0xca, 0xca, 0xf5, 0xc5, in test_aes_ctr()
835 0x2b, 0x09, 0x30, 0xda, 0xa2, 0x3d, 0xe9, 0x4c, in test_aes_ctr()
836 0xe8, 0x70, 0x17, 0xba, 0x2d, 0x84, 0x98, 0x8d, in test_aes_ctr()
837 0xdf, 0xc9, 0xc5, 0x8d, 0xb6, 0x7a, 0xad, 0xa6, in test_aes_ctr()
838 0x13, 0xc2, 0xdd, 0x08, 0x45, 0x79, 0x41, 0xa6 in test_aes_ctr()
849 if (aes_ctr_encrypt(key128, sizeof(key128), counter128, tmp, len) < 0) { in test_aes_ctr()
852 } else if (os_memcmp(tmp, cipher128, len) != 0) { in test_aes_ctr()
865 if (aes_ctr_encrypt(key192, sizeof(key192), counter192, tmp, len) < 0) { in test_aes_ctr()
868 } else if (os_memcmp(tmp, cipher192, len) != 0) { in test_aes_ctr()
881 if (aes_ctr_encrypt(key256, sizeof(key256), counter256, tmp, len) < 0) { in test_aes_ctr()
884 } else if (os_memcmp(tmp, cipher256, len) != 0) { in test_aes_ctr()
945 int errors = 0; in test_md5()
947 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_md5()
950 addr[0] = (u8 *) tests[i].data; in test_md5()
951 len[0] = strlen(tests[i].data); in test_md5()
952 if (md5_vector(1, addr, len, hash) < 0 || in test_md5()
953 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
959 if (len[0]) { in test_md5()
960 addr[0] = (u8 *) tests[i].data; in test_md5()
961 len[0] = strlen(tests[i].data); in test_md5()
964 if (md5_vector(1, addr, len, hash) < 0 || in test_md5()
965 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
979 return 0; in test_md5()
989 0x0B, 0x97, 0x39, 0x0F, 0x37, 0x51, 0x78, 0x09, in test_eap_fast()
990 0x81, 0x1E, 0xFD, 0x9C, 0x6E, 0x65, 0x94, 0x2B, in test_eap_fast()
991 0x63, 0x2C, 0xE9, 0x53, 0x89, 0x38, 0x08, 0xBA, in test_eap_fast()
992 0x36, 0x0B, 0x03, 0x7C, 0xD1, 0x85, 0xE4, 0x14 in test_eap_fast()
995 0x3F, 0xFB, 0x11, 0xC4, 0x6C, 0xBF, 0xA5, 0x7A, in test_eap_fast()
996 0x54, 0x40, 0xDA, 0xE8, 0x22, 0xD3, 0x11, 0xD3, in test_eap_fast()
997 0xF7, 0x6D, 0xE4, 0x1D, 0xD9, 0x33, 0xE5, 0x93, in test_eap_fast()
998 0x70, 0x97, 0xEB, 0xA9, 0xB3, 0x66, 0xF4, 0x2A, in test_eap_fast()
999 0x00, 0x00, 0x00, 0x02, 0x6A, 0x66, 0x43, 0x2A, in test_eap_fast()
1000 0x8D, 0x14, 0x43, 0x2C, 0xEC, 0x58, 0x2D, 0x2F, in test_eap_fast()
1001 0xC7, 0x9C, 0x33, 0x64, 0xBA, 0x04, 0xAD, 0x3A, in test_eap_fast()
1002 0x52, 0x54, 0xD6, 0xA5, 0x79, 0xAD, 0x1E, 0x00 in test_eap_fast()
1005 0x4A, 0x1A, 0x51, 0x2C, 0x01, 0x60, 0xBC, 0x02, in test_eap_fast()
1006 0x3C, 0xCF, 0xBC, 0x83, 0x3F, 0x03, 0xBC, 0x64, in test_eap_fast()
1007 0x88, 0xC1, 0x31, 0x2F, 0x0B, 0xA9, 0xA2, 0x77, in test_eap_fast()
1008 0x16, 0xA8, 0xD8, 0xE8, 0xBD, 0xC9, 0xD2, 0x29, in test_eap_fast()
1009 0x38, 0x4B, 0x7A, 0x85, 0xBE, 0x16, 0x4D, 0x27, in test_eap_fast()
1010 0x33, 0xD5, 0x24, 0x79, 0x87, 0xB1, 0xC5, 0xA2 in test_eap_fast()
1014 0x59, 0x59, 0xBE, 0x8E, 0x41, 0x3A, 0x77, 0x74, in test_eap_fast()
1015 0x8B, 0xB2, 0xE5, 0xD3, 0x60, 0xAC, 0x4D, 0x35, in test_eap_fast()
1016 0xDF, 0xFB, 0xC8, 0x1E, 0x9C, 0x24, 0x9C, 0x8B, in test_eap_fast()
1017 0x0E, 0xC3, 0x1D, 0x72, 0xC8, 0x84, 0x9D, 0x57, in test_eap_fast()
1018 0x48, 0x51, 0x2E, 0x45, 0x97, 0x6C, 0x88, 0x70, in test_eap_fast()
1019 0xBE, 0x5F, 0x01, 0xD3, 0x64, 0xE7, 0x4C, 0xBB, in test_eap_fast()
1020 0x11, 0x24, 0xE3, 0x49, 0xE2, 0x3B, 0xCD, 0xEF, in test_eap_fast()
1021 0x7A, 0xB3, 0x05, 0x39, 0x5D, 0x64, 0x8A, 0x44, in test_eap_fast()
1022 0x11, 0xB6, 0x69, 0x88, 0x34, 0x2E, 0x8E, 0x29, in test_eap_fast()
1023 0xD6, 0x4B, 0x7D, 0x72, 0x17, 0x59, 0x28, 0x05, in test_eap_fast()
1024 0xAF, 0xF9, 0xB7, 0xFF, 0x66, 0x6D, 0xA1, 0x96, in test_eap_fast()
1025 0x8F, 0x0B, 0x5E, 0x06, 0x46, 0x7A, 0x44, 0x84, in test_eap_fast()
1026 0x64, 0xC1, 0xC8, 0x0C, 0x96, 0x44, 0x09, 0x98, in test_eap_fast()
1027 0xFF, 0x92, 0xA8, 0xB4, 0xC6, 0x42, 0x28, 0x71 in test_eap_fast()
1031 0xD6, 0x4B, 0x7D, 0x72, 0x17, 0x59, 0x28, 0x05, in test_eap_fast()
1032 0xAF, 0xF9, 0xB7, 0xFF, 0x66, 0x6D, 0xA1, 0x96, in test_eap_fast()
1033 0x8F, 0x0B, 0x5E, 0x06, 0x46, 0x7A, 0x44, 0x84, in test_eap_fast()
1034 0x64, 0xC1, 0xC8, 0x0C, 0x96, 0x44, 0x09, 0x98, in test_eap_fast()
1035 0xFF, 0x92, 0xA8, 0xB4, 0xC6, 0x42, 0x28, 0x71 in test_eap_fast()
1038 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in test_eap_fast()
1039 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in test_eap_fast()
1040 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in test_eap_fast()
1041 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 in test_eap_fast()
1044 0x16, 0x15, 0x3C, 0x3F, 0x21, 0x55, 0xEF, 0xD9, in test_eap_fast()
1045 0x7F, 0x34, 0xAE, 0xC8, 0x1A, 0x4E, 0x66, 0x80, in test_eap_fast()
1046 0x4C, 0xC3, 0x76, 0xF2, 0x8A, 0xA9, 0x6F, 0x96, in test_eap_fast()
1047 0xC2, 0x54, 0x5F, 0x8C, 0xAB, 0x65, 0x02, 0xE1, in test_eap_fast()
1048 0x18, 0x40, 0x7B, 0x56, 0xBE, 0xEA, 0xA7, 0xC5, in test_eap_fast()
1049 0x76, 0x5D, 0x8F, 0x0B, 0xC5, 0x07, 0xC6, 0xB9, in test_eap_fast()
1050 0x04, 0xD0, 0x69, 0x56, 0x72, 0x8B, 0x6B, 0xB8, in test_eap_fast()
1051 0x15, 0xEC, 0x57, 0x7B in test_eap_fast()
1054 0x4D, 0x83, 0xA9, 0xBE, 0x6F, 0x8A, 0x74, 0xED, in test_eap_fast()
1055 0x6A, 0x02, 0x66, 0x0A, 0x63, 0x4D, 0x2C, 0x33, in test_eap_fast()
1056 0xC2, 0xDA, 0x60, 0x15, 0xC6, 0x37, 0x04, 0x51, in test_eap_fast()
1057 0x90, 0x38, 0x63, 0xDA, 0x54, 0x3E, 0x14, 0xB9, in test_eap_fast()
1058 0x27, 0x99, 0x18, 0x1E, 0x07, 0xBF, 0x0F, 0x5A, in test_eap_fast()
1059 0x5E, 0x3C, 0x32, 0x93, 0x80, 0x8C, 0x6C, 0x49, in test_eap_fast()
1060 0x67, 0xED, 0x24, 0xFE, 0x45, 0x40, 0xA0, 0x59, in test_eap_fast()
1061 0x5E, 0x37, 0xC2, 0xE9, 0xD0, 0x5D, 0x0A, 0xE3 in test_eap_fast()
1064 0x3A, 0xD4, 0xAB, 0xDB, 0x76, 0xB2, 0x7F, 0x3B, in test_eap_fast()
1065 0xEA, 0x32, 0x2C, 0x2B, 0x74, 0xF4, 0x28, 0x55, in test_eap_fast()
1066 0xEF, 0x2D, 0xBA, 0x78, 0xC9, 0x57, 0x2F, 0x0D, in test_eap_fast()
1067 0x06, 0xCD, 0x51, 0x7C, 0x20, 0x93, 0x98, 0xA9, in test_eap_fast()
1068 0x76, 0xEA, 0x70, 0x21, 0xD7, 0x0E, 0x25, 0x54, in test_eap_fast()
1069 0x97, 0xED, 0xB2, 0x8A, 0xF6, 0xED, 0xFD, 0x0A, in test_eap_fast()
1070 0x2A, 0xE7, 0xA1, 0x58, 0x90, 0x10, 0x50, 0x44, in test_eap_fast()
1071 0xB3, 0x82, 0x85, 0xDB, 0x06, 0x14, 0xD2, 0xF9 in test_eap_fast()
1075 0x80, 0x0C, 0x00, 0x38, 0x00, 0x01, 0x01, 0x00, in test_eap_fast()
1076 0xD8, 0x6A, 0x8C, 0x68, 0x3C, 0x32, 0x31, 0xA8, in test_eap_fast()
1077 0x56, 0x63, 0xB6, 0x40, 0x21, 0xFE, 0x21, 0x14, in test_eap_fast()
1078 0x4E, 0xE7, 0x54, 0x20, 0x79, 0x2D, 0x42, 0x62, in test_eap_fast()
1079 0xC9, 0xBF, 0x53, 0x7F, 0x54, 0xFD, 0xAC, 0x58, in test_eap_fast()
1080 0x43, 0x24, 0x6E, 0x30, 0x92, 0x17, 0x6D, 0xCF, in test_eap_fast()
1081 0xE6, 0xE0, 0x69, 0xEB, 0x33, 0x61, 0x6A, 0xCC, in test_eap_fast()
1082 0x05, 0xC5, 0x5B, 0xB7 in test_eap_fast()
1085 0x43, 0x24, 0x6E, 0x30, 0x92, 0x17, 0x6D, 0xCF, in test_eap_fast()
1086 0xE6, 0xE0, 0x69, 0xEB, 0x33, 0x61, 0x6A, 0xCC, in test_eap_fast()
1087 0x05, 0xC5, 0x5B, 0xB7 in test_eap_fast()
1091 int errors = 0; in test_eap_fast()
1098 seed, sizeof(seed), buf, sizeof(master_secret)) < 0 || in test_eap_fast()
1099 os_memcmp(master_secret, buf, sizeof(master_secret)) != 0) { in test_eap_fast()
1109 os_memcmp(key_block, buf, sizeof(key_block)) != 0) { in test_eap_fast()
1117 isk, sizeof(isk), buf, sizeof(imck)) < 0 || in test_eap_fast()
1118 os_memcmp(imck, buf, sizeof(imck)) != 0) { in test_eap_fast()
1128 (u8 *) "", 0, buf, sizeof(msk)) < 0 || in test_eap_fast()
1129 os_memcmp(msk, buf, sizeof(msk)) != 0) { in test_eap_fast()
1136 (u8 *) "", 0, buf, sizeof(msk)) < 0 || in test_eap_fast()
1137 os_memcmp(emsk, buf, sizeof(emsk)) != 0) { in test_eap_fast()
1143 os_memset(tlv + sizeof(tlv) - 20, 0, 20); in test_eap_fast()
1144 if (hmac_sha1(cmk, 20, tlv, sizeof(tlv), tlv + sizeof(tlv) - 20) < 0 || in test_eap_fast()
1146 sizeof(compound_mac)) != 0) { in test_eap_fast()
1153 return 0; in test_eap_fast()
1160 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
1161 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
1162 0x0b, 0x0b, 0x0b, 0x0b
1167 0xbc, 0xd4, 0xc6, 0x50, 0xb3, 0x0b, 0x96, 0x84,
1168 0x95, 0x18, 0x29, 0xe0, 0xd7, 0x5f, 0x9d, 0x54,
1169 0xb8, 0x62, 0x17, 0x5e, 0xd9, 0xf0, 0x06, 0x06,
1170 0xe1, 0x7d, 0x8d, 0xa3, 0x54, 0x02, 0xff, 0xee,
1171 0x75, 0xdf, 0x78, 0xc3, 0xd3, 0x1e, 0x0f, 0x88,
1172 0x9f, 0x01, 0x21, 0x20, 0xc0, 0x86, 0x2b, 0xeb,
1173 0x67, 0x75, 0x3e, 0x74, 0x39, 0xae, 0x24, 0x2e,
1174 0xdb, 0x83, 0x73, 0x69, 0x83, 0x56, 0xcf, 0x5a
1181 0x51, 0xf4, 0xde, 0x5b, 0x33, 0xf2, 0x49, 0xad,
1182 0xf8, 0x1a, 0xeb, 0x71, 0x3a, 0x3c, 0x20, 0xf4,
1183 0xfe, 0x63, 0x14, 0x46, 0xfa, 0xbd, 0xfa, 0x58,
1184 0x24, 0x47, 0x59, 0xae, 0x58, 0xef, 0x90, 0x09,
1185 0xa9, 0x9a, 0xbf, 0x4e, 0xac, 0x2c, 0xa5, 0xfa,
1186 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xbb, 0x4b, 0x90, 0xb3, 0x8a, 0x5f, 0x90,
1235 0x2e, 0x83, 0xfe, 0x1b, 0x13, 0x5a, 0x70, 0xe2,
1236 0x3a, 0xed, 0x76, 0x2e, 0x97, 0x10, 0xa1, 0x2e
1243 0x0d, 0xc0, 0xd6, 0xeb, 0x90, 0x55, 0x5e, 0xd6,
1244 0x41, 0x97, 0x56, 0xb9, 0xa1, 0x5e, 0xc3, 0xe3,
1245 0x20, 0x9b, 0x63, 0xdf, 0x70, 0x7d, 0xd5, 0x08,
1246 0xd1, 0x45, 0x81, 0xf8, 0x98, 0x27, 0x21, 0xaf
1253 0xbe, 0xcb, 0x93, 0x86, 0x6b, 0xb8, 0xc3, 0x83,
1254 0x2c, 0xb7, 0x77, 0xc2, 0xf5, 0x59, 0x80, 0x7c,
1255 0x8c, 0x59, 0xaf, 0xcb, 0x6e, 0xae, 0x73, 0x48,
1256 0x85, 0x00, 0x13, 0x00, 0xa9, 0x81, 0xcc, 0x62
1279 0x0c, 0x60, 0xc8, 0x0f, 0x96, 0x1f, 0x0e, 0x71,
1280 0xf3, 0xa9, 0xb5, 0x24, 0xaf, 0x60, 0x12, 0x06,
1281 0x2f, 0xe0, 0x37, 0xa6
1290 0xea, 0x6c, 0x01, 0x4d, 0xc7, 0x2d, 0x6f, 0x8c,
1291 0xcd, 0x1e, 0xd9, 0x2a, 0xce, 0x1d, 0x41, 0xf0,
1292 0xd8, 0xde, 0x89, 0x57
1301 0x4b, 0x00, 0x79, 0x01, 0xb7, 0x65, 0x48, 0x9a,
1302 0xbe, 0xad, 0x49, 0xd9, 0x26, 0xf7, 0x21, 0xd0,
1303 0x65, 0xa4, 0x29, 0xc1
1307 #if 0 /* This takes quite long to derive.. */
1313 0xee, 0xfe, 0x3d, 0x61, 0xcd, 0x4d, 0xa4, 0xe4,
1314 0xe9, 0x94, 0x5b, 0x3d, 0x6b, 0xa2, 0x15, 0x8c,
1315 0x26, 0x34, 0xe9, 0x84
1325 0x3d, 0x2e, 0xec, 0x4f, 0xe4, 0x1c, 0x84, 0x9b,
1326 0x80, 0xc8, 0xd8, 0x36, 0x62, 0xc0, 0xe4, 0x4a,
1327 0x8b, 0x29, 0x1a, 0x96, 0x4c, 0xf2, 0xf0, 0x70,
1328 0x38
1332 #if 0 /* \0 not currently supported in passphrase parameters.. */
1334 "pass\0word",
1335 "sa\0lt",
1338 0x56, 0xfa, 0x6a, 0xa7, 0x55, 0x48, 0x09, 0x9d,
1339 0xcc, 0x37, 0xd7, 0xf0, 0x34, 0x25, 0xe0, 0xc3
1352 int ret = 0; in test_sha1()
1358 res, sizeof(prf0)) == 0 && in test_sha1()
1359 os_memcmp(res, prf0, sizeof(prf0)) == 0) in test_sha1()
1360 wpa_printf(MSG_INFO, "Test case 0 - OK"); in test_sha1()
1362 wpa_printf(MSG_INFO, "Test case 0 - FAILED!"); in test_sha1()
1367 res, sizeof(prf1)) == 0 && in test_sha1()
1368 os_memcmp(res, prf1, sizeof(prf1)) == 0) in test_sha1()
1376 res, sizeof(prf2)) == 0 && in test_sha1()
1377 os_memcmp(res, prf2, sizeof(prf2)) == 0) in test_sha1()
1387 for (i = 0; i < NUM_PASSPHRASE_TESTS; i++) { in test_sha1()
1393 4096, psk, 32) == 0 && in test_sha1()
1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1()
1403 for (i = 0; i < NUM_RFC6070_TESTS; i++) { in test_sha1()
1408 test->c, dk, test->dk_len) == 0 && in test_sha1()
1409 os_memcmp(dk, test->dk, test->dk_len) == 0) in test_sha1()
1430 0xba, 0x78, 0x16, 0xbf, 0x8f, 0x01, 0xcf, 0xea,
1431 0x41, 0x41, 0x40, 0xde, 0x5d, 0xae, 0x22, 0x23,
1432 0xb0, 0x03, 0x61, 0xa3, 0x96, 0x17, 0x7a, 0x9c,
1433 0xb4, 0x10, 0xff, 0x61, 0xf2, 0x00, 0x15, 0xad
1439 0x24, 0x8d, 0x6a, 0x61, 0xd2, 0x06, 0x38, 0xb8,
1440 0xe5, 0xc0, 0x26, 0x93, 0x0c, 0x3e, 0x60, 0x39,
1441 0xa3, 0x3c, 0xe4, 0x59, 0x64, 0xff, 0x21, 0x67,
1442 0xf6, 0xec, 0xed, 0xd4, 0x19, 0xdb, 0x06, 0xc1
1458 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
1459 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
1460 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
1461 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20
1466 0xa2, 0x1b, 0x1f, 0x5d, 0x4c, 0xf4, 0xf7, 0x3a,
1467 0x4d, 0xd9, 0x39, 0x75, 0x0f, 0x7a, 0x06, 0x6a,
1468 0x7f, 0x98, 0xcc, 0x13, 0x1c, 0xb1, 0x6a, 0x66,
1469 0x92, 0x75, 0x90, 0x21, 0xcf, 0xab, 0x81, 0x81
1475 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
1476 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
1477 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
1478 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20
1484 0x10, 0x4f, 0xdc, 0x12, 0x57, 0x32, 0x8f, 0x08,
1485 0x18, 0x4b, 0xa7, 0x31, 0x31, 0xc5, 0x3c, 0xae,
1486 0xe6, 0x98, 0xe3, 0x61, 0x19, 0x42, 0x11, 0x49,
1487 0xea, 0x8c, 0x71, 0x24, 0x56, 0x69, 0x7d, 0x30
1493 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
1494 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
1495 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
1496 0x19, 0x1a, 0x1b, 0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x8a,
1623 0x0a, 0xa2, 0xac, 0xe0, 0x14, 0xc8, 0xa8, 0x6f,
1624 0x0a, 0xa6, 0x35, 0xd9, 0x47, 0xac, 0x9f, 0xeb,
1625 0xe8, 0x3e, 0xf4, 0xe5, 0x59, 0x66, 0x14, 0x4b,
1626 0x2a, 0x5a, 0xb3, 0x9d, 0xc1, 0x38, 0x14, 0xb9,
1627 0x4e, 0x3a, 0xb6, 0xe1, 0x01, 0xa3, 0x4f, 0x27
1632 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
1633 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
1634 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
1635 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20,
1636 0x21, 0x22, 0x23, 0x24, 0x25
1640 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1641 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1642 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1643 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1644 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1645 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
1646 0xcd, 0xcd
1650 0xd4, 0x63, 0x3c, 0x17, 0xf6, 0xfb, 0x8d, 0x74,
1651 0x4c, 0x66, 0xde, 0xe0, 0xf8, 0xf0, 0x74, 0x55,
1652 0x6e, 0xc4, 0xaf, 0x55, 0xef, 0x07, 0x99, 0x85,
1653 0x41, 0x46, 0x8e, 0xb4, 0x9b, 0xd2, 0xe9, 0x17
1659 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
1660 0x09, 0x0a, 0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e, 0xb0, 0xb8, 0xfb, 0x9a,
1828 0xdc, 0xce, 0xbb, 0x82, 0x46, 0x1e, 0x99, 0xc5,
1829 0xa6, 0x78, 0xcc, 0x31, 0xe7, 0x99, 0x17, 0x6d,
1830 0x38, 0x60, 0xe6, 0x11, 0x0c, 0x46, 0x52, 0x3e
1842 int errors = 0; in test_sha256()
1845 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_sha256()
1848 addr[0] = (u8 *) tests[i].data; in test_sha256()
1849 len[0] = strlen(tests[i].data); in test_sha256()
1851 if (memcmp(hash, tests[i].hash, 32) != 0) { in test_sha256()
1857 if (len[0]) { in test_sha256()
1858 addr[0] = (u8 *) tests[i].data; in test_sha256()
1859 len[0] = 1; in test_sha256()
1863 if (memcmp(hash, tests[i].hash, 32) != 0) { in test_sha256()
1871 for (i = 0; i < ARRAY_SIZE(hmac_tests); i++) { in test_sha256()
1877 hash) < 0 || in test_sha256()
1878 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1884 addr[0] = t->data; in test_sha256()
1885 len[0] = t->data_len; in test_sha256()
1887 hash) < 0 || in test_sha256()
1888 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1894 if (len[0]) { in test_sha256()
1895 addr[0] = t->data; in test_sha256()
1896 len[0] = 1; in test_sha256()
1900 hash) < 0 || in test_sha256()
1901 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1929 if (res == 0) { in test_sha256()
1952 int errors = 0; in test_sha384()
1955 0x59, 0xe1, 0x74, 0x87, 0x77, 0x44, 0x8c, 0x69, in test_sha384()
1956 0xde, 0x6b, 0x80, 0x0d, 0x7a, 0x33, 0xbb, 0xfb, in test_sha384()
1957 0x9f, 0xf1, 0xb4, 0x63, 0xe4, 0x43, 0x54, 0xc3, in test_sha384()
1958 0x55, 0x3b, 0xcd, 0xb9, 0xc6, 0x66, 0xfa, 0x90, in test_sha384()
1959 0x12, 0x5a, 0x3c, 0x79, 0xf9, 0x03, 0x97, 0xbd, in test_sha384()
1960 0xf5, 0xf6, 0xa1, 0x3d, 0xe8, 0x28, 0x68, 0x4f in test_sha384()
1963 addr[0] = (const u8 *) data; in test_sha384()
1964 len[0] = 5; in test_sha384()
1965 if (sha384_vector(1, addr, len, hash) < 0 || in test_sha384()
1966 os_memcmp(hash, hash_res, 48) != 0) { in test_sha384()
1973 addr[0] = (const u8 *) data; in test_sha384()
1974 len[0] = 4; in test_sha384()
1977 if (sha384_vector(2, addr, len, hash) < 0 || in test_sha384()
1978 os_memcmp(hash, hash_res, 48) != 0) { in test_sha384()
1985 for (i = 0; i < ARRAY_SIZE(hmac_tests); i++) { in test_sha384()
1988 if (t->hash384[0] == 0 && t->hash384[1] == 0 && in test_sha384()
1989 t->hash384[2] == 0 && t->hash384[3] == 0) in test_sha384()
1994 hash) < 0 || in test_sha384()
1995 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2001 addr[0] = t->data; in test_sha384()
2002 len[0] = t->data_len; in test_sha384()
2004 hash) < 0 || in test_sha384()
2005 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2011 if (len[0]) { in test_sha384()
2012 addr[0] = t->data; in test_sha384()
2013 len[0] = 1; in test_sha384()
2017 hash) < 0 || in test_sha384()
2018 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2030 return 0; in test_sha384()
2039 0xbd, 0x02, 0x9b, 0xbe, 0x7f, 0x51, 0x96, 0x0b, in test_fips186_2_prf()
2040 0xcf, 0x9e, 0xdb, 0x2b, 0x61, 0xf0, 0x6f, 0x0f, in test_fips186_2_prf()
2041 0xeb, 0x5a, 0x38, 0xb6 in test_fips186_2_prf()
2044 0x20, 0x70, 0xb3, 0x22, 0x3d, 0xba, 0x37, 0x2f, in test_fips186_2_prf()
2045 0xde, 0x1c, 0x0f, 0xfc, 0x7b, 0x2e, 0x3b, 0x49, in test_fips186_2_prf()
2046 0x8b, 0x26, 0x06, 0x14, 0x3c, 0x6c, 0x18, 0xba, in test_fips186_2_prf()
2047 0xcb, 0x0f, 0x6c, 0x55, 0xba, 0xbb, 0x13, 0x78, in test_fips186_2_prf()
2048 0x8e, 0x20, 0xd7, 0x37, 0xa3, 0x27, 0x51, 0x16 in test_fips186_2_prf()
2054 if (fips186_2_prf(xkey, sizeof(xkey), buf, sizeof(buf)) < 0 || in test_fips186_2_prf()
2055 os_memcmp(w, buf, sizeof(w)) != 0) { in test_fips186_2_prf()
2060 return 0; in test_fips186_2_prf()
2071 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, in test_extract_expand_hkdf()
2072 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, in test_extract_expand_hkdf()
2073 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b in test_extract_expand_hkdf()
2076 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_extract_expand_hkdf()
2077 0x08, 0x09, 0x0a, 0x0b, 0x0c in test_extract_expand_hkdf()
2080 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_extract_expand_hkdf()
2081 0xf8, 0xf9 in test_extract_expand_hkdf()
2084 0x07, 0x77, 0x09, 0x36, 0x2c, 0x2e, 0x32, 0xdf, in test_extract_expand_hkdf()
2085 0x0d, 0xdc, 0x3f, 0x0d, 0xc4, 0x7b, 0xba, 0x63, in test_extract_expand_hkdf()
2086 0x90, 0xb6, 0xc7, 0x3b, 0xb5, 0x0f, 0x9c, 0x31, in test_extract_expand_hkdf()
2087 0x22, 0xec, 0x84, 0x4a, 0xd7, 0xc2, 0xb3, 0xe5 in test_extract_expand_hkdf()
2090 0x3c, 0xb2, 0x5f, 0x25, 0xfa, 0xac, 0xd5, 0x7a, in test_extract_expand_hkdf()
2091 0x90, 0x43, 0x4f, 0x64, 0xd0, 0x36, 0x2f, 0x2a, in test_extract_expand_hkdf()
2092 0x2d, 0x2d, 0x0a, 0x90, 0xcf, 0x1a, 0x5a, 0x4c, in test_extract_expand_hkdf()
2093 0x5d, 0xb0, 0x2d, 0x56, 0xec, 0xc4, 0xc5, 0xbf, in test_extract_expand_hkdf()
2094 0x34, 0x00, 0x72, 0x08, 0xd5, 0xb8, 0x87, 0x18, in test_extract_expand_hkdf()
2095 0x58, 0x65 in test_extract_expand_hkdf()
2100 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in test_extract_expand_hkdf()
2101 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, in test_extract_expand_hkdf()
2102 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, in test_extract_expand_hkdf()
2103 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, in test_extract_expand_hkdf()
2104 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, in test_extract_expand_hkdf()
2105 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, in test_extract_expand_hkdf()
2106 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, in test_extract_expand_hkdf()
2107 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, in test_extract_expand_hkdf()
2108 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, in test_extract_expand_hkdf()
2109 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f in test_extract_expand_hkdf()
2112 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, in test_extract_expand_hkdf()
2113 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, in test_extract_expand_hkdf()
2114 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, in test_extract_expand_hkdf()
2115 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, in test_extract_expand_hkdf()
2116 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, in test_extract_expand_hkdf()
2117 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, in test_extract_expand_hkdf()
2118 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, in test_extract_expand_hkdf()
2119 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, in test_extract_expand_hkdf()
2120 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, in test_extract_expand_hkdf()
2121 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf in test_extract_expand_hkdf()
2124 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, in test_extract_expand_hkdf()
2125 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, in test_extract_expand_hkdf()
2126 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, in test_extract_expand_hkdf()
2127 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, in test_extract_expand_hkdf()
2128 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, in test_extract_expand_hkdf()
2129 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, in test_extract_expand_hkdf()
2130 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, in test_extract_expand_hkdf()
2131 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, in test_extract_expand_hkdf()
2132 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, in test_extract_expand_hkdf()
2133 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff in test_extract_expand_hkdf()
2136 0x06, 0xa6, 0xb8, 0x8c, 0x58, 0x53, 0x36, 0x1a, in test_extract_expand_hkdf()
2137 0x06, 0x10, 0x4c, 0x9c, 0xeb, 0x35, 0xb4, 0x5c, in test_extract_expand_hkdf()
2138 0xef, 0x76, 0x00, 0x14, 0x90, 0x46, 0x71, 0x01, in test_extract_expand_hkdf()
2139 0x4a, 0x19, 0x3f, 0x40, 0xc1, 0x5f, 0xc2, 0x44 in test_extract_expand_hkdf()
2142 0xb1, 0x1e, 0x39, 0x8d, 0xc8, 0x03, 0x27, 0xa1, in test_extract_expand_hkdf()
2143 0xc8, 0xe7, 0xf7, 0x8c, 0x59, 0x6a, 0x49, 0x34, in test_extract_expand_hkdf()
2144 0x4f, 0x01, 0x2e, 0xda, 0x2d, 0x4e, 0xfa, 0xd8, in test_extract_expand_hkdf()
2145 0xa0, 0x50, 0xcc, 0x4c, 0x19, 0xaf, 0xa9, 0x7c, in test_extract_expand_hkdf()
2146 0x59, 0x04, 0x5a, 0x99, 0xca, 0xc7, 0x82, 0x72, in test_extract_expand_hkdf()
2147 0x71, 0xcb, 0x41, 0xc6, 0x5e, 0x59, 0x0e, 0x09, in test_extract_expand_hkdf()
2148 0xda, 0x32, 0x75, 0x60, 0x0c, 0x2f, 0x09, 0xb8, in test_extract_expand_hkdf()
2149 0x36, 0x77, 0x93, 0xa9, 0xac, 0xa3, 0xdb, 0x71, in test_extract_expand_hkdf()
2150 0xcc, 0x30, 0xc5, 0x81, 0x79, 0xec, 0x3e, 0x87, in test_extract_expand_hkdf()
2151 0xc1, 0x4c, 0x01, 0xd5, 0xc1, 0xf3, 0x43, 0x4f, in test_extract_expand_hkdf()
2152 0x1d, 0x87 in test_extract_expand_hkdf()
2158 if (hmac_sha256(salt1, sizeof(salt1), ikm1, sizeof(ikm1), prk) < 0) in test_extract_expand_hkdf()
2160 if (os_memcmp(prk, prk1, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
2165 okm, sizeof(okm1)) < 0) in test_extract_expand_hkdf()
2167 if (os_memcmp(okm, okm1, sizeof(okm1)) != 0) { in test_extract_expand_hkdf()
2173 if (hmac_sha256(salt2, sizeof(salt2), ikm2, sizeof(ikm2), prk) < 0) in test_extract_expand_hkdf()
2175 if (os_memcmp(prk, prk2, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
2180 okm, sizeof(okm2)) < 0) in test_extract_expand_hkdf()
2182 if (os_memcmp(okm, okm2, sizeof(okm2)) != 0) { in test_extract_expand_hkdf()
2189 return 0; in test_extract_expand_hkdf()
2368 wpabuf_len(pt)) != 0) { in run_hpke_test()
2429 wpabuf_len(pt)) != 0) { in run_hpke_test()
2436 res = 0; in run_hpke_test()
2462 for (i = 0; i < ARRAY_SIZE(hpke_tests); i++) { in test_hpke()
2463 if (run_hpke_test(&hpke_tests[i]) < 0) in test_hpke()
2469 return 0; in test_hpke()
2480 0x5B, 0x5D, 0x7C, 0x7D, 0x7B, 0x3F, 0x2F, 0x3E, in test_ms_funcs()
2481 0x3C, 0x2C, 0x60, 0x21, 0x32, 0x26, 0x26, 0x28 in test_ms_funcs()
2484 0x21, 0x40, 0x23, 0x24, 0x25, 0x5E, 0x26, 0x2A, in test_ms_funcs()
2485 0x28, 0x29, 0x5F, 0x2B, 0x3A, 0x33, 0x7C, 0x7E in test_ms_funcs()
2488 0x44, 0xEB, 0xBA, 0x8D, 0x53, 0x12, 0xB8, 0xD6, in test_ms_funcs()
2489 0x11, 0x47, 0x44, 0x11, 0xF5, 0x69, 0x89, 0xAE in test_ms_funcs()
2492 0x82, 0x30, 0x9E, 0xCD, 0x8D, 0x70, 0x8B, 0x5E, in test_ms_funcs()
2493 0xA0, 0x8F, 0xAA, 0x39, 0x81, 0xCD, 0x83, 0x54, in test_ms_funcs()
2494 0x42, 0x33, 0x11, 0x4A, 0x3D, 0x85, 0xD6, 0xDF in test_ms_funcs()
2497 0x41, 0xC0, 0x0C, 0x58, 0x4B, 0xD2, 0xD9, 0x1C, in test_ms_funcs()
2498 0x40, 0x17, 0xA2, 0xA1, 0x2F, 0xA5, 0x9F, 0x3F in test_ms_funcs()
2501 0x40, 0x7A, 0x55, 0x89, 0x11, 0x5F, 0xD0, 0xD6, in test_ms_funcs()
2502 0x20, 0x9F, 0x51, 0x0F, 0xE9, 0xC0, 0x45, 0x66, in test_ms_funcs()
2503 0x93, 0x2C, 0xDA, 0x56 in test_ms_funcs()
2506 0xFD, 0xEC, 0xE3, 0x71, 0x7A, 0x8C, 0x83, 0x8C, in test_ms_funcs()
2507 0xB3, 0x88, 0xE5, 0x27, 0xAE, 0x3C, 0xDD, 0x31 in test_ms_funcs()
2510 0x8B, 0x7C, 0xDC, 0x14, 0x9B, 0x99, 0x3A, 0x1B, in test_ms_funcs()
2511 0xA1, 0x18, 0xCB, 0x15, 0x3F, 0x56, 0xDC, 0xCB in test_ms_funcs()
2514 int errors = 0; in test_ms_funcs()
2517 os_memcmp(password_hash, buf, sizeof(password_hash)) != 0) { in test_ms_funcs()
2525 os_memcmp(nt_response, buf, sizeof(nt_response)) != 0) { in test_ms_funcs()
2532 sizeof(password_hash_hash)) != 0) { in test_ms_funcs()
2544 sizeof(authenticator_response)) != 0) { in test_ms_funcs()
2550 os_memcmp(master_key, buf, sizeof(master_key)) != 0) { in test_ms_funcs()
2557 os_memcmp(send_start_key, buf, sizeof(send_start_key)) != 0) { in test_ms_funcs()
2570 return 0; in test_ms_funcs()
2577 int ret = 0; in crypto_module_tests()