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

Log binary hash of the loaded application #4758

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

jul-sh
Copy link
Contributor

@jul-sh jul-sh commented Feb 5, 2024

We did this in a different place before I removed it in #4755. I think it's nice to keep.

We did this in a different place before I removed it in project-oak#4755. I think it's nice to keep.
let app_digest = oak_restricted_kernel_dice::measure_app_digest(&application_bytes);

log::info!(
"Binary hash: {}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

(nit) for consistency?

Suggested change
"Binary hash: {}",
"Application digest: {}",

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you also print what hash function is used? is it sha2-256? If so, perhaps we should rename measure_app_digest to include the hash type itself, to avoid confusion if / when we support other ones? In fact perhaps rename AppDigest to AppDigestSha2_256 or something like that?

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator

@conradgrobler conradgrobler left a comment

Choose a reason for hiding this comment

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

Thanks

let app_digest = oak_restricted_kernel_dice::measure_app_digest(&application_bytes);

log::info!(
"Binary hash: {}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

@jul-sh jul-sh merged commit 5d957a2 into project-oak:main Feb 6, 2024
17 checks passed
@jul-sh jul-sh deleted the dice-modular branch February 6, 2024 21:31
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