Update tpm.go docs to match relative for AttestPlatform (#426)
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Test / test-linux (1.24.x) (push) Has been cancelled
Test / test-linux-tpm12 (1.24.x) (push) Has been cancelled
Test / test-macos (1.24.x) (push) Has been cancelled
Test / test-windows (1.24.x) (push) Has been cancelled

#404 Added support for discovery of supported PCR banks, but the method comment for AttestPlatform still references a using static list of SHA1 and SHA256 PCRs.
This commit is contained in:
Liam Murphy 2025-05-15 03:14:49 +10:00 committed by GitHub
parent 8cf7d46d70
commit 3e297cd27c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -581,9 +581,9 @@ type PlatformAttestConfig struct {
// AttestPlatform computes the set of information necessary to attest the
// state of the platform. For TPM 2.0 devices, AttestPlatform will attempt
// to read both SHA1 & SHA256 PCR banks and quote both of them, so bugs in
// to read all supported PCR banks and quote all of them, so bugs in
// platform firmware which break replay for one PCR bank can be mitigated
// using the other.
// using any other.
// The provided config, if not nil, can be used to configure aspects of the
// platform attestation.
func (t *TPM) AttestPlatform(ak *AK, nonce []byte, config *PlatformAttestConfig) (*PlatformParameters, error) {