tpm: Add library module

Add structures and related methods to process Ctrl requests and responses
from swtpm to tpm library.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com>
This commit is contained in:
Praveen K Paladugu
2022-09-08 06:02:26 +00:00
committed by Rob Bradford
parent 2e2ce47271
commit e3213c8a79
4 changed files with 458 additions and 0 deletions

12
tpm/Cargo.toml Normal file
View File

@@ -0,0 +1,12 @@
[package]
name = "tpm"
edition = "2021"
authors = ["Microsoft Authors"]
license = "Apache-2.0"
version = "0.1.0"
[dependencies]
anyhow = "1.0.56"
byteorder = "1.4.3"
log = "0.4.14"
thiserror = "1.0.30"