C# Class Granados.PKI.ECDSAKeyPair

Elliptic curve 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.

ECDSAKeyPair ( EllipticCurve curve, ECDSAPublicKey publicKey, BigInteger privateKey ) : Granados.Crypto

Constructor

Sign ( byte data ) : byte[]

Signing

Verify ( byte data, byte expected ) : void

Verification

Method Details

CheckKeyConsistency() public méthode

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

ECDSAKeyPair() public méthode

Constructor
public ECDSAKeyPair ( EllipticCurve curve, ECDSAPublicKey publicKey, BigInteger privateKey ) : Granados.Crypto
curve EllipticCurve elliptic curve
publicKey ECDSAPublicKey public key
privateKey Granados.Mono.Math.BigInteger private key
Résultat Granados.Crypto

Sign() public méthode

Signing
public Sign ( byte data ) : byte[]
data byte data to sign
Résultat byte[]

Verify() public méthode

Verification
public Verify ( byte data, byte expected ) : void
data byte
expected byte
Résultat void