Lorel / 0MQRxLua-MFR-POC

Try map filter reduce based on 0MQ and RxLua (et un peu de SGX)
0 stars 0 forks source link

Encode return value from enclave #7

Closed Lorel closed 7 years ago

Lorel commented 7 years ago

For now, the return object from the function given to sgxprocess can only be a string or a number, otherwise LuaSGX crash with the message "Illegal instruction"

For our purpose, we need to be able to return either strings, numbers or tables

The return value of the enclaved function has to be encoded in JSON, and the return value from sgxprocess, which is always a string, has to be decoded from JSON

rafaelppires commented 7 years ago

That is by design: not a bug. A table has to be serialized.

Lorel commented 7 years ago

Yes, that's what I finally understood, and that's why I removed the tag :)