| Index: base/md5.h
|
| diff --git a/base/md5.h b/base/md5.h
|
| index 0a87fcf7c4aa56c1ed6eaece425a6e49a71735c7..0b4cbcef3a8711d9fe8ebc90903f81538aa44523 100644
|
| --- a/base/md5.h
|
| +++ b/base/md5.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef BASE_MD5_H_
|
| #define BASE_MD5_H_
|
|
|
| +#include <stdint.h>
|
| +
|
| #include "base/base_export.h"
|
| #include "base/strings/string_piece.h"
|
|
|
| @@ -35,17 +37,13 @@ namespace base {
|
|
|
| // The output of an MD5 operation.
|
| struct MD5Digest {
|
| - unsigned char a[16];
|
| + uint8_t a[16];
|
| };
|
|
|
| // Used for storing intermediate data during an MD5 computation. Callers
|
| // should not access the data.
|
| typedef char MD5Context[88];
|
|
|
| -// Computes the MD5 sum of the given data buffer with the given length.
|
| -// The given 'digest' structure will be filled with the result data.
|
| -BASE_EXPORT void MD5Sum(const void* data, size_t length, MD5Digest* digest);
|
| -
|
| // Initializes the given MD5 context structure for subsequent calls to
|
| // MD5Update().
|
| BASE_EXPORT void MD5Init(MD5Context* context);
|
| @@ -67,6 +65,10 @@ BASE_EXPORT void MD5IntermediateFinal(MD5Digest* digest,
|
| // Converts a digest into human-readable hexadecimal.
|
| BASE_EXPORT std::string MD5DigestToBase16(const MD5Digest& digest);
|
|
|
| +// Computes the MD5 sum of the given data buffer with the given length.
|
| +// The given 'digest' structure will be filled with the result data.
|
| +BASE_EXPORT void MD5Sum(const void* data, size_t length, MD5Digest* digest);
|
| +
|
| // Returns the MD5 (in hexadecimal) of a string.
|
| BASE_EXPORT std::string MD5String(const StringPiece& str);
|
|
|
|
|