mirror of
https://github.com/google/go-attestation.git
synced 2025-04-24 13:05:51 +00:00
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:
parent
6fb354c252
commit
0f650714d9
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user