parseOpenSSHPublicKeyLine

fnSshParsedPublicKey parseOpenSSHPublicKeyLine(string line, size_t maxLine = 16384) @safe

Parses an OpenSSH public-key line: algorithm, base64 blob, optional comment.

Parameters

lineOne line from a .pub file or an authorized keys file.
maxLineMaximum accepted line length.

Returns

The parsed key with comment filled when present.

Throws

SshKeyException on malformed lines, bad base64, blob

errors, or a type field disagreeing with the blob content.