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

Unified Diff: base/md5.h

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
« no previous file with comments | « no previous file | base/md5.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/md5.h
diff --git a/base/md5.h b/base/md5.h
index fba02bd11635d63ac2057e25cf150bc25d84f012..ea81f531bd3925b44ba40eabbcfe64b5bc2e5d78 100644
--- a/base/md5.h
+++ b/base/md5.h
@@ -55,6 +55,11 @@ BASE_EXPORT void MD5Init(MD5Context* context);
// during the computation, except that MD5Init() must have been called first.
BASE_EXPORT void MD5Update(MD5Context* context, const StringPiece& data);
+// Clone the state of the given context. This can be used to generate an
+// intermediate digest without affecting the original context.
awong 2014/03/25 20:00:41 This comment is a little bit confusing. Can you mo
+BASE_EXPORT void MD5Clone(MD5Context* clone_context,
+ MD5Context* original_context);
+
// Finalizes the MD5 operation and fills the buffer with the digest.
BASE_EXPORT void MD5Final(MD5Digest* digest, MD5Context* context);
« no previous file with comments | « no previous file | base/md5.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698