google / go-tpm

Apache License 2.0
553 stars 159 forks source link

Missing ExtraData in Quote #326

Open iolivergithub opened 1 year ago

iolivergithub commented 1 year ago

The current definition of Quote is (line 991) func Quote(rw io.ReadWriter, signingHandle tpmutil.Handle, signerAuth, unused string, toQuote []byte, sel PCRSelection, sigAlg Algorithm) ([]byte, *Signature, error) { // TODO: Remove "unused" parameter on next breaking change.

I'm assuming that toQuote []byte is used for any extra data?

However the resulting field ExtraData in AttestationQuoteInfo contains a nil (or null when rendered into JSON).