Skip to content
Snippets Groups Projects
Commit be6c1529 authored by Reinhard Pfau's avatar Reinhard Pfau Committed by Andy Fleming
Browse files

tpm: add AUTH1 cmds for LoadKey2 and GetPubKey


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: default avatarReinhard Pfau <reinhard.pfau@gdsys.cc>
Signed-off-by: default avatarDirk Eibach <dirk.eibach@gdsys.cc>
Acked-by: default avatarChe-Liang Chiou <clchiou@chromium.org>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent baa8841d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment