commit | 7b10eeba8876fbb92182fc256aa0a34094269d46 | [log] [tgz] |
---|---|---|
author | wcarthur <will.c.arthur@intel.com> | Thu Dec 03 16:40:41 2015 -0500 |
committer | wcarthur <will.c.arthur@intel.com> | Thu Dec 03 16:40:41 2015 -0500 |
tree | 7556195d6e68a72c1854a61d264dc9734b6bc173 | |
parent | bad1755977056d55447eb407123ce53ef577d560 [diff] |
Changed unmarshalling of TPM2B_CREATION_DATA. Before it was unmarshalled as a simple TPM2B, but should have been a complex TPM2B. Added routines for unmarshalling nested TPM2B's--this routine doesn't check the size field. Changed Marshal_Simple_TPM2B to return INSUFFIENT_BUFFER instead of INSUFFICIENT_CONTEXT. Added size check to Unmarshal_Simple_TPM2B routine and updated all appropriate test and resource manager code.
This stack consists of the following layers from top to bottom:
Since the FAPI and ESAPI haven't been implemented yet, this repository only contains the SAPI and layers below it, plus a test application for exercising the SAPI.
The test application, tpmclient, tests many of the commands against the TPM 2.0 simulator. The tpmclient application can be altered and used as a sandbox to test and develop any TPM 2.0 command sequences, and provides an excellent development and learning vehicle.
TPM 2.0 specifications can be found at Trusted Computing Group.