From 1643d281b554ec9fafa924eba91d5b8186433d0a Mon Sep 17 00:00:00 2001 From: Denis Karch Date: Wed, 24 Apr 2019 14:24:58 -0700 Subject: [PATCH] Fix call to NewQuoteInfo --- attest/tpm_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attest/tpm_windows.go b/attest/tpm_windows.go index c3bb167..4f01b29 100644 --- a/attest/tpm_windows.go +++ b/attest/tpm_windows.go @@ -278,7 +278,7 @@ func (k *Key) quote12(tpm io.ReadWriter, nonce []byte) (*Quote, error) { // Construct and return TPM_QUOTE_INFO // Returning TPM_QUOTE_INFO allows us to verify the Quote at a higher resolution // and matches what go-tspi returns. - quote, err := tpm1.NewQuoteInfo(pcrc, nonce) + quote, err := tpm1.NewQuoteInfo(pcrc, selectedPCRs[:], nonce) if err != nil { return nil, fmt.Errorf("failed to construct Quote Info: %v", err) }