C# 클래스 RSA_PM_Client.DB

파일 보기 프로젝트 열기: RSA-PM/RSA-PM 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
db DB
filename string
outbox List
pubkeys List

공개 메소드들

메소드 설명
DB ( ) : Mono.Data.Sqlite
GetInbox ( ) : RSA_PM_Client.Client.Message[]
GetName ( byte pubkey ) : string
GetOutbox ( ) : RSA_PM_Client.OutboxMsg[]
GetPrivateKeys ( ) : RSA_PM_Client.Private_Keys[]
GetPubKeys ( ) : RSA_PM_Client.Public_Keys[]
GetSettings ( ) : string>.Dictionary
GetStore ( Private_Keys prvkey ) : Action
Load ( RSAParameters rsap, byte pemdata ) : bool
Load ( string pw ) : bool
LoadInfo ( ) : byte[]>.Dictionary
SentMessage ( string their_name, byte their_pubkey, string txt, byte myprv, byte msgid, byte replyTo ) : long
Setup ( string pw, string pemfn, int pemopt, string sockproxy, int proxyport, string server_url, int server_port, byte server_pub, RSAParameters rsa_prv, bool useRsa ) : void
getMsgs ( long id ) : void
newprv ( byte prv, string name, Client client ) : bool
newpub ( byte pubkey, string name ) : long
renamePrv ( long id, string name ) : void

비공개 메소드들

메소드 설명
ArrayrXor ( byte arr_orig, long v ) : byte[]
LoadAESKey ( string pw, byte pwaes ) : void
MakeConn ( ) : SqliteConnection
Store ( Client msg ) : void
dec ( byte buf_in, byte iv ) : byte[]
dec ( long v, byte iv ) : long
dec ( Info v ) : string
dec ( byte buf_in, string ivsz ) : string
dec_sz ( byte txt, byte iv ) : string
enc ( string>.KeyValuePair v ) : byte[]
enc ( byte data, byte iv ) : byte[]
enc ( string txt, byte iv ) : byte[]
enc ( string txt, string ivsz ) : byte[]
enc ( long v, byte iv ) : long

메소드 상세

DB() 공개 메소드

public DB ( ) : Mono.Data.Sqlite
리턴 Mono.Data.Sqlite

GetInbox() 공개 메소드

public GetInbox ( ) : RSA_PM_Client.Client.Message[]
리턴 RSA_PM_Client.Client.Message[]

GetName() 공개 메소드

public GetName ( byte pubkey ) : string
pubkey byte
리턴 string

GetOutbox() 공개 메소드

public GetOutbox ( ) : RSA_PM_Client.OutboxMsg[]
리턴 RSA_PM_Client.OutboxMsg[]

GetPrivateKeys() 공개 메소드

public GetPrivateKeys ( ) : RSA_PM_Client.Private_Keys[]
리턴 RSA_PM_Client.Private_Keys[]

GetPubKeys() 공개 메소드

public GetPubKeys ( ) : RSA_PM_Client.Public_Keys[]
리턴 RSA_PM_Client.Public_Keys[]

GetSettings() 공개 메소드

public GetSettings ( ) : string>.Dictionary
리턴 string>.Dictionary

GetStore() 공개 메소드

public GetStore ( Private_Keys prvkey ) : Action
prvkey Private_Keys
리턴 Action

Load() 공개 메소드

public Load ( RSAParameters rsap, byte pemdata ) : bool
rsap System.Security.Cryptography.RSAParameters
pemdata byte
리턴 bool

Load() 공개 메소드

public Load ( string pw ) : bool
pw string
리턴 bool

LoadInfo() 공개 메소드

public LoadInfo ( ) : byte[]>.Dictionary
리턴 byte[]>.Dictionary

SentMessage() 공개 메소드

public SentMessage ( string their_name, byte their_pubkey, string txt, byte myprv, byte msgid, byte replyTo ) : long
their_name string
their_pubkey byte
txt string
myprv byte
msgid byte
replyTo byte
리턴 long

Setup() 공개 메소드

public Setup ( string pw, string pemfn, int pemopt, string sockproxy, int proxyport, string server_url, int server_port, byte server_pub, RSAParameters rsa_prv, bool useRsa ) : void
pw string
pemfn string
pemopt int
sockproxy string
proxyport int
server_url string
server_port int
server_pub byte
rsa_prv System.Security.Cryptography.RSAParameters
useRsa bool
리턴 void

getMsgs() 공개 메소드

public getMsgs ( long id ) : void
id long
리턴 void

newprv() 공개 메소드

public newprv ( byte prv, string name, Client client ) : bool
prv byte
name string
client Client
리턴 bool

newpub() 공개 메소드

public newpub ( byte pubkey, string name ) : long
pubkey byte
name string
리턴 long

renamePrv() 공개 메소드

public renamePrv ( long id, string name ) : void
id long
name string
리턴 void

프로퍼티 상세

db 공개적으로 정적으로 프로퍼티

public static DB,RSA_PM_Client db
리턴 DB

filename 공개적으로 정적으로 프로퍼티

public static string filename
리턴 string

outbox 공개적으로 프로퍼티

public List outbox
리턴 List

pubkeys 공개적으로 프로퍼티

public List pubkeys
리턴 List