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

migtd: mask the xfam and attribute #202

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

gaojiaqi7
Copy link
Contributor

MigTD may have different features on different platforms. Mask the attribute and xfam bits that is not required for migtd.

@@ -123,7 +123,7 @@ fn verify_peer_cert(
cert: &[u8],
quote_local: &[u8],
) -> core::result::Result<(), CryptoError> {
let verified_report_local = attestation::verify_quote(quote_local)
let mut verified_report_local = attestation::verify_quote(quote_local)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't change attribute here.

We can have a local mut version in authenticate_policy().

@@ -137,14 +137,14 @@ fn verify_peer_cert(
parse_extensions(extensions).ok_or(CryptoError::ParseCertificate)?;

#[cfg(not(feature = "test_disable_ra_and_accept_all"))]
if let Ok(verified_report_peer) = attestation::verify_quote(quote_report) {
if let Ok(mut verified_report_peer) = attestation::verify_quote(quote_report) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@gaojiaqi7 gaojiaqi7 force-pushed the 0409/mask_attributes_xfam branch from 7b06679 to 2b26f8b Compare April 10, 2024 02:46
@gaojiaqi7 gaojiaqi7 requested a review from jyao1 April 10, 2024 02:46
MigTD may have different features on different platforms. Mask the
attribute and xfam bits that is not required for migtd.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0409/mask_attributes_xfam branch from 2b26f8b to a7473b5 Compare April 10, 2024 03:01
@jyao1 jyao1 merged commit c09df0c into intel:main Apr 10, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants