C# Class bitmessage.Crypto.ECC

Afficher le fichier Open project: sharpbitmessage/SharpBitmessage Class Usage Examples

Méthodes publiques

Méthode Description
ECC ( byte pubkey = null, byte privkey = null, byte pubkey_x = null, byte pubkey_y = null, byte raw_privkey = null, UInt16 curve = Sect283r1 ) : System
_decode_privkey ( byte privkey, UInt16 &curve, byte &privkeyOut, int &pos ) : void
_decode_pubkey ( byte pubkey, UInt16 &curve, byte &pubkeyX, byte &pubkeyY, int &pos ) : void
_set_keys ( byte pubkey_x, byte pubkey_y, byte privkey ) : void
generate ( ) : void
get_privkey ( ) : byte[]
get_pubkey ( ) : byte[]
raw_get_ecdh_key ( byte pubkey_x, byte pubkey_y ) : byte[]

Private Methods

Méthode Description
raw_check_key ( byte privkey, byte pubkey_x, byte pubkey_y, int curve_par ) : int

Method Details

ECC() public méthode

public ECC ( byte pubkey = null, byte privkey = null, byte pubkey_x = null, byte pubkey_y = null, byte raw_privkey = null, UInt16 curve = Sect283r1 ) : System
pubkey byte
privkey byte
pubkey_x byte
pubkey_y byte
raw_privkey byte
curve System.UInt16
Résultat System

_decode_privkey() public static méthode

public static _decode_privkey ( byte privkey, UInt16 &curve, byte &privkeyOut, int &pos ) : void
privkey byte
curve System.UInt16
privkeyOut byte
pos int
Résultat void

_decode_pubkey() public static méthode

public static _decode_pubkey ( byte pubkey, UInt16 &curve, byte &pubkeyX, byte &pubkeyY, int &pos ) : void
pubkey byte
curve System.UInt16
pubkeyX byte
pubkeyY byte
pos int
Résultat void

_set_keys() public méthode

public _set_keys ( byte pubkey_x, byte pubkey_y, byte privkey ) : void
pubkey_x byte
pubkey_y byte
privkey byte
Résultat void

generate() public méthode

public generate ( ) : void
Résultat void

get_privkey() public méthode

public get_privkey ( ) : byte[]
Résultat byte[]

get_pubkey() public méthode

public get_pubkey ( ) : byte[]
Résultat byte[]

raw_get_ecdh_key() public méthode

public raw_get_ecdh_key ( byte pubkey_x, byte pubkey_y ) : byte[]
pubkey_x byte
pubkey_y byte
Résultat byte[]