Comments (6)
Are you using oeedger8r on your Enclave.edl or are you using sgxedger8r
from openenclave.
Hello, I'm using sgxedger8r on my Enclave.edl.
from openenclave.
Use oeedger8r on Enclave.edl, the ECALL function needs an argument oe_enclave_t*
(aka _oe_enclave*
). But use sgxedger8r, the ECALL function needs an argument sgx_enclave_id_t
(aka long unsigned int
). If I want to call an Open Enclave ECALL in a SGXSDK project, what can I do to merge the difference between function arguments?
from openenclave.
You need to use oeedger8r for EDL files intended for use with openenclave. Since the enclave is written using OpenEnclave, on the host side, the EDL must be processed using oeedger8r.
from openenclave.
Thanks first! In fact, I have two EDL files, Enclave.edl
(use sgx sdk) and helloworld.edl
(use open enclave). I defined a ECALL enclave_helloworld()
in helloworld.edl
, and I use oeedger8r to process helloworld.edl
. After that, I got a function
oe_result_t enclave_helloworld(oe_enclave_t* enclave);
Now I'm trying to call this function in the host side in my sgx sdk project. Specifically, in the host side in the sgx sdk project, named App.cpp
, I import helloworld_u.h
generated by oeedger8r and call enclave_helloworld
.
// App.cpp in sgx sdk project
#include "helloworld_u.h" // generated by oeedger8r
...
enclave_helloworld() // what arg can I pass to this function?
...
However, sgx sdk does not support struct oe_enclave_t*
. So I wonder is there any thing I can do to solve this problem?
from openenclave.
On the host-side you need to link with liboehost.a. The hellworld_u.h
will have the declaration for a create_helloworld_enclave
function. Calling that will create and enclave and get you a oe_enclave_t
.
See
from openenclave.
Related Issues (20)
- HelloWorld sample fails with oe_result_t=OE_PLATFORM_ERROR HOT 2
- Running (remote) attestation sample gives an error oe_verify_evidence failed (OE_TCB_LEVEL_INVALID) HOT 2
- MBedTLS SSL test suite has 2 failing tests HOT 1
- CodeQL 2.15.1 breaks custom queries
- what is the maximum size of memory in TrustZone now HOT 3
- The following error occurs when installing Open Enclave: HOT 1
- how to start the SGX function in the Linux system HOT 1
- ttp/snap/W7_EDlXWTBiXAEEniNoMPwAAYaWpnZG9uZG9iAYyqsjwfAYyqsiohAAAAAw/@41.335703,-95.590514,2.00z HOT 1
- Proposed: Deprecation of mbedtls by March 31 2024 HOT 5
- oe_verify_evidence failed (OE_MISSING_CERTIFICATE_CHAIN) HOT 3
- Improve sub-leaf emulation on the CPUID instruction
- Adding AEX-Notify support HOT 3
- Measure enclave multi-thread overhead HOT 8
- links to target "openenclave::oehostapp" but the target was not found. HOT 1
- Errors building due to -Werror on linux HOT 3
- Azure Account extension that Microsoft Open Enclave extension depends on for authentication will be deprecated in January 2025
- samples instructions for copying samples to alternate directory missing xcopy switches
- For new releases, Ubuntu Packages will not be available on packages.microsoft.com repo
- Mentorship Opportunity for CCC Projects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openenclave.