Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Apr 16, 2024
1 parent 8fb087d commit 2129781
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/attestation/gcp/snp/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func getInstanceInfo(_ context.Context, _ io.ReadWriteCloser, extraData []byte)
}
defer device.Close()

report, certs, err := sevclient.GetRawExtendedReportAtVmpl(device, [64]byte(extraData64), 0)
report, certs, err := sevclient.GetRawExtendedReportAtVmpl(device, extraData64, 0)
if err != nil {
return nil, fmt.Errorf("getting extended report: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/attestation/gcp/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (v *Validator) getTrustedKey(ctx context.Context, attDoc vtpm.AttestationDo
var extraData64 [64]byte
copy(extraData64[:], extraData)

if err := v.reportValidator.validate(attDoc, (*x509.Certificate)(&v.cfg.AMDSigningKey), (*x509.Certificate)(&v.cfg.AMDRootKey), [64]byte(extraData64), v.cfg, v.log); err != nil {
if err := v.reportValidator.validate(attDoc, (*x509.Certificate)(&v.cfg.AMDSigningKey), (*x509.Certificate)(&v.cfg.AMDRootKey), extraData64, v.cfg, v.log); err != nil {
return nil, fmt.Errorf("validating SNP report: %w", err)
}

Expand Down

0 comments on commit 2129781

Please sign in to comment.