mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

TPM Emulator is a software-based TPM and MTM emulator. This TPM Emulator recipe creates a static library that is cross-compiled against MiniOS, Xen, LWIP, Newlib, PolarSSL, and the stubdom-specific GMP headers and subsequently used during the cross-compilation and linking of the Xen vTPM and vTPM Manager stubdomains. The current Xen source code is hardcoded to fetch a specific version of this package. The patch files originate from the Xen/stubdom source tree. This recipe provides the flexibility to change version or modify the patches. Signed-off-by: Kurt Bodiker <kurt.bodiker@braintrust-us.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 lines
550 B
Diff
11 lines
550 B
Diff
--- a/tpm/tpm_cmd_handler.c.orig 2017-04-27 13:37:14.408000000 +0200
|
|
+++ b/tpm/tpm_cmd_handler.c 2017-04-27 13:39:53.585000000 +0200
|
|
@@ -3397,6 +3397,7 @@
|
|
sizeof(rsp->auth2->nonceOdd.nonce));
|
|
tpm_hmac_update(&hmac, (BYTE*)&rsp->auth2->continueAuthSession, 1);
|
|
tpm_hmac_final(&hmac, rsp->auth2->auth);
|
|
+ /* fall-thru */
|
|
case TPM_TAG_RSP_AUTH1_COMMAND:
|
|
tpm_hmac_init(&hmac, rsp->auth1->secret, sizeof(rsp->auth1->secret));
|
|
tpm_hmac_update(&hmac, rsp->auth1->digest, sizeof(rsp->auth1->digest));
|