C# Class Granados.PKI.EdwardsCurve

Edwards Curve parameters
Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

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

public static FindByAlgorithm ( PublicKeyAlgorithm algorithm ) : EdwardsCurve
algorithm PublicKeyAlgorithm
Résultat EdwardsCurve

FindByName() public static méthode

public static FindByName ( string name ) : EdwardsCurve
name string
Résultat EdwardsCurve

IsValidKeyPair() public abstract méthode

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

Sign() public abstract méthode

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
Résultat bool

Verify() public abstract méthode

Verify
public abstract Verify ( byte publicKey, byte signature, byte data ) : bool
publicKey byte public key
signature byte signature to verify
data byte data
Résultat bool