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

Unified Diff: test/sha1_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 | « lib/src/hash_base.dart ('k') | test/sha256_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/sha1_test.dart
diff --git a/test/sha1_test.dart b/test/sha1_test.dart
index a531b99c8330b9b5f48dae3e0acbc0d91b902060..2bba41ad76b08c9a2b5b888c3801f26b5af5ec4f 100644
--- a/test/sha1_test.dart
+++ b/test/sha1_test.dart
@@ -7,6 +7,7 @@ library sha1_test;
import "package:crypto/crypto.dart";
import "package:test/test.dart";
+import 'very_long_input.dart';
part 'sha1_long_test_vectors.dart';
part 'sha1_short_test_vectors.dart';
@@ -21,6 +22,10 @@ void main() {
test('short inputs', () {
_testStandardVectors(sha1_short_inputs, sha1_short_mds);
});
+ test('input bit length greater than 32 bits', () {
+ veryLongInput(
+ new SHA1(), 1000000000, '1dd775261d7abab0b66910acc1d827a2c3799eaf');
+ });
}
void _testExpectedValues() {
« no previous file with comments | « lib/src/hash_base.dart ('k') | test/sha256_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698