Open Enclave  0.15.0

◆ unseal

oe_result_t(* _oe_seal_plugin_definition::unseal) (const uint8_t *blob, size_t blob_size, const uint8_t *additional_data, size_t additional_data_size, uint8_t **plaintext, size_t *plaintext_size)

Callback function to be called by oe_unseal() when unsealing a blob.

Parameters
[in]blobThe blob to be unsealed. oe_unseal() doesn't validate this parameter.
[in]blob_sizeSize of blob. oe_unseal() doesn't validate this parameter.
[in]additional_dataOptional additional data for verification. This must match additional_data passed to oe_seal(). If not NULL, oe_unseal() guarantees that the whole additional_data buffer resides in enclave memory.
[in]additional_data_sizeSize of additional_data.
[out]plaintextReceives the pointer to the decrypted data on success. Freed by oe_free(). This parameter will never be NULL.
[out]plaintext_sizeReceives the size of plaintext on success. This parameter will never be NULL.
Return values
OE_OKUnsealed blob successfully.
*All other values are considered failure and will cause oe_unseal() to try the next plug-in.