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: record hash of event in event log #309

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaojiaqi7
Copy link
Contributor

Events of migtd, such as policy events, are particularly large in size. Since the event log is written into the RATLS certificate, this results in a significant increase in the size of the RATLS certificate. Using the hash of the event instead of the raw data can save space in the event log and reduce the size of the certificate.

Events of migtd, such as policy events, are particularly large in size.
Since the event log is written into the RATLS certificate, this results
in a significant increase in the size of the RATLS certificate. Using the
hash of the event instead of the raw data can save space in the event log
and reduce the size of the certificate.

Signed-off-by: Jiaqi Gao <[email protected]>
let digest = calculate_digest(tagged_event_data)?;
let event = TaggedEvent::new(tagged_event_id, &digest);
Copy link
Contributor

Choose a reason for hiding this comment

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

The digest is already recorded.

I think we only need to add descriptor.
Please refer to https://trustedcomputinggroup.org/resource/pc-client-specific-platform-firmware-profile-specification/

@gaojiaqi7 gaojiaqi7 marked this pull request as draft October 23, 2024 14:34
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