Skip to content

Conversation

nicholasbishop
Copy link
Member

This adds support for logging to the event log and extending PCRs, as well as sending raw commands to the TPM. The QEMU test has been updated to cover these features as well.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

This type gets used in some C interfaces, so make sure it is laid out as a
`u32`.
The `hash_all` function is left as a stub because it's not well-specified how to
free the memory.
This adds three new public methods to `v1::Tcg`:
* `log_event`
* `hash_log_extend_event`
* `pass_through_to_tpm`
Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

LGTM but I don't know anything about the TPMv1 protocol. I trust you know what you are doing 😀

@nicholasbishop
Copy link
Member Author

LGTM but I don't know anything about the TPMv1 protocol. I trust you know what you are doing 😀

I hope so! 😀 The TPM specs are quite complicated, but the QEMU tests give me some confidence that things are correct.

@nicholasbishop nicholasbishop merged commit efff451 into rust-osdev:main Jan 9, 2023
@nicholasbishop nicholasbishop deleted the bishop-tpm1-updates branch January 9, 2023 18: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.

2 participants