summaryrefslogtreecommitdiff
path: root/doc/develop/bootstd
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2024-12-24 08:01:07 -0800
committerIlias Apalodimas <[email protected]>2025-01-07 15:45:51 +0200
commit27891e85f3cb3912c737bf36276f830d9d02d6c8 (patch)
tree74f3c92e706c49b75f905a8f71ae7460c79d0240 /doc/develop/bootstd
parent9f9797aaa8d4ea22a682e6cd28a9b3e5638d132f (diff)
tpm: add flag in hash_algo_list and API to check if algorithm is supported
Add a bool var into hash_algo_list to indicate whether the algorithm is supported or not and move the IS_ENABLED to only cover this var. So that we can have the name, hash, mask and size no matter the digest kconfigs are enabled or not. In before, tpm2_algorithm_to_len() and tcg2_algorithm_to_mask() are used to identify an unsupported algorithm when they return 0. It is not the case now when hash_algo_list always provides algorithm size and mask, thus a new API is introduced to check if an algorithm is supported by U-Boot. Suggested-by: Ilias Apalodimas <[email protected]> Signed-off-by: Raymond Mao <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'doc/develop/bootstd')
0 files changed, 0 insertions, 0 deletions