tpm: Require a digest source when extending the PCR
This feature is used for measured boot, so we can add a log entry to the TCPA with some information about where the digest comes from. It is not currently supported in the TPM drivers, but add it to the API so that code which expects it can signal its request. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Ilias Apalodimas
parent
67fe8cc001
commit
a557d258c6
@@ -81,14 +81,16 @@ u32 tpm_nv_write_value(struct udevice *dev, u32 index, const void *data,
|
||||
*
|
||||
* @param dev TPM device
|
||||
* @param index index of the PCR
|
||||
* @param in_digest 160-bit value representing the event to be
|
||||
* @param in_digest 160/256-bit value representing the event to be
|
||||
* recorded
|
||||
* @param out_digest 160-bit PCR value after execution of the
|
||||
* @param size size of digest in bytes
|
||||
* @param out_digest 160/256-bit PCR value after execution of the
|
||||
* command
|
||||
* @param name digest source, used for log output
|
||||
* Return: return code of the operation
|
||||
*/
|
||||
u32 tpm_pcr_extend(struct udevice *dev, u32 index, const void *in_digest,
|
||||
void *out_digest);
|
||||
uint size, void *out_digest, const char *name);
|
||||
|
||||
/**
|
||||
* Issue a TPM_PCRRead command.
|
||||
|
||||
Reference in New Issue
Block a user