Class EcdsaDigitalSignature
- Namespace
- Renci.SshNet.Security.Cryptography
- Assembly
- Renci.SshNet.dll
Implements ECDSA digital signature algorithm.
public class EcdsaDigitalSignature : DigitalSignature, IDisposable
- Inheritance
-
EcdsaDigitalSignature
- Implements
- Inherited Members
Constructors
EcdsaDigitalSignature(EcdsaKey)
Initializes a new instance of the EcdsaDigitalSignature class.
public EcdsaDigitalSignature(EcdsaKey key)
Parameters
key
EcdsaKeyThe ECDSA key.
Exceptions
- ArgumentNullException
key
is null.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~EcdsaDigitalSignature()
Finalizes an instance of the EcdsaDigitalSignature class.
protected ~EcdsaDigitalSignature()
Sign(byte[])
Creates the signature.
public override byte[] Sign(byte[] input)
Parameters
input
byte[]The input.
Returns
- byte[]
Signed input data.
Verify(byte[], byte[])
Verifies the signature.
public override bool Verify(byte[] input, byte[] signature)