메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 ( |
Point multiplication
|
|
Test ( ) : void |
public IsValidKeyPair ( byte privateKey, byte publicKey ) : bool | ||
privateKey | byte | private key |
publicKey | byte | public key |
리턴 | bool |
public Sign ( byte privateKey, byte data, byte &signature ) : bool | ||
privateKey | byte | private key |
data | byte | data to be signed |
signature | byte | signature returned |
리턴 | bool |
public Verify ( byte publicKey, byte signature, byte data ) : bool | ||
publicKey | byte | public key |
signature | byte | signature to verify |
data | byte | data |
리턴 | bool |