aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-24 16:58:51 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-24 16:58:51 +0200
commit5a0aef55a094da6ef3b2e8b0409830db60d58c5f (patch)
treeb62ce06477bb1d71d02e4fa2b78bd1100514c1c8 /libqpdf/QPDF_encryption.cc
parent53930d96d0fc6e762225d38241d93fcf7b4affd9 (diff)
downloadqpdf-5a0aef55a094da6ef3b2e8b0409830db60d58c5f.tar.zst
Split long line
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index b15cb29d..3b1bb619 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -440,9 +440,11 @@ QPDF::compute_encryption_key_from_password(
md5.encodeDataIncrementally(bytes, 4);
}
MD5::Digest digest;
- int key_len = std::min(QIntC::to_int(sizeof(digest)), data.getLengthBytes());
+ int key_len =
+ std::min(QIntC::to_int(sizeof(digest)), data.getLengthBytes());
iterate_md5_digest(md5, digest, ((data.getR() >= 3) ? 50 : 0), key_len);
- return std::string(reinterpret_cast<char*>(digest), QIntC::to_size(key_len));
+ return std::string(reinterpret_cast<char*>(digest),
+ QIntC::to_size(key_len));
}
static void