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

Key

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

Specifies array of big integers that represent private key

protected abstract DigitalSignature DigitalSignature { get; }

Gets the key specific digital signature.

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.