CCF
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ccf::indexing::EnclaveLFSAccess Class Reference

#include <enclave_lfs_access.h>

Inherits ccf::indexing::AbstractLFSAccess.

Public Member Functions

 EnclaveLFSAccess (const ringbuffer::WriterPtr &writer)
 
void register_message_handlers (messaging::Dispatcher< ringbuffer::Message > &dispatcher)
 
void store (const LFSKey &key, LFSContents &&contents) override
 
FetchResultPtr fetch (const LFSKey &key) override
 
- Public Member Functions inherited from ccf::indexing::AbstractLFSAccess
virtual ~AbstractLFSAccess ()=default
 
- Public Member Functions inherited from ccf::AbstractNodeSubSystem
virtual ~AbstractNodeSubSystem ()=default
 

Static Public Member Functions

static LFSKey obfuscate_key (const LFSKey &key)
 
- Static Public Member Functions inherited from ccf::indexing::AbstractLFSAccess
static char const * get_subsystem_name ()
 

Protected Types

using PendingResult = std::weak_ptr< FetchResult >
 

Protected Member Functions

LFSEncryptedContents encrypt (const LFSKey &key, LFSContents &&contents)
 

Protected Attributes

std::unordered_map< LFSKey, PendingResultpending
 
ccf::pal::Mutex pending_access
 
ringbuffer::WriterPtr to_host
 
ccf::crypto::EntropyPtr entropy_src
 
std::unique_ptr< ccf::crypto::KeyAesGcmencryption_key
 

Member Typedef Documentation

◆ PendingResult

Constructor & Destructor Documentation

◆ EnclaveLFSAccess()

ccf::indexing::EnclaveLFSAccess::EnclaveLFSAccess ( const ringbuffer::WriterPtr writer)
inline

Member Function Documentation

◆ encrypt()

LFSEncryptedContents ccf::indexing::EnclaveLFSAccess::encrypt ( const LFSKey key,
LFSContents &&  contents 
)
inlineprotected

◆ fetch()

FetchResultPtr ccf::indexing::EnclaveLFSAccess::fetch ( const LFSKey key)
inlineoverridevirtual

◆ obfuscate_key()

static LFSKey ccf::indexing::EnclaveLFSAccess::obfuscate_key ( const LFSKey key)
inlinestatic

◆ register_message_handlers()

void ccf::indexing::EnclaveLFSAccess::register_message_handlers ( messaging::Dispatcher< ringbuffer::Message > &  dispatcher)
inline

◆ store()

void ccf::indexing::EnclaveLFSAccess::store ( const LFSKey key,
LFSContents &&  contents 
)
inlineoverridevirtual

Member Data Documentation

◆ encryption_key

std::unique_ptr<ccf::crypto::KeyAesGcm> ccf::indexing::EnclaveLFSAccess::encryption_key
protected

◆ entropy_src

ccf::crypto::EntropyPtr ccf::indexing::EnclaveLFSAccess::entropy_src
protected

◆ pending

std::unordered_map<LFSKey, PendingResult> ccf::indexing::EnclaveLFSAccess::pending
protected

◆ pending_access

ccf::pal::Mutex ccf::indexing::EnclaveLFSAccess::pending_access
protected

◆ to_host

ringbuffer::WriterPtr ccf::indexing::EnclaveLFSAccess::to_host
protected

The documentation for this class was generated from the following file: