Untrusted.hpp 760 B

1234567891011121314151617181920212223242526272829303132
  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(struct EnclaveAPIParams *apiparams,
  14. struct EnclaveAPINodeConfig *apinodeconfigs,
  15. nodenum_t num_nodes, nodenum_t my_node_num);
  16. bool ecall_comms_start();
  17. bool ecall_message(nodenum_t node_num, uint32_t message_len);
  18. bool ecall_chunk(nodenum_t node_num, const uint8_t *chunkdata,
  19. uint32_t chunklen);
  20. #endif