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

Key

public abstract class Key
Base class for asymmetric cipher algorithms.
public string Comment { get; set; }

Gets or sets the key comment.

public abstract int KeyLength { get; }

Gets the length of the key.

public abstract BigInteger[] Public { get; }

Gets the public key.

protected Key()

public byte[] Sign(byte[] data)

Signs the specified data with the key.

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

Verifies the signature.