Table of Contents

Class SshKeyData

Namespace
Renci.SshNet.Security
Assembly
Renci.SshNet.dll

Facilitates (de)serializing encoded public key data in the format specified by RFC 4253 section 6.6.

public sealed class SshKeyData : SshData

Inheritance

Inherited Members

Remarks

See https://datatracker.ietf.org/doc/html/rfc4253#section-6.6.

Constructors

SshKeyData(byte[])

Initializes a new instance of the Renci.SshNet.Security.SshKeyData class.

public SshKeyData(byte[] data)

Parameters

data byte[]

The encoded public key data.

SshKeyData(string, BigInteger[])

Initializes a new instance of the Renci.SshNet.Security.SshKeyData class.

public SshKeyData(string name, BigInteger[] keys)

Parameters

name string

The public key format identifer.

keys BigInteger[]

The public key constituents.

Properties

BufferCapacity

Gets the size of the message in bytes.

protected override int BufferCapacity { get; }

Property Value

int

Keys

Gets the public key constituents.

public BigInteger[] Keys { get; }

Property Value

BigInteger[]

Name

Gets the public key format identifier.

public string Name { get; }

Property Value

string

Methods

LoadData()

Called when type specific data need to be loaded.

protected override void LoadData()

SaveData()

Called when type specific data need to be saved.

protected override void SaveData()