tpm: seal/unseal for TPM 2.0
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 30 May 2015 05:09:04 +0000 (08:09 +0300)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:01:21 +0000 (01:01 +0200)
commit954650efb79f99d5c817c121bb0a7c6c53362048
tree12da28fd54da6f329cdfe83b42e65a0479313b0e
parentfe351e8d4eec801beeba1df1f36d76316be6f1a2
tpm: seal/unseal for TPM 2.0

Added tpm_trusted_seal() and tpm_trusted_unseal() API for sealing
trusted keys.

This patch implements basic sealing and unsealing functionality for
TPM 2.0:

* Seal with a parent key using a 20 byte auth value.
* Unseal with a parent key using a 20 byte auth value.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c
include/keys/trusted-type.h
include/linux/tpm.h