| OLD | NEW |
| 1 // 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 |
| 2 // 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 |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Library tag to allow the test to run on Dartium. | 5 // Library tag to allow the test to run on Dartium. |
| 6 import "package:crypto/crypto.dart"; | 6 import 'package:crypto/crypto.dart'; |
| 7 import "package:test/test.dart"; | 7 import 'package:test/test.dart'; |
| 8 | 8 |
| 9 import 'utils.dart'; | 9 import 'utils.dart'; |
| 10 | 10 |
| 11 void main() { | 11 void main() { |
| 12 group("standard vector", () { | 12 group('standard vector', () { |
| 13 for (var i = 0; i < _inputs.length; i++) { | 13 for (var i = 0; i < _inputs.length; i++) { |
| 14 test(_macs[i], () { | 14 test(_macs[i], () { |
| 15 expectHmacEquals(sha1, _inputs[i], _keys[i], _macs[i]); | 15 expectHmacEquals(sha1, _inputs[i], _keys[i], _macs[i]); |
| 16 }); | 16 }); |
| 17 } | 17 } |
| 18 }); | 18 }); |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Standard test vectors from: | 21 // Standard test vectors from: |
| 22 // http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip | 22 // http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip |
| (...skipping 6719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6742 'd78807f2a69d8e348cbd2c2d745f342397e20a41', | 6742 'd78807f2a69d8e348cbd2c2d745f342397e20a41', |
| 6743 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', | 6743 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', |
| 6744 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', | 6744 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', |
| 6745 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', | 6745 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', |
| 6746 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', | 6746 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', |
| 6747 'f476bd42bae22e645cedf601511b1ab8f2852b2c', | 6747 'f476bd42bae22e645cedf601511b1ab8f2852b2c', |
| 6748 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', | 6748 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', |
| 6749 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', | 6749 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', |
| 6750 '4ac41ab89f625c60125ed65ffa958c6b490ea670' | 6750 '4ac41ab89f625c60125ed65ffa958c6b490ea670' |
| 6751 ]; | 6751 ]; |
| OLD | NEW |