From 846c9f6bcc9aa86067850088808ff8d724a0d18f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 17 Oct 2009 03:14:47 +0000 Subject: checkpoint -- started doing some R4 encryption support git-svn-id: svn+q:///qpdf/trunk@807 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/QPDFWriter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libqpdf/QPDFWriter.cc') 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 -- cgit v1.2.3-54-g00ecf