| 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 library hmac_sha1_test; | |
| 7 | |
| 8 import "package:crypto/crypto.dart"; | 6 import "package:crypto/crypto.dart"; |
| 9 import "package:test/test.dart"; | 7 import "package:test/test.dart"; |
| 10 | 8 |
| 11 import 'utils.dart'; | 9 import 'utils.dart'; |
| 12 | 10 |
| 13 void main() { | 11 void main() { |
| 14 group("standard vector", () { | 12 group("standard vector", () { |
| 15 for (var i = 0; i < _inputs.length; i++) { | 13 for (var i = 0; i < _inputs.length; i++) { |
| 16 test(_macs[i], () { | 14 test(_macs[i], () { |
| 17 expectHmacEquals(new SHA1(), _inputs[i], _keys[i], _macs[i]); | 15 expectHmacEquals(new SHA1(), _inputs[i], _keys[i], _macs[i]); |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 'd78807f2a69d8e348cbd2c2d745f342397e20a41', | 922 'd78807f2a69d8e348cbd2c2d745f342397e20a41', |
| 925 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', | 923 '9602a3a1fd2dc3c55df5815ac0517001f8c6593b', |
| 926 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', | 924 'b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d', |
| 927 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', | 925 '5f009c918e2f8d7c9f9087b78af44f54518e1c5a', |
| 928 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', | 926 'f92f9c4b8d423b14ac7ad924f183a1cc27de6afd', |
| 929 'f476bd42bae22e645cedf601511b1ab8f2852b2c', | 927 'f476bd42bae22e645cedf601511b1ab8f2852b2c', |
| 930 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', | 928 '48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b', |
| 931 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', | 929 '9e51be58cf2d5c8e85556b8f3d484109fb49553a', |
| 932 '4ac41ab89f625c60125ed65ffa958c6b490ea670' | 930 '4ac41ab89f625c60125ed65ffa958c6b490ea670' |
| 933 ]; | 931 ]; |
| OLD | NEW |