Remove the unused PDF20.hash method

This method was added in PR 4938, almost nine years ago, however it doesn't appear to ever have been used.
Given the similarities between the `PDF17` and `PDF20` classes, and how they're used, if the `PDF20.hash` method was actually necessary you'd also expect a similiar method in the `PDF17` class.
This commit is contained in:
Jonas Jenwald 2023-04-23 10:13:46 +02:00
parent 5e0722e4c2
commit 74585c7c59

View File

@ -1321,10 +1321,6 @@ class PDF20 {
return k.subarray(0, 32);
}
hash(password, concatBytes, userBytes) {
return this._hash(password, concatBytes, userBytes);
}
checkOwnerPassword(password, ownerValidationSalt, userBytes, ownerPassword) {
const hashData = new Uint8Array(password.length + 56);
hashData.set(password, 0);