- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am really new to SGX and I need to be able to create and return a randomly generated number that was made in an enclave for a research project. I have figured out how to randomly generate a number in an enclave but I cannot figure out how to return the value for it to be used in the applications main. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Giovanni,
You have two options:
- Create an ecall from the untrusted application to the enclave. The ecall will have an "out" pointer argument which the enclave will use to return the random number to the untrusted application.
- Create an ocall within the enclave. The ocall will pass the random number to the untrusted application using an "in" pointer argument.
This article will help, How do I call an Intel® Software Guard Extensions (Intel® SGX) Trusted Function from an Untrusted Application?
Sincerely,
Jesus G.
Intel Customer Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Giovanni,
You have two options:
- Create an ecall from the untrusted application to the enclave. The ecall will have an "out" pointer argument which the enclave will use to return the random number to the untrusted application.
- Create an ocall within the enclave. The ocall will pass the random number to the untrusted application using an "in" pointer argument.
This article will help, How do I call an Intel® Software Guard Extensions (Intel® SGX) Trusted Function from an Untrusted Application?
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Giovanni,
Do you still need help with this issue?
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Giovanni,
I hope the information I provided was helpful to you. Since we haven't heard from you we will no longer monitor this thread. If you need further assistance with this issue, please open a new thread.
Sincerely,
Jesus G.
Intel Customer Support
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page