Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifiers/sgx-ecdsa: fix QvE report and identity verification #140

Merged
merged 3 commits into from
Jan 29, 2023

Conversation

imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Jan 13, 2023

This PR moves sgx_tvl_verify_qve_report_and_identity() into the enclave to fix QvE report and identity verification. Additionally, it updates the qve_isvsvn_threshold from 3 to 7. These changes are expected to have no impact on the sgx-ecdsa-qve verifier compiled in occlum mode. As a result, the enclave_id field is no longer necessary and has been removed from the rats_tls_conf_t structure and all *_ctx structures.

Additionally, this PR adds a check for collateral_expiration_status to the sgx-ecdsa verifier, which serves as an enhancement to the existing verification policy. This change is expected to affect the sgx-ecdsa/sgx-ecdsa-qve verifier in occlum, SGX, and host mode.

@imlk0

This comment was marked as resolved.

To make sgx-ecdsa-qve work correctly, sgx_tvl_verify_qve_report_and_identity() should be called in enclave.

Signed-off-by: Kun Lai <me@imlk.top>
Signed-off-by: Kun Lai <me@imlk.top>
This is an enhancement to the existing verification policy. According to
Intel(R) ECDSA Quote Library API document, the expiration_check_date is
used to check if any collateral is expired. And if there is an expired
collateral, the collateral_expiration_status will be set to a non-zero
value.

Signed-off-by: Kun Lai <me@imlk.top>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants