|
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.
- Parameters
-
key_info | The enclave-specific key information to derive the seal key with. |
key_info_size | The size of the key_info buffer. |
key_buffer | The buffer to write the resulting seal key to. It will not be changed if this function fails. |
key_buffer_size | The 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_OK | The seal key was successfully requested. |
OE_INVALID_PARAMETER | At least one parameter is invalid. |
OE_BUFFER_TOO_SMALL | The key_buffer buffer is too small. |
OE_INVALID_CPUSVN | key_info contains an invalid CPUSVN. |
OE_INVALID_ISVSVN | key_info contains an invalid ISVSVN. |
OE_INVALID_KEYNAME | key_info contains an invalid KEYNAME. |
|