OLD | NEW |
1 part of hmac_sha1_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_sha1_inputs = const [ | 8 const hmac_sha1_inputs = const [ |
11 const [ 0xfc, 0xd6, 0xd9, 0x8b, 0xef, 0x45, 0xed, 0x68, 0x50, 0x80, 0x6e, 0x96,
0xf2, 0x55, 0xfa, 0x0c, 0x81, 0x14, 0xb7, 0x28, 0x73, 0xab, 0xe8, 0xf4, 0x3c, 0x
10, 0xbe, 0xa7, 0xc1, 0xdf, 0x70, 0x6f, 0x10, 0x45, 0x8e, 0x6d, 0x4e, 0x1c, 0x92
, 0x01, 0xf0, 0x57, 0xb8, 0x49, 0x2f, 0xa1, 0x0f, 0xe4, 0xb5, 0x41, 0xd0, 0xfc,
0x9d, 0x41, 0xef, 0x83, 0x9a, 0xcf, 0xf1, 0xbc, 0x76, 0xe3, 0xfd, 0xfe, 0xbf, 0x
22, 0x35, 0xb5, 0xbd, 0x03, 0x47, 0xa9, 0xa6, 0x30, 0x3e, 0x83, 0x15, 0x2f, 0x9f
, 0x8d, 0xb9, 0x41, 0xb1, 0xb9, 0x4a, 0x8a, 0x1c, 0xe5, 0xc2, 0x73, 0xb5, 0x5d,
0xc9, 0x4d, 0x99, 0xa1, 0x71, 0x37, 0x79, 0x69, 0x23, 0x41, 0x34, 0xe7, 0xda, 0x
d1, 0xab, 0x4c, 0x8e, 0x46, 0xd1, 0x8d, 0xf4, 0xdc, 0x01,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x81, 0xe4, 0x2a, 0x39, 0xd9, 0x40, 0x29, 0x41, 0xf3, 0x9b, 0x5e, 0x12, 0x6b, 0x
af, 0xe8, 0x64, 0xea, 0x16, 0x48, 0xc0, 0xa5, 0xbe, 0x0a, 0x91, 0x26, 0x97, 0xa8
, 0x7e, 0x4f, 0x8e, 0xab, 0xf7, 0x9c, 0xbf, 0x13, 0x0e ], |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 'd78807f2a69d8e348cbd2c2d745f342397e20a41', | 906 'd78807f2a69d8e348cbd2c2d745f342397e20a41', |
909 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', | 907 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', |
910 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', | 908 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', |
911 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', | 909 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', |
912 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', | 910 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', |
913 'f476bd42bae22e645cedf601511b1ab8f2852b2c', | 911 'f476bd42bae22e645cedf601511b1ab8f2852b2c', |
914 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', | 912 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', |
915 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', | 913 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', |
916 '4ac41ab89f625c60125ed65ffa958c6b490ea670', | 914 '4ac41ab89f625c60125ed65ffa958c6b490ea670', |
917 ]; | 915 ]; |
OLD | NEW |