Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virtee/sev-snp-measure-go
https://github.com/virtee/sev-snp-measure-go
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/virtee/sev-snp-measure-go
- Owner: virtee
- License: apache-2.0
- Created: 2023-08-16T20:34:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T08:07:18.000Z (2 months ago)
- Last Synced: 2024-11-28T08:30:28.375Z (2 months ago)
- Language: Go
- Size: 2.39 MB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sev-snp-measure-go
This tool is a direct port of [virtee/sev-snp-measure](https://github.com/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 firmwareWhat this port does that [virtee/sev-snp-measure](https://github.com/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](https://github.com/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 ./...
```# Style
Please make sure that the content of files follows this order (sorted from top to bottom):
- Constants and variables
- Exported functions
- Exported types followed by their new funcs, exported methods, and unexported methods, i.e.
- Unexported functions
- Unexported types and their methods# Used by
This tool was originally developed for [Constellation](https://github.com/edgelesssys/constellation) to verify launch measurements on AWS's SNP instances.