2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Split long line

This commit is contained in:
Jay Berkenbilt 2019-08-24 10:58:51 -04:00
parent 53930d96d0
commit 5a0aef55a0

View File

@ -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