OLD | NEW |
1 part of hmac_sha256_test; | |
2 | |
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 // Standard test vectors from: | 5 // Standard test vectors from: |
8 // http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip | 6 // http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip |
9 | 7 |
10 const hmac_sha256_inputs = const [ | 8 const hmac_sha256_inputs = const [ |
11 const [ 0x75, 0x2c, 0xff, 0x52, 0xe4, 0xb9, 0x07, 0x68, 0x55, 0x8e, 0x53, 0x69,
0xe7, 0x5d, 0x97, 0xc6, 0x96, 0x43, 0x50, 0x9a, 0x5e, 0x59, 0x04, 0xe0, 0xa3, 0x
86, 0xcb, 0xe4, 0xd0, 0x97, 0x0e, 0xf7, 0x3f, 0x91, 0x8f, 0x67, 0x59, 0x45, 0xa9
, 0xae, 0xfe, 0x26, 0xda, 0xea, 0x27, 0x58, 0x7e, 0x8d, 0xc9, 0x09, 0xdd, 0x56,
0xfd, 0x04, 0x68, 0x80, 0x5f, 0x83, 0x40, 0x39, 0xb3, 0x45, 0xf8, 0x55, 0xcf, 0x
e1, 0x9c, 0x44, 0xb5, 0x5a, 0xf2, 0x41, 0xff, 0xf3, 0xff, 0xcd, 0x80, 0x45, 0xcd
, 0x5c, 0x28, 0x8e, 0x6c, 0x4e, 0x28, 0x4c, 0x37, 0x20, 0x57, 0x0b, 0x58, 0xe4,
0xd4, 0x7b, 0x8f, 0xee, 0xed, 0xc5, 0x2f, 0xd1, 0x40, 0x1f, 0x69, 0x8a, 0x20, 0x
9f, 0xcc, 0xfa, 0x3b, 0x4c, 0x0d, 0x9a, 0x79, 0x7b, 0x04, 0x6a, 0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0x69, 0x85, 0xc4,
0x41, 0x4c, 0x0f, 0xcc, 0x78, 0x00, 0x30, 0xf4, 0x9f, 0xef, 0x79, 0x1a, 0x6c, 0x
08, 0xed, 0xc2, 0xa3, 0x11, 0x08, 0x0c, 0x37, 0x3f, 0x00, 0xe4, 0xb2, 0x04, 0x4a
, 0x79, 0xd8, 0x28, 0x60, 0xf0, 0x87, 0x1b, 0xc2, 0x59 ], |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', | 681 '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', |
684 'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', | 682 'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', |
685 '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', | 683 '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', |
686 '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', | 684 '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', |
687 '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', | 685 '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', |
688 'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', | 686 'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', |
689 '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', | 687 '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', |
690 '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', | 688 '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', |
691 '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', | 689 '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', |
692 ]; | 690 ]; |
OLD | NEW |