:: commit b35885ef4634f0fbc7b8ac66d4f33762609d346f

Mintsuki <mintsuki@protonmail.com> — 2026-04-30 18:47

parents: f5b95804b0

lib/tpm: Don't require event digest count to match the spec ID's

diff --git a/common/lib/tpm.c b/common/lib/tpm.c
index 947f47db..a3d06bc8 100644
--- a/common/lib/tpm.c
+++ b/common/lib/tpm.c
@@ -180,8 +180,7 @@ uint32_t tpm_calc_event_size(const void *event_p, const void *header_p) {
         (const struct tpm_specid_event_head *)event_header->event;
 
     if (memcmp(efispecid->signature, TCG_SPECID_SIG, sizeof(TCG_SPECID_SIG)) != 0
-     || efispecid->num_algs == 0
-     || event->count != efispecid->num_algs) {
+     || efispecid->num_algs == 0) {
         return 0;
     }
 
tab: 248 wrap: offon