- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello guys:
I am a freshman of SGX, I want protect a function which its parameter is a class,and how can I pass it to enclave?
for example:
and edl file not support "class"
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dai c.:
Actually the interface for sgx can only be write with C programming language. You can use struct instead.
Regards
you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume that if you really want to use C++, you can use C++ object serialization technique to get in and out the Enclave instead of using struct. But it does add some overhead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hoang Nguyen (Intel) wrote:
I assume that if you really want to use C++, you can use C++ object serialization technique to get in and out the Enclave instead of using struct. But it does add some overhead.
Yes,It's a good idea! I have a try in C++ object serialization technique,but many header files used by serialization is unsupported in SGX, SDK e.g./boost/archive/text_oarchive.hpp ,boost/archive/text_iarchive.hpp. and also some frequently used header files in C++ is unsupported in SGX SDK,like iostream,sstream and so on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you w. wrote:
Hi dai c.:
Actually the interface for sgx can only be write with C programming language. You can use struct instead.
Regards
you
Actually, I use SGX SDK to protect some modules of a massive C++ project, and it's hard to change class into struct. and the mainly problem is I can't pass C++ object by edl file

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