| Index: base/md5.h
|
| ===================================================================
|
| --- base/md5.h (revision 95578)
|
| +++ base/md5.h (working copy)
|
| @@ -6,7 +6,7 @@
|
| #define BASE_MD5_H_
|
| #pragma once
|
|
|
| -#include "base/base_api.h"
|
| +#include "base/base_export.h"
|
| #include "base/string_piece.h"
|
|
|
| namespace base {
|
| @@ -45,25 +45,25 @@
|
|
|
| // 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_API void MD5Sum(const void* data, size_t length, MD5Digest* digest);
|
| +BASE_EXPORT void MD5Sum(const void* data, size_t length, MD5Digest* digest);
|
|
|
| // Initializes the given MD5 context structure for subsequent calls to
|
| // MD5Update().
|
| -BASE_API void MD5Init(MD5Context* context);
|
| +BASE_EXPORT void MD5Init(MD5Context* context);
|
|
|
| // For the given buffer of |data| as a StringPiece, 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 StringPiece& data);
|
| +BASE_EXPORT void MD5Update(MD5Context* context, const StringPiece& data);
|
|
|
| // Finalizes the MD5 operation and fills the buffer with the digest.
|
| -BASE_API void MD5Final(MD5Digest* digest, MD5Context* context);
|
| +BASE_EXPORT void MD5Final(MD5Digest* digest, MD5Context* context);
|
|
|
| // Converts a digest into human-readable hexadecimal.
|
| -BASE_API std::string MD5DigestToBase16(const MD5Digest& digest);
|
| +BASE_EXPORT std::string MD5DigestToBase16(const MD5Digest& digest);
|
|
|
| // Returns the MD5 (in hexadecimal) of a string.
|
| -BASE_API std::string MD5String(const StringPiece& str);
|
| +BASE_EXPORT std::string MD5String(const StringPiece& str);
|
|
|
| } // namespace base
|
|
|
|
|