diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-19 02:36:51 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-19 02:36:51 +0200 |
commit | a8715c495b218c9b9388a2e20c8202a3fa73b2c1 (patch) | |
tree | 721a4a9c39d9c9fdf3a150cf64859c331d392fc2 /libqpdf/qpdf/Pl_AES_PDF.hh | |
parent | 09175e457852c585a68a86d43280f7e0790a4a3b (diff) | |
download | qpdf-a8715c495b218c9b9388a2e20c8202a3fa73b2c1.tar.zst |
add C API for R4 encryption
git-svn-id: svn+q:///qpdf/trunk@825 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/qpdf/Pl_AES_PDF.hh')
-rw-r--r-- | libqpdf/qpdf/Pl_AES_PDF.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqpdf/qpdf/Pl_AES_PDF.hh b/libqpdf/qpdf/Pl_AES_PDF.hh index 888ea752..084fca7b 100644 --- a/libqpdf/qpdf/Pl_AES_PDF.hh +++ b/libqpdf/qpdf/Pl_AES_PDF.hh @@ -20,12 +20,15 @@ class DLL_EXPORT Pl_AES_PDF: public Pipeline // For testing only; PDF always uses CBC void disableCBC(); + // For testing only: use a fixed initialization vector for CBC + static void useStaticIV(); private: void flush(bool discard_padding); void initializeVector(); static unsigned int const buf_size = 16; + static bool use_static_iv; bool encrypt; bool cbc_mode; |