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

Unified Diff: test/sha256_test.dart

Issue 1348823004: test large inputs for sha1 and sha256, also remove unused import (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: tweaks from review Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/sha1_test.dart ('k') | test/very_long_input.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/sha256_test.dart
diff --git a/test/sha256_test.dart b/test/sha256_test.dart
index a9c93601fd8ab78b90305c18df469221077e1cf7..52a5e7e9a830cf0bdbf3971a53969e5810f5fc29 100644
--- a/test/sha256_test.dart
+++ b/test/sha256_test.dart
@@ -7,6 +7,7 @@ library sha256_test;
import "package:test/test.dart";
import "package:crypto/crypto.dart";
+import 'very_long_input.dart';
part 'sha256_long_test_vectors.dart';
part 'sha256_short_test_vectors.dart';
@@ -19,6 +20,10 @@ void main() {
() => _testStandardVectors(sha256_long_inputs, sha256_long_mds));
test('short inputs',
() => _testStandardVectors(sha256_short_inputs, sha256_short_mds));
+ test('input bit length greater than 32 bits', () {
+ veryLongInput(new SHA256(), 1000000000,
+ 'bc17f06f9d9b5f6f79ca189a1772b1a3a38d6e40c45bec50f9c4f28144efddca');
+ });
}
void _testExpectedValues() {
« no previous file with comments | « test/sha1_test.dart ('k') | test/very_long_input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698