Software Trusted Computing Base wrapper
![]() | SWTCBWrapper::CertTableFindByACID ( const ACID acid, const shouldClose, GMessage **acPubKey, GMessage **acPrivKey, GMessage **tcbPubKey, GMessage **tcbPrivKey) Finds record in certifTable |
![]() | SWTCBWrapper::CertTableInsert ( const ACID acid, const GMessage *acPubKey, const GMessage *acPrivKey, const GMessage *tcbPubKey, const GMessage *tcbPrivKey) Inserts record to certifTabel |
![]() | SWTCBWrapper::ComputeMAC (const ID fid, const MsgField *oAuth, MsgField **mac) Computes MAC |
![]() | SWTCBWrapper::CreateReplyFileHeader (const GMessage *clientPubKey, const MsgField *ffid, const Size size) Creates a header to reply |
![]() | SWTCBWrapper::DecryptByACPriv (const ACID acid, const MsgField *data) Decrypts by private key |
![]() | SWTCBWrapper::DecryptByTCBPriv (const ACID acid, const MsgField *data) Decrypts data with private key |
![]() | SWTCBWrapper::DeleteFileByFileID (const ID fid) Deletes file by file ID |
![]() | SWTCBWrapper::GenerateACKeys (ACID *acid, GMessage **acPubKey, GMessage **tcbPubKey) Generates keys for access certificate |
![]() | SWTCBWrapper::GetACPubKeys (const ACID acid, GMessage **acPubKey, GMessage **tcbPubKey) Returns public keys |
![]() | SWTCBWrapper::GetFileByFinderFID (const ACID acid, const MsgField *ffid, const GMessage *clientPubKey) Pops file with ffid |
![]() | SWTCBWrapper::GetFileHeadersByFAM (const ACID acid, const MsgField *fam, const GMessage *clientPubKey) Searches for file by file attribute mask |
![]() | SWTCBWrapper::GetRingKeys (GMessage ** ringKeys) Loads ring keys |
![]() | SWTCBWrapper::InstantiateTCBTables (const GMessage *ringKeys) Initializes all TCBTables |
![]() | SWTCBWrapper::LoadMasterKey () Loads master key |
![]() | SWTCBWrapper::RefreshMasterKey () Create new master key and reencrypt the file that stores ring keys |
![]() | SWTCBWrapper::RefreshRingKeys () Create new ring keys and reencrypt certifTable and certifTable |
![]() | SWTCBWrapper::RemoveACKeys (const ACID acid) Removes access certificate keys |
![]() | SWTCBWrapper::Rollback (const TID tid) Rolls back a transaction |
![]() | SWTCBWrapper::SWTCBWrapper (Eso *anEso, LogFile *aLogFile) SWTCBWrapper constructor |
![]() | SWTCBWrapper::SaveFile (const ACID acid, const ID fid, const MsgField *ffid, const MsgField *keywords, const MsgField *data) Saves file |
![]() | SWTCBWrapper::StorTableFindByFFID ( const MsgField *ffid, Char **fileName, GMessage **storageKey, Keywords **keywords, Size *size) Finds record in storageTable |
![]() | SWTCBWrapper::StorTableFindByFID ( const ID fid, const Int shouldClose, Char **fileName, GMessage **storageKey) Finds record in storageTable |
![]() | SWTCBWrapper::StorTableInsert ( const ID fid, const MsgField *ffid, const Char *fileName, const GMessage *storageKey, const MsgField *keywords, const Size fileSize) Inserts record to storageTable |
![]() | SWTCBWrapper::StorTableParseRecord (const Record *storRec, ID *fid, MsgField **ffid, Char **fileName, GMessage **storageKey, Keywords **keywords, Size *fileSize) Parses record got from storageTable |
![]() | SWTCBWrapper::~SWTCBWrapper () SWTCBWrapper destructor |
![]() | methods
|
![]() | attributes
| ||||||||||
![]() | methods
|
methods
attributes
Software Trusted Computing Base wrapper. This class realizes all TCB tasks purely programmaticaly without need of any hardware.
TCBTable* storageTable
TCBTable* certifTable
MsgField* DecryptByTCBPriv(const ACID acid, const MsgField *data)
GMessage* CreateReplyFileHeader(const GMessage *clientPubKey, const MsgField *ffid, const Size size)
virtual ~SWTCBWrapper()
virtual Err Rollback(const TID tid)
virtual Err SaveFile( const ACID acid, const ID fid, const MsgField *ffid, const MsgField *keywords, const MsgField *data)
virtual Err DeleteFileByFileID(const ID fid)
virtual Err ComputeMAC(const ID fid, const MsgField *oAuth, MsgField **mac)
virtual Queue* GetFileHeadersByFAM( const ACID acid, const MsgField *fam, const GMessage *clientPubKey)
virtual MsgField* GetFileByFinderFID( const ACID acid, const MsgField *ffid, const GMessage *clientPubKey)
virtual MsgField* DecryptByACPriv(const ACID acid, const MsgField *data)
virtual Err GenerateACKeys( ACID *acid, GMessage **acPubKey, GMessage **tcbPubKey)
virtual Err GetACPubKeys( const ACID, GMessage **acPubKey = NULL, GMessage **tcbPubKey = NULL)
virtual Err RemoveACKeys(const ACID acid)
virtual Err RefreshMasterKey()
virtual Err RefreshRingKeys()
Err SWTCBWrapper::CertTableInsert( const ACID acid, const GMessage *acPubKey, const GMessage *acPrivKey, const GMessage *tcbPubKey, const GMessage *tcbPrivKey)
acPubKey - Access certificate public key
acPrivKey - Access certificate private key
tcbPubKey - TCB public key
tcbPrivKey - TCB private key
Err SWTCBWrapper::ComputeMAC(const ID fid, const MsgField *oAuth, MsgField **mac)
oAuth - String sent by bank to verify file owner
mac - Counted hash (out parameter)
GMessage* SWTCBWrapper::CreateReplyFileHeader(const GMessage *clientPubKey, const MsgField *ffid, const Size size)
ffid - Search file ID to include in header
size - File size to include in header
MsgField* SWTCBWrapper::DecryptByACPriv(const ACID acid, const MsgField *data)
data - Data whished to decrypt
MsgField* SWTCBWrapper::DecryptByTCBPriv(const ACID acid, const MsgField *data)
data - Data to be encrypted by TCB private key
Err SWTCBWrapper::DeleteFileByFileID(const ID fid)
Err SWTCBWrapper::GenerateACKeys(ACID *acid, GMessage **acPubKey, GMessage **tcbPubKey)
acPubKey - Generated access public key (out parameter)
tcbPubKey - Generated access public key (out parameter)
Err SWTCBWrapper::GetACPubKeys(const ACID acid, GMessage **acPubKey, GMessage **tcbPubKey)
acPubKey - Access public key (out parameter)
tcbPubKey - TCB public key (out parameter)
MsgField* SWTCBWrapper::GetFileByFinderFID(const ACID acid, const MsgField *ffid, const GMessage *clientPubKey)
ffid - Encrypted search file ID
clientPubKey - Client's public key to encrypt replies with
Queue* SWTCBWrapper::GetFileHeadersByFAM(const ACID acid, const MsgField *fam, const GMessage *clientPubKey)
fam - Encrypted File Attribute Mask to search by
clientPubKey - Client's public key to encrypt replies with
Err SWTCBWrapper::GetRingKeys(GMessage ** ringKeys)
Err SWTCBWrapper::InstantiateTCBTables(const GMessage *ringKeys)
Err SWTCBWrapper::LoadMasterKey()
Err SWTCBWrapper::RefreshMasterKey()
Err SWTCBWrapper::RefreshRingKeys()
Err SWTCBWrapper::RemoveACKeys(const ACID acid)
Err SWTCBWrapper::Rollback(const TID tid)
SWTCBWrapper::SWTCBWrapper(Eso *anEso, LogFile *aLogFile)
aLogFile - log file for debugging messages
Err SWTCBWrapper::SaveFile(const ACID acid, const ID fid, const MsgField *ffid, const MsgField *keywords, const MsgField *data)
fid - file ID of file to save
ffid - search file ID of file to save
keywords - keywords for file to save
data - to save
Err SWTCBWrapper::StorTableFindByFFID( const MsgField *ffid, Char **fileName, GMessage **storageKey, Keywords **keywords, Size *size)
fileName - name of save file (out parameter)
storageKey - symetric key used to encrypt saved file (out parameter)
keywords - keywords for saved file (out parameter)
size - size of saved file (out parameter)
Err SWTCBWrapper::StorTableFindByFID( const ID fid, const Int shouldClose, Char **fileName, GMessage **storageKey)
shouldClose - Should I close the storageTable, after I'm
finished?
fileName - name of save file (out parameter)
storageKey - symetric key used to encrypt saved file (out parameter)
Err SWTCBWrapper::StorTableInsert( const ID fid, const MsgField *ffid, const Char *fileName, const GMessage *storageKey, const MsgField *keywords, const Size fileSize)
ffid - search file ID of saved file
fileName - name of save file
storageKey - symetric key used to encrypt saved file
keywords - keywords for saved file
fileSize - size of saved file
Err SWTCBWrapper::StorTableParseRecord(const Record *storRec, ID *fid, MsgField **ffid, Char **fileName, GMessage **storageKey, Keywords **keywords, Size *fileSize)
fid - file ID of saved file (out parameter)
ffid - search file ID of saved file (out parameter)
fileName - name of save file (out parameter)
storageKey - symetric key used to encrypt saved file (out parameter)
keywords - keywords for saved file (out parameter)
fileSize - size of saved file (out parameter)
SWTCBWrapper::~SWTCBWrapper()
alphabetic index hierarchy of classes
generated by doc++