1234567891011 |
- #pragma once
- #include <string>
- #include <sgx_tae_service.h> // For sgx_mc_uuid_t structure. // TODO: Uncomment this.
- namespace ProtobufSgxTransforms {
- 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);
- // 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);
- 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);
- // void decode_protobuf_message_to_plaintext(protobuf_plaintext_seal_message& protobuf_unsealed_msg, std::string& plaintext);
- void decode_protobuf_message_to_plaintext(std::string& temp_plaintext_str , std::string& plaintext);
- }
|