C# Class bitmessage.Crypto.ECC

ファイルを表示 Open project: sharpbitmessage/SharpBitmessage Class Usage Examples

Public Methods

Method 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

Method Description
raw_check_key ( byte privkey, byte pubkey_x, byte pubkey_y, int curve_par ) : int

Method Details

ECC() public method

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
return System

_decode_privkey() public static method

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

_decode_pubkey() public static method

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
return void

_set_keys() public method

public _set_keys ( byte pubkey_x, byte pubkey_y, byte privkey ) : void
pubkey_x byte
pubkey_y byte
privkey byte
return void

generate() public method

public generate ( ) : void
return void

get_privkey() public method

public get_privkey ( ) : byte[]
return byte[]

get_pubkey() public method

public get_pubkey ( ) : byte[]
return byte[]

raw_get_ecdh_key() public method

public raw_get_ecdh_key ( byte pubkey_x, byte pubkey_y ) : byte[]
pubkey_x byte
pubkey_y byte
return byte[]