Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Transfer messages over network

Svart_K_
Beginner
189 Views

I'm using the remote attestation example that was provided to build my current application. Unfortunately the network transfer between the application and the service provider has not been implemented in the example.

I have noticed that the function calls for retrieving the messages such as "sgx_ra_get_msg1" all work with the predefined structures "ra_samp_request_header_t" and "ra_samp_response_header_t".

I tried to send these structures over the network with boost::asio but have experienced major difficulties to do so, since the storing of the structures is architecture dependent.

What would be a good way to transfer the messages in C++ between the application and the SP?

Thanks

0 Kudos
1 Reply
Rodolfo_S_
New Contributor III
189 Views
Hi, Svart. A full Remote Attestation example was provided here: https://software.intel.com/en-us/articles/intel-software-guard-extensions-remote-attestation-end-to-... This example uses Casablanca, but I have been able to use Restbed in its place. For formatting messages, you could use a JSON string. I am currently using json-cpp for that. Casablanca - https://github.com/Microsoft/cpprestsdk Restbed - https://github.com/Corvusoft/restbed Json-cpp - https://github.com/ascheglov/json-cpp Best regards, Rodolfo
Reply