aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-04 19:59:19 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 14:18:02 +0100
commitc8cda4f965064a9c4621d8d9f889eb7037fe72bb (patch)
tree333110d755d88709c4b196f834c6f0fa1e7b68ba /include
parentbb427bd11774f47f553257cdc0693f77b559654d (diff)
downloadqpdf-c8cda4f965064a9c4621d8d9f889eb7037fe72bb.tar.zst
AES_PDF: switch to pluggable crypto
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFCryptoImpl.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFCryptoImpl.hh b/include/qpdf/QPDFCryptoImpl.hh
index 09803a79..edeea0d3 100644
--- a/include/qpdf/QPDFCryptoImpl.hh
+++ b/include/qpdf/QPDFCryptoImpl.hh
@@ -73,6 +73,15 @@ class QPDF_DLL_CLASS QPDFCryptoImpl
unsigned char* out_data = 0) = 0;
QPDF_DLL
virtual void RC4_finalize() = 0;
+
+ QPDF_DLL
+ virtual void rijndael_init(
+ bool encrypt, unsigned char const* key_data, size_t key_len) = 0;
+ QPDF_DLL
+ virtual void rijndael_process(
+ unsigned char* in_data, unsigned char* out_data) = 0;
+ QPDF_DLL
+ virtual void rijndael_finalize() = 0;
};
#endif // QPDFCRYPTOIMPL_HH