|
◆ 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] | blob | The blob to be unsealed. oe_unseal() doesn't validate this parameter. |
[in] | blob_size | Size of blob . oe_unseal() doesn't validate this parameter. |
[in] | additional_data | Optional 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_size | Size of additional_data . |
[out] | plaintext | Receives the pointer to the decrypted data on success. Freed by oe_free() . This parameter will never be NULL . |
[out] | plaintext_size | Receives the size of plaintext on success. This parameter will never be NULL . |
- Return values
-
OE_OK | Unsealed blob successfully. |
* | All other values are considered failure and will cause oe_unseal() to try the next plug-in. |
|