OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_MD5_H__ | 5 #ifndef BASE_MD5_H__ |
6 #define BASE_MD5_H__ | 6 #define BASE_MD5_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 // These functions perform MD5 operations. The simplest call is MD5Sum to | 10 // These functions perform MD5 operations. The simplest call is MD5Sum to |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Finalizes the MD5 operation and fills the buffer with the digest. | 48 // Finalizes the MD5 operation and fills the buffer with the digest. |
49 void MD5Final(MD5Digest* digest, MD5Context* pCtx); | 49 void MD5Final(MD5Digest* digest, MD5Context* pCtx); |
50 | 50 |
51 // Converts a digest into human-readable hexadecimal. | 51 // Converts a digest into human-readable hexadecimal. |
52 std::string MD5DigestToBase16(const MD5Digest& digest); | 52 std::string MD5DigestToBase16(const MD5Digest& digest); |
53 | 53 |
54 // Returns the MD5 (in hexadecimal) of a string. | 54 // Returns the MD5 (in hexadecimal) of a string. |
55 std::string MD5String(const std::string& str); | 55 std::string MD5String(const std::string& str); |
56 | 56 |
57 #endif // BASE_MD5_H__ | 57 #endif // BASE_MD5_H__ |
58 | |
OLD | NEW |