C# Class Granados.PKI.CurveEd25519

Ed25519 curve parameters
Inheritance: EdwardsCurve
Mostra file Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
CurveEd25519 ( ) : System

Constructor

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

Private Methods

Method Description
DecodePoint ( byte data, Ed25519Point &point ) : bool

Decode the octet string to a point.

EncodePoint ( Ed25519Point q, byte &data ) : bool

Encodes a point to the octet string.

GetBasePoint ( ) : Ed25519Point

Returns a base point.

PointAdd ( Ed25519Point p1, Ed25519Point p2 ) : Ed25519Point

Point addition

PointMul ( BigInteger k, Ed25519Point p ) : Ed25519Point

Point multiplication

Test ( ) : void

Method Details

CurveEd25519() public method

Constructor
public CurveEd25519 ( ) : System
return System

IsValidKeyPair() public method

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

Sign() public method

Sign
public 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 method

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