Commit Message

This patch requires Che-Liang Chious TPM library patch to be applied first.
(published 2013-02-28 on ML as "[PATCH v3] tpm: Add TPM command library")
Extend the tpm library with support for single authorized (AUTH1) commands
as specified in the TCG Main Specification 1.2. (The internally used helper
functions are implemented in a way that they could also be used for double
authorized commands if someone needs it.)
Provide enums with the return codes from the TCG Main specification.
For now only a single OIAP session is supported.
OIAP authorized version of the commands TPM_LoadKey2 and TPM_GetPubKey are
provided. Both features are available using the 'tpm' command, too.
Authorized commands are enabled with CONFIG_TPM_AUTH_SESSIONS. (Note that
this also requires CONFIG_SHA1 to be enabled.)
Signed-off-by: Reinhard Pfau <pfau@gdsys.de>
---
README | 14 ++
common/cmd_tpm.c | 93 +++++++++++++++
include/tpm.h | 174 +++++++++++++++++++++++++++
lib/tpm.c | 348 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
4 files changed, 628 insertions(+), 1 deletions(-)