aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFCrypto_native.cc
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 /libqpdf/QPDFCrypto_native.cc
parentc8cda4f965064a9c4621d8d9f889eb7037fe72bb (diff)
downloadqpdf-d1ffe46c04e87a297fed50ba0ff79213cdee7a5e.tar.zst
AES_PDF: move CBC logic from pipeline to AES_PDF implementation
Diffstat (limited to 'libqpdf/QPDFCrypto_native.cc')
-rw-r--r--libqpdf/QPDFCrypto_native.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libqpdf/QPDFCrypto_native.cc b/libqpdf/QPDFCrypto_native.cc
index 971897dc..d078ba77 100644
--- a/libqpdf/QPDFCrypto_native.cc
+++ b/libqpdf/QPDFCrypto_native.cc
@@ -69,10 +69,12 @@ QPDFCrypto_native::SHA2_digest()
void
QPDFCrypto_native::rijndael_init(
- bool encrypt, unsigned char const* key_data, size_t key_len)
+ bool encrypt, unsigned char const* key_data, size_t key_len,
+ bool cbc_mode, unsigned char* cbc_block)
+
{
this->aes_pdf = std::make_shared<AES_PDF_native>(
- encrypt, key_data, key_len);
+ encrypt, key_data, key_len, cbc_mode, cbc_block);
}
void