commit | 75c5ef8d166234407bdf7da219bc95564564cf50 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Thu Sep 29 10:07:28 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Thu Sep 29 11:15:31 2016 -0700 |
tree | ae99083f5c490866dd1925239a4adfc5d6f50214 | |
parent | c4335c780d0986729bc66594b51d993b2aabd785 [diff] |
CheckOverflow: Move sanity checks for context state from (un)?marshall functions to checkoverflow.c This reduces redundant code and adds an additional check to ensure that the subsequent call to CheckOverflow won't underflow. Additionally this patch removes the failing test case for the underflow condition above and adds tests for the CheckDataPointers cases. These include a test that replaces the underflow test. The logic in the (un)?marshal code is also flattened for simplicity. It's likely best to combine these functions but that's a larger effort. This is just a small fix to the failing CheckOverflow tests. 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.