aboutsummaryrefslogtreecommitdiff
path: root/include/tpm-v2.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 11:57:14 +0200
committerTom Rini <trini@konsulko.com>2018-05-25 20:12:57 -0400
commitbad8ff569d1d0a0eb20355845f27b4f6dad48b63 (patch)
tree458fde00c1b7835bae594e048eddfdd6428c7578 /include/tpm-v2.h
parent2dc6d97e1edd50634fa9f3dba4746d77cb1b9328 (diff)
downloadu-boot-bad8ff569d1d0a0eb20355845f27b4f6dad48b63.zip
u-boot-bad8ff569d1d0a0eb20355845f27b4f6dad48b63.tar.gz
u-boot-bad8ff569d1d0a0eb20355845f27b4f6dad48b63.tar.bz2
tpm: add TPM2_Clear command support
Add support for the TPM2_Clear command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/tpm-v2.h')
-rw-r--r--include/tpm-v2.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 29422ee..cf5dae0 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -143,4 +143,15 @@ u32 tpm2_startup(enum tpm2_startup_types mode);
*/
u32 tpm2_self_test(enum tpm2_yes_no full_test);
+/**
+ * Issue a TPM2_Clear command.
+ *
+ * @handle Handle
+ * @pw Password
+ * @pw_sz Length of the password
+ *
+ * @return code of the operation
+ */
+u32 tpm2_clear(u32 handle, const char *pw, const ssize_t pw_sz);
+
#endif /* __TPM_V2_H */