Open Enclave
oe_result_t oe_get_seal_key ( 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.

key_infoThe enclave-specific key information to derive the seal key with.
key_info_sizeThe size of the key_info buffer.
key_bufferThe buffer to write the resulting seal key to. It will not be changed if this function fails.
key_buffer_sizeThe size of the key_buffer buffer. If this is too small, this function sets it to the required size and returns OE_BUFFER_TOO_SMALL. When this function success, the number of bytes written to key_buffer is set to it.
Return values
OE_OKThe seal key was successfully requested.
OE_INVALID_PARAMETERAt least one parameter is invalid.
OE_BUFFER_TOO_SMALLThe key_buffer buffer is too small.
OE_INVALID_CPUSVNkey_info contains an invalid CPUSVN.
OE_INVALID_ISVSVNkey_info contains an invalid ISVSVN.
OE_INVALID_KEYNAMEkey_info contains an invalid KEYNAME.