From 0f650714d9d0a9a917b978438508227aab61389d Mon Sep 17 00:00:00 2001 From: Tom D <40675700+twitchy-jsonp@users.noreply.github.com> Date: Fri, 20 Sep 2019 09:07:49 -0700 Subject: [PATCH] Fix verification errors for quotes generated using AK's with SigScheme.Hash = SHA1 (#105) * Remove artificial requirement for composite digest to match PCR bank digest --- attest/eventlog.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/attest/eventlog.go b/attest/eventlog.go index 8e3fba5..8128d5f 100644 --- a/attest/eventlog.go +++ b/attest/eventlog.go @@ -195,9 +195,6 @@ func (a *AIKPublic) validate20Quote(quote Quote, pcrs []PCR, nonce []byte) error if !ok { return fmt.Errorf("quote was over PCR %d which wasn't provided", index) } - if len(digest) != hash.Size() { - return fmt.Errorf("mismatch pcr and quote hash, pcr hash length=%d, quote hash length=%d", len(digest), hash.Size()) - } h.Write(digest) }