Untrusted.hpp 832 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __UNTRUSTED_HPP__
  2. #define __UNTRUSTED_HPP__
  3. #include <cstddef>
  4. #include "sgx_eid.h"
  5. #include "sgx_tseal.h"
  6. #include "../Enclave/enclave_api.h"
  7. extern sgx_enclave_id_t global_eid;
  8. int initialize_enclave();
  9. void ecall_identity_key_new(sgx_ec256_public_t* outpub,
  10. sgx_sealed_data_t* outsealedpriv);
  11. bool ecall_identity_key_load(sgx_ec256_public_t* outpub,
  12. const sgx_sealed_data_t* insealedpriv);
  13. bool ecall_config_load(threadid_t nthreads,
  14. bool private_routing,
  15. struct EnclaveAPIParams *apiparams,
  16. struct EnclaveAPINodeConfig *apinodeconfigs,
  17. nodenum_t num_nodes, nodenum_t my_node_num);
  18. void ecall_close();
  19. bool ecall_comms_start();
  20. bool ecall_message(nodenum_t node_num, uint32_t message_len);
  21. bool ecall_chunk(nodenum_t node_num, const uint8_t *chunkdata,
  22. uint32_t chunklen);
  23. #endif