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

Key

public abstract class Key
Base class for asymmetric cipher algorithms.
protected BigInteger[] _privateKey

Specifies array of big integers that represent private key.

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; set; }

Gets or sets the public key.

protected Key(byte[] data)

Initializes a new instance of the Key class.

protected Key()

Initializes a new instance of the Key class.

public byte[] Sign(byte[] data)

Signs the specified data with the key.

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

Verifies the signature.