mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
83d6a248a8
* ENT-970 - SGX remote attestation host * Remote attestation enclave * Client for the remote attestation host * Communicates with ISV / RA server, which in turn communicates with the Intel Attestation Service * Native library bridging the client code running on the JVM with the native bits controlling and communicating with the enclave * ENT-970 - Address comments from code review * ENT-970 - More updates addressing review comments * ENT-970 - Integrate with root Gradle project for SGX
16 lines
433 B
C++
16 lines
433 B
C++
#include "enclave_u.h"
|
|
#include "sealing.hpp"
|
|
|
|
// Check whether the application enclave is able to unseal a secret.
|
|
sgx_status_t unseal_secret(
|
|
sgx_enclave_id_t enclave_id,
|
|
uint8_t *sealed_secret,
|
|
size_t sealed_secret_size
|
|
) {
|
|
sgx_status_t status = SGX_SUCCESS;
|
|
sgx_status_t ret = unsealSecret(
|
|
enclave_id, &status, sealed_secret, sealed_secret_size
|
|
);
|
|
return SGX_SUCCESS != ret ? ret : status;
|
|
}
|