Skip to content

virtee/sev-snp-measure-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sev-snp-measure-go

This tool is a direct port of virtee/sev-snp-measure. Motivation to write this port is to integrate measurement calculation into Go tools.

The following limitations apply to this port atm:

  • only supports SNP
  • only measures the initial firmware

What this port does that virtee/sev-snp-measure doesn't do:

  • parse OVMF metadata from a OVMF binary. This can be used (together with OVMFHash) to calculate measurements without having access to the binary.

If you need more features or find a bug please open an issue. For features that virtee/sev-snp-measure provides, addition should be quick.

Pull requests are welcome!

Development

Build:

go build -o sev-snp-measure ./sevsnpmeasure/

Run unit tests:

go test ./...

Run e2e tests:

go test --tags=e2e ./e2e --expected-values data.json --ovmf ovmf_img.fd

Run linter:

golangci-lint run ./...

Used by

This tool was originally developed for Constellation to verify launch measurements on AWS's SNP instances.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages