|
◆ 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_info | The enclave-specific key information to derive the seal key with. |
[in] | key_info_size | The size of the key_info buffer. |
[out] | key_buffer | Upon success, this points to the resulting seal key, which should be freed with oe_free_key(). |
[out] | key_buffer_size | Upon success, this contains the size of the key_buffer buffer, which should be freed with oe_free_key(). |
- Return values
-
OE_OK | The seal key was successfully requested. |
OE_INVALID_PARAMETER | At least one parameter is invalid. |
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. |
OE_OUT_OF_MEMORY | Failed to allocate memory. |
|