decryptOpenSshPrivateSection

private fnSshSigner 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

privateBlobEncrypted private section.
saltbcrypt kdf salt.
roundsbcrypt kdf round count.
parsedPublicAdvertised (unencrypted) public key.
publicBlobRaw advertised public key blob.
passphraseThis attempt's passphrase.

Returns

The adopted signer.

Throws

SshKeyPassphraseException when the checkint pair

disagrees (the wrong-passphrase oracle); SshKeyException for structural failures.