* Try to authenticate with the user password.
(password: Uint8Array)
| 183 | * Try to authenticate with the user password. |
| 184 | */ |
| 185 | private tryUserPassword(password: Uint8Array): AuthResult { |
| 186 | const { revision } = this.encryptDict; |
| 187 | |
| 188 | if (revision >= 5) { |
| 189 | return this.tryUserPasswordR56(password); |
| 190 | } |
| 191 | return this.tryUserPasswordR2R4(password); |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Try to authenticate with the owner password. |
no test coverage detected