You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/01/14 07:25:34 UTC

[GitHub] [incubator-teaclave-sgx-sdk] dingelish commented on issue #195: Get SGX_ERROR_INVALID_PARAMETER when Calling sgx_get_quote()

dingelish commented on issue #195: Get SGX_ERROR_INVALID_PARAMETER when Calling sgx_get_quote()
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/195#issuecomment-574040669
 
 
   Please look closer into Intel's manual:
   https://download.01.org/intel-sgx/sgx-linux/2.7.1/docs/Intel_SGX_Developer_Reference_Linux_2.7.1_Open_Source.pdf
    sgx_get_quote is on page 163-165.
   
   at the bottom of page 165, intel writes clearly:
   > Library: Requirements - libsgx_epid.so or libsgx_uae_service_sim.so (simulation)
   
   these two requirements (two general linux shared object), as well as the name of "uae_service) both indicate that this function can only be called in the untrusted app. you cannot call it in the enclave.
   
   you can look into the mutual-ra enclave sample to see how to generate a quote:
   https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/samplecode/mutual-ra/enclave/src/lib.rs#L373

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org