[PATCH 1/2] Add HMAC-SHA-256

2020-10-27 Thread GlovePuppet
Required by TPM2 Extended Auth, cloned from sha1.c Signed-off-by: GlovePuppet --- include/u-boot/sha256.h | 13 + lib/sha256.c| 40 2 files changed, 53 insertions(+) diff --git a/include/u-boot/sha256.h b/include/u-boot/sha256.h

[PATCH 2/2] Add TPM2 Unseal command and supporting functions

2020-10-27 Thread GlovePuppet
Unseals a loaded object, identified by handle, and returns data at a memory location or in an environment variable Caveats -The PolicyPCR command only supports one PCR -The auth request code only supports one handle Signed-off-by: GlovePuppet --- cmd/tpm-v2.c| 60 +++ drivers