-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
ee7123c
to
ba5035f
Compare
There was a problem hiding this 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.
9584cc6
to
b3e9000
Compare
There was a problem hiding this 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.
Also added the Guest Features for the VMSA to this PR. This can affect the measurement depending on which kernel features are enabled. |
ca6c3f7
to
5ac991d
Compare
5ac991d
to
823fec8
Compare
@tylerfanelli whenever you can, can you please review |
There was a problem hiding this 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>
823fec8
to
9d2e130
Compare
There was a problem hiding this 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.
#[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) | ||
} | ||
} |
There was a problem hiding this comment.
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?
Adding functions and types that will allow users to calculate authority and id blocks