C# Class RSA_PM_Client.DB

Afficher le fichier Open project: RSA-PM/RSA-PM Class Usage Examples

Méthodes publiques

Свойство Type Description
db DB
filename string
outbox List
pubkeys List

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

DB() public méthode

public DB ( ) : Mono.Data.Sqlite
Résultat Mono.Data.Sqlite

GetInbox() public méthode

public GetInbox ( ) : RSA_PM_Client.Client.Message[]
Résultat RSA_PM_Client.Client.Message[]

GetName() public méthode

public GetName ( byte pubkey ) : string
pubkey byte
Résultat string

GetOutbox() public méthode

public GetOutbox ( ) : RSA_PM_Client.OutboxMsg[]
Résultat RSA_PM_Client.OutboxMsg[]

GetPrivateKeys() public méthode

public GetPrivateKeys ( ) : RSA_PM_Client.Private_Keys[]
Résultat RSA_PM_Client.Private_Keys[]

GetPubKeys() public méthode

public GetPubKeys ( ) : RSA_PM_Client.Public_Keys[]
Résultat RSA_PM_Client.Public_Keys[]

GetSettings() public méthode

public GetSettings ( ) : string>.Dictionary
Résultat string>.Dictionary

GetStore() public méthode

public GetStore ( Private_Keys prvkey ) : Action
prvkey Private_Keys
Résultat Action

Load() public méthode

public Load ( RSAParameters rsap, byte pemdata ) : bool
rsap System.Security.Cryptography.RSAParameters
pemdata byte
Résultat bool

Load() public méthode

public Load ( string pw ) : bool
pw string
Résultat bool

LoadInfo() public méthode

public LoadInfo ( ) : byte[]>.Dictionary
Résultat byte[]>.Dictionary

SentMessage() public méthode

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
Résultat long

Setup() public méthode

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
Résultat void

getMsgs() public méthode

public getMsgs ( long id ) : void
id long
Résultat void

newprv() public méthode

public newprv ( byte prv, string name, Client client ) : bool
prv byte
name string
client Client
Résultat bool

newpub() public méthode

public newpub ( byte pubkey, string name ) : long
pubkey byte
name string
Résultat long

renamePrv() public méthode

public renamePrv ( long id, string name ) : void
id long
name string
Résultat void

Property Details

db public_oe static_oe property

public static DB,RSA_PM_Client db
Résultat DB

filename public_oe static_oe property

public static string filename
Résultat string

outbox public_oe property

public List outbox
Résultat List

pubkeys public_oe property

public List pubkeys
Résultat List