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
This commit is contained in:
Tom D 2019-09-20 09:07:49 -07:00 committed by GitHub
parent 6fb354c252
commit 0f650714d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}