-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implements TCG_CompactLogHashExtendEvent Call #54
Conversation
866b4cb
to
013ce82
Compare
I can confirm that this patch fixes our issue with the HP EliteDesk 705 G2. The only difference that I've seen is that the string logged to the measurement log is now "CompactHash" where before it was "IPL". Thanks to all for the quick fix! |
Thanks for the patch. Can you have a look at the merge conflict? |
This replaces the original calls to grub_TPM_int1A_hashLogExtendEvent with calls to the compact measurement routine. We use the truncated hash of a descriptive string for the "Informative Value" defined by TCG documentation. Addresses Issue Rohde-Schwarz#53
013ce82
to
913a996
Compare
Looks like Git got confused by the tab/space change from 23c23c1, rebasing my changes upstream fixes it. |
While this patch resolves the crash that I'm having, it appears that the PCRs aren't being populated as expected. My external PCR calculation tool no longer works for PCRs 10 and 11 (12 is unused, and 13 is taken as gospel). When I take a sha1sum of the kernel and initramfs, it is different than what I see in the measurement logs. I will continue to debug and keep you apprised of anything I find. |
From my reading of the spec, it appears that TCG_CompactLogHashExtendEvent does the hashing of the buffer within the interrupt. However, the TPM code already has hashed it by the time we're looking at tpm_int1A_compactHashLogExtendEvent, so we're essentially measuring everything as SHA1(SHA1(buffer)) instead of SHA1(buffer). |
Good catch, I never had hashes to compare this against so it slipped past me. I'll read the spec again and see what needs to be changed. Just passing this along, we were able to get an issue open with Lenovo to look into this. I was told it has something to do with the UEFI backwards compatibility module. So that's a +1 for issue #15 at some point. |
Previously (before the changes in this PR) there was |
@neusdan: It's possible that instead of using the |
Thanks for your contribution! Unfortunately, we decided to deprecate and no longer maintain this project. I will be closing this issue. |
This replaces the original calls to grub_TPM_int1A_hashLogExtendEvent with calls
to the compact measurement routine. We use the truncated hash of a descriptive
string for the "Informative Value" defined by TCG documentation.
Addresses Issue #53