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
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