[PATCH v3 08/11] tpm: Add an implementation of define_space
Ilias Apalodimas
ilias.apalodimas at linaro.org
Mon Jan 25 09:36:32 CET 2021
On Sat, Jan 23, 2021 at 10:26:04AM -0700, Simon Glass wrote:
> Add support for this so that the TPM can be set up for use with
> Chromium OS verified boot.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
[...]
> + /*
> + * Fill the command structure starting from the first buffer:
> + * - the password (if any)
> + */
> + ret = pack_byte_string(command_v2, sizeof(command_v2), "s",
> + offset, nv_policy, nv_policy_size);
> + offset += nv_policy_size;
Do we need to increase offsetr here? It doesn't seem to be used afterwards.
> + if (ret)
> + return TPM_LIB_ERROR;
> +
> + return tpm_sendrecv_command(dev, command_v2, NULL, NULL);
> +}
> +
> u32 tpm2_pcr_extend(struct udevice *dev, u32 index, u32 algorithm,
> const u8 *digest, u32 digest_len)
> {
> --
> 2.30.0.280.ga3ce27912f-goog
>
More information about the U-Boot
mailing list