Open Enclave  0.16.1

◆ oe_verify_report()

oe_result_t oe_verify_report ( oe_enclave_t enclave,
const uint8_t *  report,
size_t  report_size,
oe_report_t parsed_report 
)

Verify the integrity of the report and its signature.

This function verifies that the report signature is valid. If the report is local, it verifies that it is correctly signed by the enclave platform. If the report is remote, it verifies that the signing authority is rooted to a trusted authority such as the enclave platform manufacturer.

Parameters
[in]enclaveThe instance of the enclave that will be used to verify a local report. For remote reports, this parameter can be NULL.
[in]reportThe buffer containing the report to verify.
[in]report_sizeThe size of the report buffer.
[out]parsed_reportOptional oe_report_t structure to populate with the report properties in a standard format.
Return values
OE_OKThe report was successfully created.
OE_INVALID_PARAMETERAt least one parameter is invalid.