Commit 5a0aef55a094da6ef3b2e8b0409830db60d58c5f

Authored by Jay Berkenbilt
1 parent 53930d96

Split long line

Showing 1 changed file with 4 additions and 2 deletions
libqpdf/QPDF_encryption.cc
@@ -440,9 +440,11 @@ QPDF::compute_encryption_key_from_password( @@ -440,9 +440,11 @@ QPDF::compute_encryption_key_from_password(
440 md5.encodeDataIncrementally(bytes, 4); 440 md5.encodeDataIncrementally(bytes, 4);
441 } 441 }
442 MD5::Digest digest; 442 MD5::Digest digest;
443 - int key_len = std::min(QIntC::to_int(sizeof(digest)), data.getLengthBytes()); 443 + int key_len =
  444 + std::min(QIntC::to_int(sizeof(digest)), data.getLengthBytes());
444 iterate_md5_digest(md5, digest, ((data.getR() >= 3) ? 50 : 0), key_len); 445 iterate_md5_digest(md5, digest, ((data.getR() >= 3) ? 50 : 0), key_len);
445 - return std::string(reinterpret_cast<char*>(digest), QIntC::to_size(key_len)); 446 + return std::string(reinterpret_cast<char*>(digest),
  447 + QIntC::to_size(key_len));
446 } 448 }
447 449
448 static void 450 static void