Table of Contents

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

blob ReadOnlyMemory<byte>

The key blob. It is copied.

comment string

A comment to carry with the key, or null.

Returns

SshPublicKey

Exceptions

FormatException

The blob is malformed or not a supported key type.

ArgumentException

comment contains a line break.