* Try to authenticate with the owner password.
(password: Uint8Array)
| 195 | * Try to authenticate with the owner password. |
| 196 | */ |
| 197 | private tryOwnerPassword(password: Uint8Array): AuthResult { |
| 198 | const { revision } = this.encryptDict; |
| 199 | |
| 200 | if (revision >= 5) { |
| 201 | return this.tryOwnerPasswordR56(password); |
| 202 | } |
| 203 | return this.tryOwnerPasswordR2R4(password); |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Try user password for R2-R4 encryption. |
no test coverage detected