aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-04 20:41:10 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 14:18:02 +0100
commitd1ffe46c04e87a297fed50ba0ff79213cdee7a5e (patch)
treef17faec6741f1ff02ebc5b59fc6071550ca2c099 /include
parentc8cda4f965064a9c4621d8d9f889eb7037fe72bb (diff)
downloadqpdf-d1ffe46c04e87a297fed50ba0ff79213cdee7a5e.tar.zst
AES_PDF: move CBC logic from pipeline to AES_PDF implementation
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFCryptoImpl.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/qpdf/QPDFCryptoImpl.hh b/include/qpdf/QPDFCryptoImpl.hh
index edeea0d3..22e452dd 100644
--- a/include/qpdf/QPDFCryptoImpl.hh
+++ b/include/qpdf/QPDFCryptoImpl.hh
@@ -74,9 +74,11 @@ class QPDF_DLL_CLASS QPDFCryptoImpl
QPDF_DLL
virtual void RC4_finalize() = 0;
+ static size_t constexpr rijndael_buf_size = 16;
QPDF_DLL
virtual void rijndael_init(
- bool encrypt, unsigned char const* key_data, size_t key_len) = 0;
+ bool encrypt, unsigned char const* key_data, size_t key_len,
+ bool cbc_mode, unsigned char* cbc_block) = 0;
QPDF_DLL
virtual void rijndael_process(
unsigned char* in_data, unsigned char* out_data) = 0;