path: root/include/keys
diff options
authorSumit Garg <>2019-10-16 10:44:55 +0530
committerJarkko Sakkinen <>2019-11-12 21:45:37 +0200
commit2e19e10131a08dc65079c755fb6e8af936bfedbd (patch)
tree2d0b6302ac56d77fc57fab16a150a191fd2f61b2 /include/keys
parent47f9c279689107f306fff506753971a39a8a7ffc (diff)
KEYS: trusted: Move TPM2 trusted keys code
Move TPM2 trusted keys code to trusted keys subsystem. The reason being it's better to consolidate all the trusted keys code to a single location so that it can be maintained sanely. Also, utilize existing tpm_send() exported API which wraps the internal tpm_transmit_cmd() API. Suggested-by: Jarkko Sakkinen <> Signed-off-by: Sumit Garg <> Reviewed-by: Jarkko Sakkinen <> Tested-by: Jarkko Sakkinen <> Signed-off-by: Jarkko Sakkinen <>
Diffstat (limited to 'include/keys')
1 files changed, 7 insertions, 0 deletions
diff --git a/include/keys/trusted_tpm.h b/include/keys/trusted_tpm.h
index 7b9d7b450a9e..a56d8e1298f2 100644
--- a/include/keys/trusted_tpm.h
+++ b/include/keys/trusted_tpm.h
@@ -40,6 +40,13 @@ int TSS_checkhmac1(unsigned char *buffer,
int trusted_tpm_send(unsigned char *cmd, size_t buflen);
int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce);
+int tpm2_seal_trusted(struct tpm_chip *chip,
+ struct trusted_key_payload *payload,
+ struct trusted_key_options *options);
+int tpm2_unseal_trusted(struct tpm_chip *chip,
+ struct trusted_key_payload *payload,
+ struct trusted_key_options *options);
#define TPM_DEBUG 0