mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
GetIdKeyDigest: Cut HCL header from raw report
This commit is contained in:
parent
cce2575d68
commit
50d3f3ca7f
@ -55,7 +55,7 @@ func GetIdKeyDigest(open vtpm.TPMOpenFunc) ([]byte, error) {
|
||||
return nil, fmt.Errorf("reading idx %x from TMP: %w", tpmReportIdx, err)
|
||||
}
|
||||
|
||||
report, err := newSNPReportFromBytes(reportRaw)
|
||||
report, err := newSNPReportFromBytes(reportRaw[lenHclHeader:])
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("creating snp report: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user