Open Enclave  0.15.0

◆ seal

oe_result_t(* _oe_seal_plugin_definition::seal) (const oe_seal_setting_t *settings, size_t settings_count, const uint8_t *plaintext, size_t plaintext_size, const uint8_t *additional_data, size_t additional_data_size, uint8_t **blob, size_t *blob_size)

Callback function to be called by oe_seal() when sealing a blob.

Parameters
[in]settingsThe array of oe_seal_setting_t structs passed to oe_seal(). If not NULL, oe_seal() guarantees that the whole settings array resides in enclave memory.
[in]settings_countNumber of elements in settings.
[in]plaintextOptional data to be encrypted. If not NULL, oe_seal() guarantees the whole plaintext buffer resides in enclave memory.
[in]plaintext_sizeSize of plaintext.
[in]additional_dataOptional additional data to be included in authentication (MAC calculation). If not NULL, oe_seal() guarantees that the whole additional_data buffer resides in enclave memory.
[in]additional_data_sizeSize of additional_data.
[out]blobReceives the address of the resulted sealed blob. Freed by oe_free(). This parameter will never be NULL.
[out]blob_sizeReceives the size of blob on success. This parameter will never be NULL.
Return values
OE_OKThe operation succeeded.
OE_INVALID_PARAMETERAt least one seal setting was invalid.
OE_UNSUPPORTEDUnrecognized seal settings.
OE_OUT_OF_MEMORYMemory allocation failed.