diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-05-15 11:57:15 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-25 20:12:57 -0400 |
commit | 6284be5a904ef808c939c3d926ee720d1b988264 (patch) | |
tree | 64d3c64632b6b8b069aafa45b34f23a4b49ae4ba /include/tpm-v2.h | |
parent | bad8ff569d1d0a0eb20355845f27b4f6dad48b63 (diff) |
tpm: add TPM2_PCR_Extend command support
Add support for the TPM2_PCR_Extend 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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h index cf5dae0a82..25bb15af39 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -154,4 +154,14 @@ u32 tpm2_self_test(enum tpm2_yes_no full_test); */ u32 tpm2_clear(u32 handle, const char *pw, const ssize_t pw_sz); +/** + * Issue a TPM2_PCR_Extend command. + * + * @index Index of the PCR + * @digest Value representing the event to be recorded + * + * @return code of the operation + */ +u32 tpm2_pcr_extend(u32 index, const uint8_t *digest); + #endif /* __TPM_V2_H */ |