| 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(sha256, _inputs[i], _keys[i], _macs[i]); | 15         expectHmacEquals(sha256, _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 4814 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4837   '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', | 4837   '988d4a6fa87f8138d754c5de9d176c45eaccf8eb8ca1799d87c8f04a966b6f4c', | 
| 4838   'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', | 4838   'ee6492a669e22bcf19bbdfc45495cd0efa9c2f2ef5d42831e3f13a545cbcd6a1', | 
| 4839   '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', | 4839   '9611e838fb1d816a0ff9cd269217d93258c34df9e26b74476fe4da0f7dee2335', | 
| 4840   '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', | 4840   '0bb4127d89d9073ea425c303adc3f9db39e40adac23ea61fba8b6e251d79390f', | 
| 4841   '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', | 4841   '109ebb4cb2ad746762b6652fc63b99019857ae89acfe9807648c3cfa151fed42', | 
| 4842   'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', | 4842   'b53db6bf0c8317586ae6c1a1e2857f241bf55dddd1b423578c6949d4bf014611', | 
| 4843   '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', | 4843   '4a34bd4dfeef7fa1dc739280f16a3fe1281a51311c10a920ab43d406d4ae3370', | 
| 4844   '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', | 4844   '4de7bab7fe9a0a9bf7b51a7cdf7d929f2b1c6ff4575fd527baba1efdf4254890', | 
| 4845   '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', | 4845   '4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc59694252801b', | 
| 4846 ]; | 4846 ]; | 
| OLD | NEW | 
|---|