| TCBWrapper (Eso *anEso, LogFile *aLogFile = NULL)
Costructor.
|
virtual | ~TCBWrapper ()
Destructor.
|
virtual Err | Rollback (const TID tid)
Ability to be rollbacked.
|
virtual Err | SaveFile ( const ACID acid, const ID fid, const MsgField *ffid, const MsgField *keywords, const MsgField *data)
Stores file kept in "data" with ID "fid"
|
virtual Err | DeleteFileByFileID (const ID fid)
Deletes a file.
|
virtual Err | ComputeMAC (const ID fid, const MsgField *oAuth, MsgField **mac)
Computes MAC by finding a file and concatenating it with OAuth.
|
virtual Queue* | GetFileHeadersByFAM ( const ACID acid, const MsgField *fam, const GMessage *clientPubKey)
Finds all files matching the File Atribute Mask, and returns
|
virtual MsgField* | GetFileByFinderFID ( const ACID acid, const MsgField *ffid, const GMessage *clientPubKey)
Finds the file with "ffid", decrypts it, reencrypts it with "clientPubKey"
|
virtual MsgField* | DecryptByACPriv (const ACID acid, const MsgField *data)
Finds aproprite private key and returns decrypted "data".
|
virtual Err | GenerateACKeys (ACID *acid, GMessage **acPubKey, GMessage **tcbPubKey)
Generates and stores AC keys (both AC and TCB).
|
virtual Err | GetACPubKeys ( const ACID, GMessage **acPubKey = NULL, GMessage **tcbPubKey = NULL)
Returns pub keys to ACID.
|
virtual Err | RemoveACKeys (const ACID acid)
Removes AC keys (both AC and TCB).
|
virtual Err | RefreshMasterKey ()
Generates new Master Key and does all reencryption needed (table of
ring keys)
|
virtual Err | RefreshRingKeys ()
Generates new Ring Keys and does all reencryption needed (table of files and
Storage keys, table of certificates, table of transport keys)
|