(algo?: KeyAlgorithm)
| 387 | }; |
| 388 | |
| 389 | isPrivKeyEncrypted(algo?: KeyAlgorithm) { |
| 390 | switch (String(algo).toUpperCase()) { |
| 391 | case (Constants.ALGOS.EDDSA): |
| 392 | return !!this.#xPrivKeyEDDSAEncrypted && !this.#xPrivKeyEDDSA; |
| 393 | default: |
| 394 | return !!this.#xPrivKeyEncrypted && !this.#xPrivKey; |
| 395 | } |
| 396 | }; |
| 397 | |
| 398 | checkPassword(password: string, algo?: KeyAlgorithm) { |
| 399 | if (this.isPrivKeyEncrypted(algo)) { |
no outgoing calls
no test coverage detected