Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

use of static crypto lib - libsodium

o_f_
Beginner
700 Views

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
Francisco_C_Intel
700 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
Reply