C# Class Granados.PKI.EdwardsCurve

Edwards Curve parameters
Exibir arquivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
FindByAlgorithm ( PublicKeyAlgorithm algorithm ) : EdwardsCurve
FindByName ( string name ) : EdwardsCurve
IsValidKeyPair ( byte privateKey, byte publicKey ) : bool

Checks validity of the key pair.

Sign ( byte privateKey, byte data, byte &signature ) : bool

Sign

Verify ( byte publicKey, byte signature, byte data ) : bool

Verify

Method Details

FindByAlgorithm() public static method

public static FindByAlgorithm ( PublicKeyAlgorithm algorithm ) : EdwardsCurve
algorithm PublicKeyAlgorithm
return EdwardsCurve

FindByName() public static method

public static FindByName ( string name ) : EdwardsCurve
name string
return EdwardsCurve

IsValidKeyPair() public abstract method

Checks validity of the key pair.
public abstract IsValidKeyPair ( byte privateKey, byte publicKey ) : bool
privateKey byte private key
publicKey byte public key
return bool

Sign() public abstract method

Sign
public abstract Sign ( byte privateKey, byte data, byte &signature ) : bool
privateKey byte private key
data byte data to be signed
signature byte signature returned
return bool

Verify() public abstract method

Verify
public abstract Verify ( byte publicKey, byte signature, byte data ) : bool
publicKey byte public key
signature byte signature to verify
data byte data
return bool