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

Unified Diff: base/md5.cc

Issue 211503004: base::MD5Clone() clones MD5Context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« base/md5.h ('K') | « base/md5.h ('k') | base/md5_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/md5.cc
diff --git a/base/md5.cc b/base/md5.cc
index 754994c0e562b45b2bc4b90cc2a7c612d14ec5a7..aec6d43f94d6f92fead99cfb2bb397d33ecf7282 100644
--- a/base/md5.cc
+++ b/base/md5.cc
@@ -215,6 +215,10 @@ void MD5Update(MD5Context* context, const StringPiece& data) {
memcpy(ctx->in, buf, len);
}
+void MD5Clone(MD5Context* clone_context, MD5Context* original_context) {
+ memcpy(clone_context, original_context, sizeof(MD5Context));
+}
+
/*
* Final wrapup - pad to 64-byte boundary with the bit pattern
* 1 0* (64-bit count of bits processed, MSB-first)
« base/md5.h ('K') | « base/md5.h ('k') | base/md5_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698