| 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_sha256_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 SHA256(), _inputs[i], _keys[i], _macs[i]); | 15 expectHmacEquals(new SHA256(), _inputs[i], _keys[i], _macs[i]); |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', | 697 '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', |
| 700 'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', | 698 'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', |
| 701 '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', | 699 '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', |
| 702 '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', | 700 '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', |
| 703 '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', | 701 '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', |
| 704 'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', | 702 'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', |
| 705 '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', | 703 '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', |
| 706 '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', | 704 '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', |
| 707 '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', | 705 '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', |
| 708 ]; | 706 ]; |
| OLD | NEW |