Class ED25519DigitalSignature
- Namespace
- Renci.SshNet.Security.Cryptography
- Assembly
- Renci.SshNet.dll
Implements ECDSA digital signature algorithm.
public class ED25519DigitalSignature : DigitalSignature, IDisposable
- Inheritance
-
ED25519DigitalSignature
- Implements
- Inherited Members
Constructors
ED25519DigitalSignature(ED25519Key)
Initializes a new instance of the ED25519DigitalSignature class.
public ED25519DigitalSignature(ED25519Key key)
Parameters
key
ED25519KeyThe ED25519Key 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.
~ED25519DigitalSignature()
Finalizes an instance of the ED25519DigitalSignature class.
protected ~ED25519DigitalSignature()
Sign(byte[])
Creates the signature.
public override byte[] Sign(byte[] input)
Parameters
input
byte[]The input.
Returns
- byte[]
Signed input data.
Exceptions
- SshException
Invalid ED25519Key key.
Verify(byte[], byte[])
Verifies the signature.
public override bool Verify(byte[] input, byte[] signature)
Parameters
Returns
Exceptions
- InvalidOperationException
Invalid signature.