C# Class Granados.PKI.EDDSAKeyPair

EDDSA key pair
Inheritance: KeyPair, ISigner, IVerifier
Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Check consistency of public key and private key.
public CheckKeyConsistency ( ) : bool
Résultat bool

EDDSAKeyPair() public méthode

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

Sign() public méthode

Implements ISigner.
public Sign ( byte data ) : byte[]
data byte
Résultat byte[]

Verify() public méthode

Implements IVerifier.
public Verify ( byte signature, byte data ) : void
signature byte
data byte
Résultat void