CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
host::Enclave Class Reference

#include <enclave.h>

Public Member Functions

 Enclave (const std::string &path, EnclaveType type, EnclavePlatform platform)
 
 ~Enclave ()
 
CreateNodeStatus create_node (const EnclaveConfig &enclave_config, const StartupConfig &ccf_config, std::vector< uint8_t > &&startup_snapshot, std::vector< uint8_t > &node_cert, std::vector< uint8_t > &service_cert, StartType start_type, LoggerLevel enclave_log_level, size_t num_worker_thread, void *time_location)
 
bool run ()
 

Detailed Description

Wraps an oe_enclave and associated ECalls. New ECalls should be added as methods which construct an appropriate EGeneric-derived param type and pass it to call.

Constructor & Destructor Documentation

◆ Enclave()

host::Enclave::Enclave ( const std::string &  path,
EnclaveType  type,
EnclavePlatform  platform 
)
inline

Create an uninitialized enclave hosting the given library.

Parameters
pathPath to signed enclave library file
typeType of enclave to load
platformTrusted Execution Platform of enclave, influencing what flags should be passed to OE, or whether to dlload a virtual enclave

◆ ~Enclave()

host::Enclave::~Enclave ( )
inline

Member Function Documentation

◆ create_node()

CreateNodeStatus host::Enclave::create_node ( const EnclaveConfig enclave_config,
const StartupConfig ccf_config,
std::vector< uint8_t > &&  startup_snapshot,
std::vector< uint8_t > &  node_cert,
std::vector< uint8_t > &  service_cert,
StartType  start_type,
LoggerLevel  enclave_log_level,
size_t  num_worker_thread,
void *  time_location 
)
inline

◆ run()

bool host::Enclave::run ( )
inline

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