Class Key
- Namespace
- Renci.SshNet.Security
- Assembly
- Renci.SshNet.dll
Base class for asymmetric cipher algorithms.
public abstract class Key
Inheritance
Derived
Inherited Members
Properties
Comment
Gets or sets the key comment.
public string Comment { get; set; }
Property Value
DigitalSignature
Gets the default digital signature implementation for this key.
protected abstract DigitalSignature DigitalSignature { get; }
Property Value
KeyLength
Gets the length of the key in bits.
public abstract int KeyLength { get; }
Property Value
Public
Gets the public key.
public abstract BigInteger[] Public { get; }
Property Value
Methods
Sign(byte[])
Signs the specified data with the key.
public byte[] Sign(byte[] data)
Parameters
data
byte[]-
The data to sign.
Returns
- byte[]
-
Signed data.
VerifySignature(byte[], byte[])
Verifies the signature.
public bool VerifySignature(byte[] data, byte[] signature)