Open Enclave  0.13.0

◆ oe_get_seal_key_v2()

oe_result_t oe_get_seal_key_v2 ( const uint8_t *  key_info,
size_t  key_info_size,
uint8_t **  key_buffer,
size_t *  key_buffer_size 
)

Get a symmetric encryption key from the enclave platform using existing key information.

Parameters
[in]key_infoThe enclave-specific key information to derive the seal key with.
[in]key_info_sizeThe size of the key_info buffer.
[out]key_bufferUpon success, this points to the resulting seal key, which should be freed with oe_free_key().
[out]key_buffer_sizeUpon success, this contains the size of the key_buffer buffer, which should be freed with oe_free_key().
Return values
OE_OKThe seal key was successfully requested.
OE_INVALID_PARAMETERAt least one parameter is invalid.
OE_INVALID_CPUSVNkey_info contains an invalid CPUSVN.
OE_INVALID_ISVSVNkey_info contains an invalid ISVSVN.
OE_INVALID_KEYNAMEkey_info contains an invalid KEYNAME.
OE_OUT_OF_MEMORYFailed to allocate memory.