In the previous post, I showed how to link a trusted function that can be called insdie the enclave. However, Intel SGX provides a way to import EDL to make a library have an ECALL. The post from Intel is [here]. 1. Implementing a trusted SGX library # As we do in the previous post, make a trusted library. {: .center-image} So our simple trusted SGX library has a function named ecall_testlib_sample.