diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2015-05-30 01:09:04 -0400 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2015-10-18 19:01:21 -0400 |
commit | 954650efb79f99d5c817c121bb0a7c6c53362048 (patch) | |
tree | 12da28fd54da6f329cdfe83b42e65a0479313b0e /include/keys | |
parent | fe351e8d4eec801beeba1df1f36d76316be6f1a2 (diff) |
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>
Diffstat (limited to 'include/keys')
-rw-r--r-- | include/keys/trusted-type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/keys/trusted-type.h b/include/keys/trusted-type.h index c91651f91687..f91ecd9d1bb1 100644 --- a/include/keys/trusted-type.h +++ b/include/keys/trusted-type.h | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #define MIN_KEY_SIZE 32 | 17 | #define MIN_KEY_SIZE 32 |
18 | #define MAX_KEY_SIZE 128 | 18 | #define MAX_KEY_SIZE 128 |
19 | #define MAX_BLOB_SIZE 320 | 19 | #define MAX_BLOB_SIZE 512 |
20 | #define MAX_PCRINFO_SIZE 64 | 20 | #define MAX_PCRINFO_SIZE 64 |
21 | 21 | ||
22 | struct trusted_key_payload { | 22 | struct trusted_key_payload { |