Skip to content
Commit 954b95e7 authored by Tim Harvey's avatar Tim Harvey Committed by Ilias Apalodimas
Browse files

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: 97707f12 ("tpm: Support boot measurements")
Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
Tested-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 57c601cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment