|
◆ oe_get_report_v2()
oe_result_t oe_get_report_v2 |
( |
uint32_t |
flags, |
|
|
const uint8_t * |
report_data, |
|
|
size_t |
report_data_size, |
|
|
const void * |
opt_params, |
|
|
size_t |
opt_params_size, |
|
|
uint8_t ** |
report_buffer, |
|
|
size_t * |
report_buffer_size |
|
) |
| |
Get a report signed by the enclave platform for use in attestation.
This function creates a report to be used in local or remote attestation. The report shall contain the data given by the report_data parameter.
- Parameters
-
[in] | flags | Specifying default value (0) generates a report for local attestation. Specifying OE_REPORT_FLAGS_REMOTE_ATTESTATION generates a report for remote attestation. |
[in] | report_data | The report data that will be included in the report. |
[in] | report_data_size | The size of the report_data in bytes. |
[in] | opt_params | Optional additional parameters needed for the current enclave type. For SGX, this can be sgx_target_info_t for local attestation. |
[in] | opt_params_size | The size of the opt_params buffer. |
[out] | report_buffer | This points to the resulting report upon success. |
[out] | report_buffer_size | This is set to the size of the report buffer on success. |
- Return values
-
OE_OK | The report was successfully created. |
OE_INVALID_PARAMETER | At least one parameter is invalid. |
OE_OUT_OF_MEMORY | Failed to allocate memory. |
|