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

Adding functions and types to calculate AUTH and ID blocks #139

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

DGonzalezVillal
Copy link
Member

Adding functions and types that will allow users to calculate authority and id blocks

Copy link
Contributor

@larrydewey larrydewey left a comment

Choose a reason for hiding this comment

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

Some discussion points, and you have a number of linting errors which need to be addressed.

@DGonzalezVillal DGonzalezVillal force-pushed the id-block branch 3 times, most recently from 9584cc6 to b3e9000 Compare February 14, 2024 21:07
Copy link
Contributor

@larrydewey larrydewey left a comment

Choose a reason for hiding this comment

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

Just a couple thoughts. Not blockers, but something to think about.

@larrydewey larrydewey self-requested a review February 15, 2024 17:49
@DGonzalezVillal
Copy link
Member Author

Also added the Guest Features for the VMSA to this PR. This can affect the measurement depending on which kernel features are enabled.

@DGonzalezVillal
Copy link
Member Author

@tylerfanelli whenever you can, can you please review

Copy link
Contributor

@larrydewey larrydewey left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: DGonzalezVillal <Diego.GonzalezVillalobos@amd.com>
Signed-off-by: DGonzalezVillal <Diego.GonzalezVillalobos@amd.com>
Signed-off-by: DGonzalezVillal <Diego.GonzalezVillalobos@amd.com>
Copy link
Member

@tylerfanelli tylerfanelli left a comment

Choose a reason for hiding this comment

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

One small comment. Other than that, LGTM.

Comment on lines +817 to +839
#[cfg(all(feature = "snp", feature = "openssl"))]
impl std::convert::From<openssl::error::ErrorStack> for IdBlockError {
fn from(value: openssl::error::ErrorStack) -> Self {
Self::CryptoErrorStack(value)
}
}

impl std::convert::From<LargeArrayError> for IdBlockError {
fn from(value: LargeArrayError) -> Self {
Self::LargeArrayError(value)
}
}

impl std::convert::From<std::io::Error> for IdBlockError {
fn from(value: std::io::Error) -> Self {
Self::FileError(value)
}
}
impl std::convert::From<bincode::ErrorKind> for IdBlockError {
fn from(value: bincode::ErrorKind) -> Self {
Self::BincodeError(value)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Can't these be converted by map_err()? Is the From implementation necessary?

@larrydewey larrydewey merged commit 2e391a8 into virtee:main Feb 22, 2024
15 checks passed
@DGonzalezVillal DGonzalezVillal deleted the id-block branch June 17, 2024 17:00
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.

3 participants