mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
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;
|
||
|
}
|