diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2021-09-03 04:55:51 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-04 13:03:57 +0300 |
commit | db3ed2cf9c67ed6a0da0bab6e43edae90ced4bf2 (patch) | |
tree | 5d35684be83333c9d55aa5182008e63dfab6f11a /include | |
parent | 580d7242b14064f57a9fc392a2a2ce23e73b19e8 (diff) | |
download | u-boot-db3ed2cf9c67ed6a0da0bab6e43edae90ced4bf2.tar.xz |
efi_loader: fix boot_service_capability_min calculation
TCG EFI Protocol Specification requires to the input
ProtocolCapability.Size < size of the EFI_TCG2_BOOT_SERVICE_CAPABILITY
up to and including the vendor ID field.
Current implementation does different calculation, let's fix it.
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_tcg2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_tcg2.h b/include/efi_tcg2.h index b6b958da51..a8c43e415f 100644 --- a/include/efi_tcg2.h +++ b/include/efi_tcg2.h @@ -127,8 +127,8 @@ struct efi_tcg2_boot_service_capability { efi_tcg_event_algorithm_bitmap active_pcr_banks; }; +/* up to and including the vendor ID (manufacturer_id) field */ #define boot_service_capability_min \ - sizeof(struct efi_tcg2_boot_service_capability) - \ offsetof(struct efi_tcg2_boot_service_capability, number_of_pcr_banks) #define TCG_EFI_SPEC_ID_EVENT_SIGNATURE_03 "Spec ID Event03" |