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

Unified Diff: lib/crypto/crypto.dart

Issue 10351008: Implement md5 hash in crypto library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Indentation fix Created 8 years, 7 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 | « no previous file | lib/crypto/hash_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/crypto/crypto.dart
diff --git a/lib/crypto/crypto.dart b/lib/crypto/crypto.dart
index d34aeaac9efc4a23a84dfae8096a8dff86a66be0..7f193c6451aef9b931f059df05084a3e71c945af 100644
--- a/lib/crypto/crypto.dart
+++ b/lib/crypto/crypto.dart
@@ -5,8 +5,9 @@
#library('crypto');
#source('crypto_utils.dart');
+#source('hash_utils.dart');
#source('hmac.dart');
-#source('sha_utils.dart');
+#source('md5.dart');
#source('sha1.dart');
#source('sha256.dart');
@@ -61,6 +62,16 @@ interface SHA256 extends Hash default _SHA256 {
}
/**
+ * MD5 hash function implementation.
+ *
+ * WARNING: MD5 has known collisions and should only be used when
+ * required for backwards compatibility.
+ */
+interface MD5 extends Hash default _MD5 {
+ MD5();
+}
+
+/**
* Hash-based Message Authentication Code support.
*
* The [update] method is used to add data to the message. The [digest] method
« no previous file with comments | « no previous file | lib/crypto/hash_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698