Class ED25519Key
Contains ED25519 private and public key.
public class ED25519Key : Key, IDisposable
- Inheritance
-
ED25519Key
- Implements
- Inherited Members
Constructors
ED25519Key(SshKeyData)
Initializes a new instance of the ED25519Key class.
public ED25519Key(SshKeyData publicKeyData)
Parameters
publicKeyData
SshKeyDataThe encoded public key data.
ED25519Key(byte[])
Initializes a new instance of the ED25519Key class.
public ED25519Key(byte[] privateKeyData)
Parameters
privateKeyData
byte[]The private key data
k || ENC(A)
as described in RFC 8032.
Properties
DigitalSignature
Gets the digital signature.
protected override DigitalSignature DigitalSignature { get; }
Property Value
KeyLength
Gets the length of the key.
public override int KeyLength { get; }
Property Value
- int
The length of the key.
PrivateKey
Gets the PrivateKey Bytes.
public byte[] PrivateKey { get; }
Property Value
- byte[]
Public
Gets the Ed25519 public key.
public override BigInteger[] Public { get; }
Property Value
- BigInteger[]
An array with PublicKey encoded at index 0.
PublicKey
Gets the PublicKey Bytes.
public byte[] PublicKey { get; }
Property Value
- byte[]
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.
~ED25519Key()
Finalizes an instance of the ED25519Key class.
protected ~ED25519Key()
ToString()
Gets the name of the key.
public override string ToString()
Returns
- string
The name of the key.