Fix bug 74615

This commit is contained in:
Svetlana Kulikova
2025-05-26 13:04:12 +03:00
parent ef3a93cb13
commit e56f807826

View File

@ -146,6 +146,11 @@ GBool Decrypt::makeFileKey(int encVersion, int encRevision, int keyLength,
return gFalse;
} else if (ownerPassword->getLength() == 0) {
// try using the supplied user password
return makeFileKey2(encVersion, encRevision, keyLength, ownerKey, userKey,
permissions, fileID, userPassword, fileKey,
encryptMetadata);
} else {
// try using the supplied owner password to generate the user password