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

Unified Diff: lib/crypto/sha256.dart

Issue 10170027: Implement HMAC support in lib/crypto. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: lib/crypto/sha256.dart
diff --git a/lib/crypto/sha256.dart b/lib/crypto/sha256.dart
index f9e836c76900079ffab8a6ca0502c24009b20d36..429b4e6df521e8d94c24acb561d0106044eb69db 100644
--- a/lib/crypto/sha256.dart
+++ b/lib/crypto/sha256.dart
@@ -18,6 +18,11 @@ class _SHA256 extends _SHACryptoHashBase implements SHA256 {
_h[7] = 0x5be0cd19;
}
+ // Returns a new instance of this CryptoHash.
+ SHA256 newInstance() {
+ return new SHA256();
+ }
+
// Table of round constants. First 32 bits of the fractional
// parts of the cube roots of the first 64 prime numbers.
static final List<int> _K =

Powered by Google App Engine
This is Rietveld 408576698