Open Enclave  0.5.x
oe_result_t oe_get_seal_key_by_policy_v1 ( 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.

Deprecated:
This function is deprecated. Use oe_get_seal_key_by_policy_v2() instead.
Parameters
seal_policyThe policy for the identity properties used to derive the seal key.
key_bufferThe buffer to write the resulting seal key to.
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.
key_infoOptional buffer for the enclave-specific key information which can be used to retrieve the same key later, on a newer security version.
key_info_sizeThe 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_OKThe seal key was successfully requested.
OE_INVALID_PARAMETERAt least one parameter is invalid.
OE_BUFFER_TOO_SMALLThe key_buffer or key_info buffer is too small.
OE_UNEXPECTEDAn unexpected error happened.