Class ED25519Key
- Namespace
- Renci.SshNet.Security
- Assembly
- Renci.SshNet.dll
Contains ED25519 private and public key.
public class ED25519Key : Key, IDisposable
Inheritance
Implements
Inherited Members
Constructors
ED25519Key(SshKeyData)
Initializes a new instance of the Renci.SshNet.Security.ED25519Key class.
public ED25519Key(SshKeyData publicKeyData)
Parameters
publicKeyData
SshKeyData-
The encoded public key data.
ED25519Key(byte[])
Initializes a new instance of the Renci.SshNet.Security.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 in bits.
public override int KeyLength { get; }
Property Value
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
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
bool-
true to release both managed and unmanaged resources; false to release only unmanaged resources.
ToString()
Gets the name of the key.
public override string ToString()
Returns
- string
-
The name of the key.