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

HostAlgorithm

public abstract class HostAlgorithm
Base class for SSH host algorithms.
public abstract byte[] Data { get; }

Gets the host key data.

public string Name { get; }

Gets the host key name.

protected HostAlgorithm(string name)

Initializes a new instance of the HostAlgorithm class.

public abstract byte[] Sign(byte[] data)

Signs the specified data.

public abstract bool VerifySignature(byte[] data, byte[] signature)

Verifies the signature.