blob: 6d71a7ca50736cbae1447d24fe595bd934d13afb [file] [log] [blame]
Jakub Czapiga1fa3da42021-12-06 09:01:50 +00001# SPDX-License-Identifier: BSD-3-Clause
2
3config VBOOT_LIB
4 bool "Compile verified boot (vboot) library"
Jakub Czapiga0ac5ed42022-02-17 14:41:24 +01005 default y if CHROMEOS
Jakub Czapiga1fa3da42021-12-06 09:01:50 +00006 default n
7 help
8 This option enables compiling and building vboot libraries vboot_fw and tlcl.
9
10if VBOOT_LIB
11
Jakub Czapiga34ec32d2023-09-08 13:23:59 +000012config VBOOT_CBFS_INTEGRATION
13 bool "Enable vboot and CBFS integration"
14 default n
15 depends on CBFS_VERIFICATION
16 help
17 Say yes to request reboot on CBFS file hash mismatch in non-recovery mode.
18
Jakub Czapiga1fa3da42021-12-06 09:01:50 +000019config VBOOT_TPM2_MODE
20 bool "TPM2 Mode"
21 default y
22 help
23 This option enables TPM 2.0 support in vboot. Disabling it allows using TPM 1.2.
24
25config VBOOT_X86_SHA_EXT
26 bool "x86 SHA Extension"
Jakub Czapiga0ac5ed42022-02-17 14:41:24 +010027 default y if CHROMEOS
Jakub Czapiga1fa3da42021-12-06 09:01:50 +000028 default n
29 depends on ARCH_X86
30 help
31 This option enables SHA256 implementation using x86 SHA processor extension
32 instructions: sha256msg1, sha256msg2, sha256rnds2.
33
Jeremy Compostella3dcd0d92023-11-27 15:01:28 -080034config VBOOT_X86_RSA_ACCELERATION
35 bool "Use SSE2 instructions for RSA signature verification"
36 default y if CHROMEOS
37 default n
38 depends on ARCH_X86
39 help
40 Use paddq, pmuludq, psrlq, punpckldq and punpcklqdq SSE2
41 instructions to accelerate the modulus exponentiation which
42 is part of the RSA signature verification process.
43
Yidi Lin70409212023-01-31 15:09:24 +080044config VBOOT_SHA_ARMV8_CE
45 bool "SHA256 implementation using ARMv8 Crypto Extension"
46 default y if CHROMEOS
47 default n
48 depends on ARCH_ARM64
49 help
50 This option enables SHA256 implementation using ARMv8 Crypto Extension.
51
Julius Werner366ceee2024-01-05 10:40:43 -080052config VBOOT_ARM64_RSA_ACCELERATION
53 bool "Use arm64 SIMD instructions to accelerate RSA signature verification"
54 default y
55 depends on ARCH_ARM64
56 help
57 Use arm64 SIMD instructions (NEON) to parallelize two multiplications
58 in the modulus exponentiation algorithm, which speeds up RSA signature
59 verification in vboot. This is supported on all arm64 CPUs so you'd
60 generally always want this enabled, unless your SoC is overriding
61 vboot's hwcrypto API with its own crypto accelerator IP instead (or
62 you're trying really hard to save on code size).
63
Jakub Czapiga1fa3da42021-12-06 09:01:50 +000064endif