commit | d87165e8c0676f970e3a09dfd733a3850c0dc676 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Wed Aug 31 10:42:47 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Wed Aug 31 10:42:47 2016 -0700 |
tree | dc92e5d962d2ef2060cc590640d3f43b17aae4ef | |
parent | 5f0d4e44664fa0b5e488ddf15406a18ff56c60ab [diff] |
Tss2_Sys_Initialize: Factor the initialization of data buffer pointers into a separate function (InitSysContextPtrs). These pointers are only initialized once so it made a certain amount of sense to just do this in the main context initialization function. But when we start integrating unit tests for the marshalling functions it's nice to have a function to call that short cuts all of the consistency checks in Tss2_Sys_Initialize. With this simple function we can initialize all of the pointers to the data regions where data is marshalled and then just call the relevant marshalling functions without having to do a pile of setup. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
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.