diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-24 16:58:51 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-24 16:58:51 +0200 |
commit | 5a0aef55a094da6ef3b2e8b0409830db60d58c5f (patch) | |
tree | b62ce06477bb1d71d02e4fa2b78bd1100514c1c8 /libqpdf/QPDF_encryption.cc | |
parent | 53930d96d0fc6e762225d38241d93fcf7b4affd9 (diff) | |
download | qpdf-5a0aef55a094da6ef3b2e8b0409830db60d58c5f.tar.zst |
Split long line
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r-- | libqpdf/QPDF_encryption.cc | 6 |
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 |