tpm.dev.tutorials/PythonExamples
Dimitar Tomov ada8cf12bf Minor fixes
Signed-off-by: Dimitar Tomov <dimi@tpm.dev>
2022-04-25 22:53:57 +03:00
..
quote.md Added pytss python tutorials for quote and get_random 2022-04-25 22:53:57 +03:00
quote.py Added pytss python tutorials for quote and get_random 2022-04-25 22:53:57 +03:00
randomnumber.md Minor fixes 2022-04-25 22:53:57 +03:00
randomnumber.py Added pytss python tutorials for quote and get_random 2022-04-25 22:53:57 +03:00
README.md Minor fixes 2022-04-25 22:53:57 +03:00

Python Examples with PYTSS

Now that tpm2_pytss is stable I've started collecting worked examples for some common situations, eg: reading PCRs, quotes etc.

tpm_pytss is here: https://github.com/tpm2-software/tpm2-pytss

Running the examples

First you will need a TPM, either a real TPM or the IBM SW TPM is a good substitute.

Each example can be run just by typing python3 example.py

Available Examples

Each example has an accompanying description as markdown file, plus annotated code.