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

EcdsaKey

public class EcdsaKey : Key, IDisposable
Contains ECDSA (ecdsa-sha2-nistp{256,384,521}) private and public key.
public ECDsa Ecdsa { get; }

Gets the ECDsa object.

Gets the HashAlgorithm to use.

public byte[] PrivateKey { get; }

Gets the PrivateKey Bytes.

public EcdsaKey(SshKeyData publicKeyData)

Initializes a new instance of the EcdsaKey class.

public EcdsaKey(string curve, byte[] publickey, byte[] privatekey)

Initializes a new instance of the EcdsaKey class.

public EcdsaKey(byte[] data)

Initializes a new instance of the EcdsaKey class.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.