commit | a10b0c9d4418e55f0c67ff7e104aeb71bee1c236 | [log] [tgz] |
---|---|---|
author | wcarthur1 <will.c.arthur@intel.com> | Thu Apr 14 04:25:03 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Fri Apr 22 12:32:24 2016 -0700 |
tree | 25759d8415e06341d378e150ead85bfa34d34cb1 | |
parent | dd3765b887eddb500666f7a4ab9475061cc3e957 [diff] |
Fixed bug with DEBUG_SOCKETS: when a command code is not valid, the code could cause a seg fault by looking for a string outside the correct range. Found in in the first test in TestRM. Pushed code to check for range of command codes and output hex command code if not in range into strTpmCommandCode function.
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.