C# Class Renci.SshNet.Security.Key

Base class for asymmetric cipher algorithms
Show file Open project: sshnet/SSH.NET Class Usage Examples

Protected Properties

Property Type Description
_privateKey BigInteger[]

Public Methods

Method Description
Sign ( byte data ) : byte[]

Signs the specified data with the key.

VerifySignature ( byte data, byte signature ) : bool

Verifies the signature.

Protected Methods

Method Description
Key ( ) : System

Initializes a new instance of the Key class.

Key ( byte data ) : System

Initializes a new instance of the Key class.

Method Details

Key() protected method

Initializes a new instance of the Key class.
protected Key ( ) : System
return System

Key() protected method

Initializes a new instance of the Key class.
protected Key ( byte data ) : System
data byte DER encoded private key data.
return System

Sign() public method

Signs the specified data with the key.
public Sign ( byte data ) : byte[]
data byte The data to sign.
return byte[]

VerifySignature() public method

Verifies the signature.
public VerifySignature ( byte data, byte signature ) : bool
data byte The data to verify.
signature byte The signature to verify against.
return bool

Property Details

_privateKey protected property

Specifies array of big integers that represent private key
protected BigInteger[] _privateKey
return BigInteger[]