diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-17 05:14:47 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-17 05:14:47 +0200 |
commit | 846c9f6bcc9aa86067850088808ff8d724a0d18f (patch) | |
tree | 587f6ff5589ebaefad50ca9f1b1b7fa81736a119 /libqpdf/QPDFWriter.cc | |
parent | ad19b03fd346e6779a029c43b6228e377919852f (diff) | |
download | qpdf-846c9f6bcc9aa86067850088808ff8d724a0d18f.tar.zst |
checkpoint -- started doing some R4 encryption support
git-svn-id: svn+q:///qpdf/trunk@807 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 0ede7889..2a990fa3 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -326,7 +326,8 @@ QPDFWriter::setEncryptionParametersInternal( encryption_dictionary["/O"] = QPDF_String(O).unparse(true); encryption_dictionary["/U"] = QPDF_String(U).unparse(true); this->encrypted = true; - QPDF::EncryptionData encryption_data(V, R, key_len, P, O, U, this->id1); + QPDF::EncryptionData encryption_data(V, R, key_len, P, O, U, this->id1, + /*XXX encrypt_metadata*/true); this->encryption_key = QPDF::compute_encryption_key( user_password, encryption_data); } @@ -335,7 +336,7 @@ void QPDFWriter::setDataKey(int objid) { this->cur_data_key = QPDF::compute_data_key( - this->encryption_key, objid, 0); + this->encryption_key, objid, 0, /*XXX use_aes */false); } int |