<PackageReference Include="SSH.NET" Version="2023.0.0" />

KeyHostAlgorithm

Implements key support for host algorithm.

The signature implementation used in this host key algorithm.

public Key Key { get; }

The key used in this host key algorithm.

public KeyHostAlgorithm(string name, Key key)

Initializes a new instance of the KeyHostAlgorithm class.

public KeyHostAlgorithm(string name, Key key, DigitalSignature digitalSignature)

Initializes a new instance of the KeyHostAlgorithm class.

public KeyHostAlgorithm(string name, Key key, byte[] data)

Initializes a new instance of the KeyHostAlgorithm class with the given encoded public key data. The data will be decoded into key.

public KeyHostAlgorithm(string name, Key key, byte[] data, DigitalSignature digitalSignature)

Initializes a new instance of the KeyHostAlgorithm class with the given encoded public key data. The data will be decoded into key.