C# Class Granados.PKI.ECDSAKeyPair

Elliptic curve key pair
Inheritance: KeyPair, ISigner, IVerifier
Exibir arquivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method 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 method

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

ECDSAKeyPair() public method

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
return Granados.Crypto

Sign() public method

Signing
public Sign ( byte data ) : byte[]
data byte data to sign
return byte[]

Verify() public method

Verification
public Verify ( byte data, byte expected ) : void
data byte
expected byte
return void