sgx_thread_mutex_unlock function unlocks a trusted mutex object within an enclave.
int sgx_thread_mutex_unlock( sgx_thread_mutex_t * mutex );
The trusted mutex object to be unlocked.
The mutex is unlocked successfully.
The trusted mutex object is invalid or it is not locked by any thread.
sgx_get_whitelist_size returns the required buffer size for the white-list.
sgx_status_t sgx_get_whitelist_size( uint32_t *p_whitelist_size );
Indicate the size of white-list buffer.
All the outputs are generated successfully.
This topic describes various functions including their syntax, parameters, return values, and requirements.
When an API function lists an EDL in its requirements, users need to explicitly import such library EDL file in their enclave's EDL.
sgx_tservice library provides the following functions:
- Exposes APIs to create sealed data which is both confidentiality and integrity protected.
- Exposes an API to unseal sealed data inside the enclave.
- Provides APIs to authenticate and verify the input data with AES-GMAC.
See the following related topics for more information.
The RemoteAttestation sample in the SDK uses the remote KE libraries as described above to create a remote attestation of an enclave, and uses that attestation during establishment of a secure session (a key exchange).
The generalized formula for calculating the buffer size using these attributes:
Total number of bytes = count * size
An application may be designed to work with multiple enclaves. In this scenario, each enclave would still be an independent compilation unit resulting in a separate DLL file.