Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Adding Protobuf INSIDE the Enclave, possible? and how?

Shin__Billy
初學者
2,449 檢視

Hi folks, 

Just started working with SGX, so I am trying to figure out what's possible and what's not.

Basically, somewhere outside, is serializing, and encrypting their protobuf message. 

We receive it in the SGX app, send the encrypted data into Enclave, unencrypt, and deserialize INSIDE the enclave to do some data manipulation. Then we re-serialize and re-encrypt, and pass it back out.

In order to do the above, we need protobuf libraries in the libraries. Is this possible?

 

0 積分
5 回應
Roshan_Mehta
初學者
2,449 檢視

I wanted to do the something if you get the know the answer or made it possible. Please do let me know.

Hoang_N_Intel
員工
2,449 檢視

There is an open source example at https://bitbucket.org/P2PUsingSGX/p2pusingsgx that shows you how to use openssl for encryption, boost library to implement the communications and Google protobuf libraries and rapidjson to serialize transferred data. Please take a look at its source code and see whether it helps with your implementation or not.

l__dd
初學者
2,449 檢視

emmm I also want to do the same job,but I have no idea about that.

enclave doesnot support any serialization library

maybe metadata and json could help.anyone has idea about that?

you_w_
新貢獻者 III
2,449 檢視

Hi everyone,  if  someone want to use protobuf inside sgx, you can use protobuf-c  which can be static linked inside sgx enclave.

Reguards you.w

yu_d_
初學者
2,449 檢視

Welcome to try rust-sgx-sdk which include a full functional memory-safe protobuf implementation in Rust. Here is the code example:

https://github.com/baidu/rust-sgx-sdk/tree/master/samplecode/protobuf

回覆