aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/MD5.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/MD5.hh')
-rw-r--r--libqpdf/qpdf/MD5.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/libqpdf/qpdf/MD5.hh b/libqpdf/qpdf/MD5.hh
index eb0b9680..b0b93e3d 100644
--- a/libqpdf/qpdf/MD5.hh
+++ b/libqpdf/qpdf/MD5.hh
@@ -14,37 +14,50 @@ 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)
throw(QEXC::System);
// 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);