- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Team!
I sent multiple uint8_t* pointers to the enclave and want to reconstruct the strings inside the enclave, the character is correct before passing it to the enclave while shows garbled characters inside the enclave. Detailed code is shown below:
check ectxt[0]: |HE[
check hostCtxt_length[1]: 246056
check ectxt[1]: |HE[
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jesus,
Sry, I forgot to post EDL here.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello DylanWang,
In the ecall function definition in the EDL file, you have to designate a pointer direction, [in], [out[], [user_check]. In your case, your [in] before the pointers that contain the characters you want to pass to the enclave. Refer to the section Pointer Handling in the SGX Developer Reference Guide for your OS. Also find more information here: https://software.intel.com/content/www/us/en/develop/articles/intel-software-guard-extensions-developing-a-sample-enclave-application.html, by searching for "[in]" within the page.
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jesus,
Sry, I forgot to post EDL here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for confirming you solved the issue, DylanWang.
This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page