From ce8f9b6608ebcc3e88fbb1655be3e9363fa671b6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 3 Nov 2019 21:22:03 -0500 Subject: MD5: switch to pluggable crypto --- include/qpdf/QPDFCryptoImpl.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFCryptoImpl.hh b/include/qpdf/QPDFCryptoImpl.hh index 4da299aa..8fa8b21e 100644 --- a/include/qpdf/QPDFCryptoImpl.hh +++ b/include/qpdf/QPDFCryptoImpl.hh @@ -23,6 +23,7 @@ #define QPDFCRYPTOIMPL_HH #include +#include // This class is part of qpdf's pluggable crypto provider support. // Most users won't need to know or care about this class, but you can @@ -39,6 +40,16 @@ class QPDF_DLL_CLASS QPDFCryptoImpl QPDF_DLL virtual ~QPDFCryptoImpl() = default; + + typedef unsigned char MD5_Digest[16]; + QPDF_DLL + virtual void MD5_init() = 0; + QPDF_DLL + virtual void MD5_update(unsigned char const* data, size_t len) = 0; + QPDF_DLL + virtual void MD5_finalize() = 0; + QPDF_DLL + virtual void MD5_digest(MD5_Digest) = 0; }; #endif // QPDFCRYPTOIMPL_HH -- cgit v1.2.3-54-g00ecf