]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: use more than sha256 on pcr_extend
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 26 Nov 2020 21:07:22 +0000 (23:07 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 3 Dec 2020 20:22:40 +0000 (21:22 +0100)
commite926136bb29cb9dda00f1b8960db963b6e97124b
tree6125a0fcda8cb9d079013084754843f21616ce51
parentfc364424ac992ddae5779ae3ca8ddcd006a6ea27
tpm: use more than sha256 on pcr_extend

The current tpm2_pcr_extend is hardcoded using SHA256.
Let's make the actual command to the TPM2 configurable so we can support
a wider range of algorithms and keep the current command line as-is i.e
limited to SHA256 only

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/tpm-v2.c
include/tpm-v2.h
lib/tpm-v2.c