Skip to content
Snippets Groups Projects
Commit 346cee3a authored by Ruchika Gupta's avatar Ruchika Gupta Committed by Heinrich Schuchardt
Browse files

efi_loader: Fix spec ID event creation


TCG EFI Protocol Specification defines the number_of_algorithms
field in spec ID event to be equal to the number of active
algorithms supported by the TPM device. In current implementation,
this field is populated with the count of all algorithms supported
by the TPM which leads to incorrect spec ID event creation.

Similarly, the algorithm array in spec ID event should be a variable
length array with length being equal to the number_of_algorithms field.
In current implementation this is defined as a fixed length array
which has been fixed.

Signed-off-by: default avatarRuchika Gupta <ruchika.gupta@linaro.org>
CC: Masahisa Kojima <masahisa.kojima@linaro.org>
CC: Ilias Apalodimas <ilias.apalodimas@linaro.org>
CC: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 269d2d14
No related branches found
No related tags found
No related merge requests found
Pipeline #9258 passed with stages
in 50 minutes and 11 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment