diff options
Diffstat (limited to 'libqpdf/qpdf/MD5.hh')
-rw-r--r-- | libqpdf/qpdf/MD5.hh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libqpdf/qpdf/MD5.hh b/libqpdf/qpdf/MD5.hh index c1babb29..435abbfb 100644 --- a/libqpdf/qpdf/MD5.hh +++ b/libqpdf/qpdf/MD5.hh @@ -8,54 +8,42 @@ # include <inttypes.h> #endif +DLL_EXPORT class MD5 { public: typedef unsigned char Digest[16]; - DLL_EXPORT MD5(); - DLL_EXPORT void reset(); // encodes string and finalizes - DLL_EXPORT void encodeString(char const* input_string); // encodes file and finalizes - DLL_EXPORT void encodeFile(char const* filename, int up_to_size = -1); // appends string to current md5 object - DLL_EXPORT void appendString(char const* input_string); // appends arbitrary data to current md5 object - DLL_EXPORT void encodeDataIncrementally(char const* input_data, int len); // computes a raw digest - DLL_EXPORT void digest(Digest); // prints the digest to stdout terminated with \r\n (primarily for // testing) - DLL_EXPORT void print(); // returns the digest as a hexadecimal string - DLL_EXPORT std::string unparse(); // Convenience functions - DLL_EXPORT static std::string getDataChecksum(char const* buf, int len); - DLL_EXPORT static std::string getFileChecksum(char const* filename, int up_to_size = -1); - DLL_EXPORT static bool checkDataChecksum(char const* const checksum, char const* buf, int len); - DLL_EXPORT static bool checkFileChecksum(char const* const checksum, char const* filename, int up_to_size = -1); |