]> git.baikalelectronics.ru Git - uboot.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)
commite5bd485b1056b4098d84987e6ec55fd5f8ee629f
tree6125a0fcda8cb9d079013084754843f21616ce51
parent32ae1f417a2802e242b619cf865bbce9dfdf70b7
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