Untrusted.hpp 582 B

12345678910111213141516171819202122232425
  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. #endif