summaryrefslogtreecommitdiffstats
path: root/base/md5.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-15 02:53:37 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-15 02:53:37 +0000
commitbd4d016c13ce488e4d5e2f36c6319494ccbc6ec4 (patch)
treeb43b9918c71c1d47f98bd5c22fac0755682a84cb /base/md5.h
parentea2ff0558dafeb83c42cf95dc2bb34559365b59e (diff)
downloadchromium_src-bd4d016c13ce488e4d5e2f36c6319494ccbc6ec4.zip
chromium_src-bd4d016c13ce488e4d5e2f36c6319494ccbc6ec4.tar.gz
chromium_src-bd4d016c13ce488e4d5e2f36c6319494ccbc6ec4.tar.bz2
base: Add namespace base to MD5 unittests.
BUG=89274 TEST=base_unittests --gtest_filter=MD5Test.* R=evan@chromium.org Review URL: http://codereview.chromium.org/7363013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/md5.h')
-rw-r--r--base/md5.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/base/md5.h b/base/md5.h
index 10e2a35..d652ded6 100644
--- a/base/md5.h
+++ b/base/md5.h
@@ -33,10 +33,10 @@
//
// You can call MD5DigestToBase16() to generate a string of the digest.
-// The output of an MD5 operation
-typedef struct MD5Digest_struct {
+// The output of an MD5 operation.
+struct MD5Digest {
unsigned char a[16];
-} MD5Digest;
+};
// Used for storing intermediate data during an MD5 computation. Callers
// should not access the data.
@@ -53,10 +53,10 @@ BASE_API void MD5Init(MD5Context* context);
// For the given buffer of data, updates the given MD5 context with the sum of
// the data. You can call this any number of times during the computation,
// except that MD5Init() must have been called first.
-BASE_API void MD5Update(MD5Context* context, const void* buf, size_t len);
+BASE_API void MD5Update(MD5Context* context, const void* data, size_t length);
// Finalizes the MD5 operation and fills the buffer with the digest.
-BASE_API void MD5Final(MD5Digest* digest, MD5Context* pCtx);
+BASE_API void MD5Final(MD5Digest* digest, MD5Context* context);
// Converts a digest into human-readable hexadecimal.
BASE_API std::string MD5DigestToBase16(const MD5Digest& digest);
@@ -65,4 +65,3 @@ BASE_API std::string MD5DigestToBase16(const MD5Digest& digest);
BASE_API std::string MD5String(const std::string& str);
#endif // BASE_MD5_H_
-