commit | f1811f09fa0310d31350a171584b0a966d057f25 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Sun Aug 28 11:02:31 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Sun Aug 28 11:10:05 2016 -0700 |
tree | 716f43f2d954e98d189fffac2cb5fdd5430240e0 | |
parent | 06d64244a68c8e4943046131177688081cda5b2e [diff] |
Add unit test for marshal-UINT16 function. There are 4 tests in this set: * a known-good case that mirrors a successful call * a case where serializing data to the destination buffer would case it to write beyond the end of the buffer * a simiar case but before the beginning of the buffer * another for a somewhat odd situation with the 'rc' parameter that is related to state stored in the sys context structure 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.