Skip to content

QueryTpmAttestationReport() does not get the proper PCR digest #1977

@arijit8972

Description

@arijit8972

I am providing a sample code that I have written,

query := types.QueryTpmAttestationReport{This: host.Reference()}
attestationReport, err := methods.QueryTpmAttestationReport(ctx, vmwareClient.RoundTripper, &query)
tpmPCRValues := tpmAttestationReport.Returnval.TpmPcrValues[0]
fmt.Printf("VMware host attestation report : %v\n", tpmPCRValues)

Although I see that it is a SHA 256 digest, I am getting just 3 bytes as part of the digest value

Sample Output,

{{{} SHA256 [45 57 48] } 0}

I am expecting a 32 byte digest value in case the digest type is SHA 256. Am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions