Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Side by Side Diff: packages/crypto/test/hmac_sha1_test.dart

Issue 3014633002: Roll to pickup pool changes (Closed)
Patch Set: Created 3 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/crypto/test/hmac_md5_test.dart ('k') | packages/crypto/test/hmac_sha256_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ];
OLDNEW
« no previous file with comments | « packages/crypto/test/hmac_md5_test.dart ('k') | packages/crypto/test/hmac_sha256_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698