]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm-v2: add support for mapping algorithm names to algos
authorTim Harvey <tharvey@gateworks.com>
Sat, 25 May 2024 20:00:48 +0000 (13:00 -0700)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 27 May 2024 06:00:07 +0000 (09:00 +0300)
commit954b95e77ef0a857a0b5272e3e6c0e5318dc1208
tree975649948856f7a95d6b8c6bc43a68d8ce8f1ec0
parent57c601cd7b6268176c5e501452568aa0d607053f
tpm-v2: add support for mapping algorithm names to algos

replace tpm2_supported_algorithms with an array of structures
relating algorithm names, to TCG id's, digest length and mask values.

While at it fix the tpm2_algorithm_to_mask to return the proper value.

Cc: Eddie James <eajames@linux.ibm.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Fixes: 97707f12fdab ("tpm: Support boot measurements")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/tpm-v2.h
lib/efi_loader/efi_tcg2.c
lib/tpm-v2.c