Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using static lib in SGX #1

Open
asonnino opened this issue Apr 11, 2018 · 2 comments
Open

Using static lib in SGX #1

asonnino opened this issue Apr 11, 2018 · 2 comments

Comments

@asonnino
Copy link

asonnino commented Apr 11, 2018

I have some quick questions:

This repo is about creating two static libraries, libsgx_tcv.a and libsgx_ucv.a;

  1. The idea is that the first lib runs in the enclave and the second doesn't -- is that correct ?
  2. If 1. is correct, and I create a simple program (running outside the enclave) that links with the first lib (i.e., libsgx_tcv.a), does it mean that the CPU will switch in Enclave Mode each time I make a call to a function in that lib ?
  3. Could you point me toward how to link static a library on SGX to have everything (lib and main file) executed in the enclave?
@asonnino asonnino changed the title Quick questions Using static lib in SGX Apr 11, 2018
@faysalhossain2007
Copy link

Were you able to figure out how to add OpenCV in the sgx-enclave project?

@asonnino
Copy link
Author

No, I didn't
But I will let you know if I get back to this and manage to make it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants