SgxSealer.h 581 B

12345678910
  1. //#include "sgx_tae_service.h" // For sgx_sealed_data_t struct
  2. //class Sealer {
  3. //private:
  4. // uint32_t verify_sgx_monotonic_counter_value(sgx_mc_uuid_t* sgx_monotonic_counter_id, uint32_t* sgx_monotonic_counter_value);
  5. // uint32_t create_sgx_monotonic_counter_id_and_value(sgx_mc_uuid_t* sgx_counter_id, uint32_t* sgx_counter_value);
  6. //public:
  7. uint32_t initialize_pse_and_counter();
  8. uint32_t seal_message(std::string& plaintext_str, std::string& sgx_sealed_msg);
  9. uint32_t unseal_and_verify_sealed_message(std::string& sgx_sealed_msg_str, std::string& plaintext);
  10. //}