decryptOpenSshPrivateSection
private fn
SshSigner decryptOpenSshPrivateSection(const(ubyte)[] privateBlob,
const(ubyte)[] salt, uint rounds,
const SshParsedPublicKey parsedPublic, const(ubyte)[] publicBlob,
const(ubyte)[] passphrase)Decrypts one encrypted openssh-key-v1 private section attempt.
Parameters
privateBlob | Encrypted private section. |
salt | bcrypt kdf salt. |
rounds | bcrypt kdf round count. |
parsedPublic | Advertised (unencrypted) public key. |
publicBlob | Raw advertised public key blob. |
passphrase | This attempt's passphrase. |
Returns
The adopted signer.
Throws
SshKeyPassphraseException when the checkint pair
disagrees (the wrong-passphrase oracle); SshKeyException for structural failures.