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
Is it possible to use nacl inside an enclave?
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.