You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last parameter, sigAlg, is an Algorithm which corresponds to TPM_ALG in the spec, but it should be some type that corresponds to TPMT_SIG_SCHEME in the spec. As written, the only parameter that can be passed to Quote successfully is AlgNull (meaning you have to set the scheme on the AK when you create it).
Yeah, I don't see how to fix this without a frustrating breaking change to the API.
Long term, I would love to reflect the spec into the API. In the short term, it may be good to fix this and eat the breaking change, or simply document that it only supports AlgNull and that you have to create an AK with the signing scheme that you want.
go-tpm/tpm2/tpm2.go
Line 936 in ac5b427
The last parameter,
sigAlg
, is anAlgorithm
which corresponds toTPM_ALG
in the spec, but it should be some type that corresponds toTPMT_SIG_SCHEME
in the spec. As written, the only parameter that can be passed toQuote
successfully isAlgNull
(meaning you have to set the scheme on the AK when you create it).This is what the test does:
go-tpm/tpm2/test/tpm2_test.go
Lines 1258 to 1279 in ac5b427
The text was updated successfully, but these errors were encountered: