|
oe_result_t oe_get_seal_key_by_policy |
( |
oe_seal_policy_t |
seal_policy, |
|
|
uint8_t * |
key_buffer, |
|
|
size_t * |
key_buffer_size, |
|
|
uint8_t * |
key_info, |
|
|
size_t * |
key_info_size |
|
) |
| |
Get a symmetric encryption key derived from the specified policy and coupled to the enclave platform.
- Parameters
-
seal_policy | The policy for the identity properties used to derive the seal key. |
key_buffer | The buffer to write the resulting seal key to. |
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. |
key_info | Optional buffer for the enclave-specific key information which can be used to retrieve the same key later, on a newer security version. |
key_info_size | The size of the key_info 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_info 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 or key_info buffer is too small. |
OE_UNEXPECTED | An unexpected error happened. |
|