Method FromBlob
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
FromBlob(ReadOnlyMemory<byte>, string?)
Reads a key in SSH wire format, as PublicKey and the other blob members hold it.
public static SshPublicKey FromBlob(ReadOnlyMemory<byte> blob, string? comment = null)
Parameters
blobReadOnlyMemory<byte>The key blob. It is copied.
commentstringA comment to carry with the key, or null.
Returns
Exceptions
- FormatException
The blob is malformed or not a supported key type.
- ArgumentException
commentcontains a line break.