#ifndef __UNTRUSTED_HPP__ #define __UNTRUSTED_HPP__ #include #include "sgx_eid.h" #include "sgx_tseal.h" #include "../Enclave/enclave_api.h" extern sgx_enclave_id_t global_eid; int initialize_enclave(); void ecall_identity_key_new(sgx_ec256_public_t* outpub, sgx_sealed_data_t* outsealedpriv); bool ecall_identity_key_load(sgx_ec256_public_t* outpub, const sgx_sealed_data_t* insealedpriv); bool ecall_config_load(threadid_t nthreads, bool private_routing, struct EnclaveAPIParams *apiparams, struct EnclaveAPINodeConfig *apinodeconfigs, nodenum_t num_nodes, nodenum_t my_node_num); void ecall_close(); bool ecall_comms_start(); bool ecall_message(nodenum_t node_num, uint32_t message_len); bool ecall_chunk(nodenum_t node_num, const uint8_t *chunkdata, uint32_t chunklen); #endif