Index: testing/utils/md5.h |
diff --git a/testing/utils/md5.h b/testing/utils/md5.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5c69ae0d2bfe2fc03f870f0476e72abc6e2f237b |
--- /dev/null |
+++ b/testing/utils/md5.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 PDFium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef TESTING_UTILS_MD5_H_ |
+#define TESTING_UTILS_MD5_H_ |
+ |
+#include <stddef.h> |
+ |
+#include <string> |
+ |
+namespace pdfium { |
+ |
+// MD5 stands for Message Digest algorithm 5. |
+// 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
|
+// for file checksums. The code is complex and slow, but has few |
+// collisions. |
+// See Also: |
+// http://en.wikipedia.org/wiki/MD5 |
+ |
+// Returns the MD5 (in hexadecimal) of a string. |
+std::string MD5String(const void* data, size_t size); |
+ |
+} // namespace pdfium |
+ |
+#endif // TESTING_UTILS_MD5_H_ |