Open Enclave  0.13.0

◆ oe_get_public_key_by_policy()

oe_result_t oe_get_public_key_by_policy ( oe_enclave_t enclave,
oe_seal_policy_t  seal_policy,
const oe_asymmetric_key_params_t *  key_params,
uint8_t **  key_buffer,
size_t *  key_buffer_size,
uint8_t **  key_info,
size_t *  key_info_size 
)

Returns a public key that is associated with the identity of the enclave and the specified policy.

Parameters
[in]enclaveThe enclave handle.
[in]seal_policyThe policy for the identity properties used to derive the key.
[in]key_paramsThe parameters for the asymmetric key derivation.
[out]key_bufferA pointer to the buffer that on success contains the requested public key.
[out]key_buffer_sizeOn success, this contains size of key_buffer.
[out]key_infoOptional pointer to a buffer for the enclave-specific key information which can be used to retrieve the same key later on a newer security version.
[out]key_info_sizeOn success, this contains the size of key_info.
Return values
OE_OKThe key was successfully requested.
OE_INVALID_PARAMETERAt least one parameter is invalid.
OE_OUT_OF_MEMORYThere is no memory available.
OE_UNEXPECTEDAn unexpected error happened.