Class Key
Base class for asymmetric cipher algorithms.
public abstract class Key
- Inheritance
-
Key
- Derived
- Inherited Members
Constructors
Key()
protected Key()
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.
public abstract int KeyLength { get; }
Property Value
- int
The length of the key.
Public
Gets the public key.
public abstract BigInteger[] Public { get; }
Property Value
- BigInteger[]
The public.
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)