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

11
Cargo.lock generated
View File

@@ -173,6 +173,7 @@ dependencies = [
"signal-hook",
"test_infra",
"thiserror",
"tpm",
"tracer",
"vm-memory",
"vmm",
@@ -1159,6 +1160,16 @@ dependencies = [
"syn",
]
[[package]]
name = "tpm"
version = "0.1.0"
dependencies = [
"anyhow",
"byteorder",
"log",
"thiserror",
]
[[package]]
name = "tracer"
version = "0.1.0"