|
◆ 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] | settings | The 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_count | Number of elements in settings . |
[in] | plaintext | Optional data to be encrypted. If not NULL , oe_seal() guarantees the whole plaintext buffer resides in enclave memory. |
[in] | plaintext_size | Size of plaintext . |
[in] | additional_data | Optional 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_size | Size of additional_data . |
[out] | blob | Receives the address of the resulted sealed blob. Freed by oe_free() . This parameter will never be NULL . |
[out] | blob_size | Receives the size of blob on success. This parameter will never be NULL . |
- Return values
-
OE_OK | The operation succeeded. |
OE_INVALID_PARAMETER | At least one seal setting was invalid. |
OE_UNSUPPORTED | Unrecognized seal settings. |
OE_OUT_OF_MEMORY | Memory allocation failed. |
|