parseOpenSshPrivateSection

private fnSshSigner parseOpenSshPrivateSection(const(ubyte)[] section, const SshParsedPublicKey parsedPublic, const(ubyte)[] publicBlob, bool encrypted)

Parses a (decrypted or plaintext) openssh-key-v1 private section.

Parameters

sectionPrivate section bytes (checkints, key, padding).
parsedPublicAdvertised public key.
publicBlobRaw advertised public key blob.
encryptedWhether section came from decryption; a checkint mismatch then means the passphrase was wrong rather than the file being malformed.

Returns

The adopted signer.

Throws

SshKeyPassphraseException on a checkint mismatch in an

encrypted section; SshKeyException otherwise.