Metadata-Version: 2.1
Name: sev-snp-measure
Version: 0.0.1
Summary: Calculate expected measurement of an AMD SEV-SNP guest VM for confidential computing
Home-page: https://github.com/IBM/sev-snp-measure
Author: Dov Murik
Author-email: dov.murik1@il.ibm.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/IBM/sev-snp-measure/issues
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# sev-snp-measure

## Scope

Calculate expected measurement of an AMD SEV-SNP guest VM for confidential
computing.

## Installation

### From pip

Install from pip:

    pip install sev-snp-measure

This installs the `sevsnpmeasure` package and a sev-snp-measure command-line
script.

### From Github

Clone the Github repo and run the script directly from the local directory:

    git clone https://github.com/IBM/sev-snp-measure.git
    cd sev-snp-measure
    ./sev-snp-measure.py --help

## Usage

```
$ sev-snp-measure --help
usage: sev-snp-measure [-h] --vcpus VCPUS --ovmf OVMF [--kernel KERNEL] [--initrd INITRD] [--append APPEND]

Calculate AMD SEV-SNP launch measurement

optional arguments:
  -h, --help       show this help message and exit
  --vcpus VCPUS    Number of vcpus
  --ovmf OVMF      OVMF file to calculate hash from
  --kernel KERNEL  kernel file to calculate hash from
  --initrd INITRD  initrd file to calculate hash from (use with --kernel)
  --append APPEND  the kernel command line to calculate hash from (use with --kernel)
```

For example:

    sev-snp-measure --vcpus=1 --ovmf=OVMF.fd --kernel=vmlinuz --initrd=initrd.img --append="console=ttyS0 loglevel=7"

## Notes

If you have any questions or issues you can create a new [issue
here](https://github.com/IBM/sev-snp-measure/issues/new)

Pull requests are welcome!

## License

Apache 2.0 license.


