ProtobufSgxSealerTransforms.h 885 B

1234567891011
  1. #pragma once
  2. #include <string>
  3. #include <sgx_tae_service.h> // For sgx_mc_uuid_t structure. // TODO: Uncomment this.
  4. namespace ProtobufSgxTransforms {
  5. uint32_t encode_message_and_counter_to_protobuf_string(std::string& plaintext, sgx_mc_uuid_t* sgx_counter_id, uint32_t* sgx_counter_value, std::string& serialized_plaintext);
  6. // void decode_protobuf_message_to_counter_id_and_value(protobuf_plaintext_seal_message& protobuf_unsealed_msg, sgx_mc_uuid_t* sgx_counter_id, uint32_t* sgx_counter_value);
  7. void decode_protobuf_message_to_counter_id_and_value(std::string& temp_plaintext_str, sgx_mc_uuid_t* sgx_counter_id, uint32_t* sgx_counter_value);
  8. // void decode_protobuf_message_to_plaintext(protobuf_plaintext_seal_message& protobuf_unsealed_msg, std::string& plaintext);
  9. void decode_protobuf_message_to_plaintext(std::string& temp_plaintext_str , std::string& plaintext);
  10. }