aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-04 03:22:03 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 14:18:02 +0100
commitce8f9b6608ebcc3e88fbb1655be3e9363fa671b6 (patch)
tree4585a0a41e624ba5cc2a130a82719eee449f304e /include
parent5c3e856e9f0b908494126d1ea7b99c8c32d37039 (diff)
downloadqpdf-ce8f9b6608ebcc3e88fbb1655be3e9363fa671b6.tar.zst
MD5: switch to pluggable crypto
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFCryptoImpl.hh11
1 files changed, 11 insertions, 0 deletions
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 <qpdf/DLL.h>
+#include <cstring>
// 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