Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
29 Views

use of static crypto lib - libsodium

Hi,

As part of our windows VS2015 sgx development we would like to use nacl implementation libsodium.lib for crypto operations.

Trying to link libsodium static lib to sgx project fails on linkage with RTC errors:

Error    LNK2001    unresolved external symbol __RTC_CheckEsp,

Error    LNK2001    unresolved external symbol @_RTC_CheckStackVars@8

etc.

Is it possible to use nacl inside an enclave?

0 Kudos
1 Reply
Highlighted
29 Views

Do you have the source for this library? Can you build it using the SGX SDK?

Static libraries may contain calls to APIs / instructions that are not supported inside enclaves or by the runtime. If so, you will need to rebuild it.

0 Kudos