OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TESTING_UTILS_MD5_H_ | |
6 #define TESTING_UTILS_MD5_H_ | |
7 | |
8 #include <stddef.h> | |
9 | |
10 #include <string> | |
11 | |
12 namespace pdfium { | |
13 | |
14 // MD5 stands for Message Digest algorithm 5. | |
15 // MD5 is a robust hash function, designed for cyptography, but often used | |
Tom Sepez
2016/11/21 18:18:26
nit: s/is/was/ :). Just give the link to wikipedi
| |
16 // for file checksums. The code is complex and slow, but has few | |
17 // collisions. | |
18 // See Also: | |
19 // http://en.wikipedia.org/wiki/MD5 | |
20 | |
21 // Returns the MD5 (in hexadecimal) of a string. | |
22 std::string MD5String(const void* data, size_t size); | |
23 | |
24 } // namespace pdfium | |
25 | |
26 #endif // TESTING_UTILS_MD5_H_ | |
OLD | NEW |