C# Class Granados.PKI.EDDSAKeyPair

EDDSA key pair
Inheritance: KeyPair, ISigner, IVerifier
Mostra file Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
CheckKeyConsistency ( ) : bool

Check consistency of public key and private key.

EDDSAKeyPair ( EdwardsCurve curve, EDDSAPublicKey publicKey, byte privateKey ) : System

Constructor

Sign ( byte data ) : byte[]

Implements ISigner.

Verify ( byte signature, byte data ) : void

Implements IVerifier.

Method Details

CheckKeyConsistency() public method

Check consistency of public key and private key.
public CheckKeyConsistency ( ) : bool
return bool

EDDSAKeyPair() public method

Constructor
public EDDSAKeyPair ( EdwardsCurve curve, EDDSAPublicKey publicKey, byte privateKey ) : System
curve EdwardsCurve curve
publicKey EDDSAPublicKey public key
privateKey byte private key
return System

Sign() public method

Implements ISigner.
public Sign ( byte data ) : byte[]
data byte
return byte[]

Verify() public method

Implements IVerifier.
public Verify ( byte signature, byte data ) : void
signature byte
data byte
return void