aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/AES_PDF_native.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/AES_PDF_native.hh')
-rw-r--r--libqpdf/qpdf/AES_PDF_native.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/qpdf/AES_PDF_native.hh b/libqpdf/qpdf/AES_PDF_native.hh
index f663533b..d1f08631 100644
--- a/libqpdf/qpdf/AES_PDF_native.hh
+++ b/libqpdf/qpdf/AES_PDF_native.hh
@@ -10,13 +10,15 @@ class AES_PDF_native
public:
// key should be a pointer to key_bytes bytes of data
AES_PDF_native(bool encrypt, unsigned char const* key,
- size_t key_bytes);
+ size_t key_bytes, bool cbc_mode, unsigned char* cbc_block);
~AES_PDF_native();
void update(unsigned char* in_data, unsigned char* out_data);
private:
bool encrypt;
+ bool cbc_mode;
+ unsigned char* cbc_block;
std::unique_ptr<unsigned char[]> key;
std::unique_ptr<uint32_t[]> rk;
unsigned int nrounds;