[PATCH 1/3 v2] tpm: Change response length of tpm2_get_capability()

Simon Glass sjg at chromium.org
Wed Nov 11 15:32:05 CET 2020


On Thu, 5 Nov 2020 at 14:58, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> For implementing the EFI_TCG2_PROTOCOL we need the count field returned by
> the TPM when reading capabilities via tpm2_get_capability().
>
> Adjust the implementation of the 'tpm2 get_capability' command accordingly.
>
> Suggested-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
> Changes since v1:
> - Unconditionally get the extra 4 bytes on the response and account for them
>   in do_tpm_get_capability()
>  cmd/tpm-v2.c | 4 ++--
>  lib/tpm-v2.c | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list