C# 클래스 bitmessage.Crypto.ECC

파일 보기 프로젝트 열기: sharpbitmessage/SharpBitmessage 1 사용 예제들

공개 메소드들

메소드 설명
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[]

비공개 메소드들

메소드 설명
raw_check_key ( byte privkey, byte pubkey_x, byte pubkey_y, int curve_par ) : int

메소드 상세

ECC() 공개 메소드

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
리턴 System

_decode_privkey() 공개 정적인 메소드

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

_decode_pubkey() 공개 정적인 메소드

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
리턴 void

_set_keys() 공개 메소드

public _set_keys ( byte pubkey_x, byte pubkey_y, byte privkey ) : void
pubkey_x byte
pubkey_y byte
privkey byte
리턴 void

generate() 공개 메소드

public generate ( ) : void
리턴 void

get_privkey() 공개 메소드

public get_privkey ( ) : byte[]
리턴 byte[]

get_pubkey() 공개 메소드

public get_pubkey ( ) : byte[]
리턴 byte[]

raw_get_ecdh_key() 공개 메소드

public raw_get_ecdh_key ( byte pubkey_x, byte pubkey_y ) : byte[]
pubkey_x byte
pubkey_y byte
리턴 byte[]