Jakub Czapiga | 1fa3da4 | 2021-12-06 09:01:50 +0000 | [diff] [blame] | 1 | # SPDX-License-Identifier: BSD-3-Clause |
| 2 | |
| 3 | config VBOOT_LIB |
| 4 | bool "Compile verified boot (vboot) library" |
Jakub Czapiga | 0ac5ed4 | 2022-02-17 14:41:24 +0100 | [diff] [blame] | 5 | default y if CHROMEOS |
Jakub Czapiga | 1fa3da4 | 2021-12-06 09:01:50 +0000 | [diff] [blame] | 6 | default n |
| 7 | help |
| 8 | This option enables compiling and building vboot libraries vboot_fw and tlcl. |
| 9 | |
| 10 | if VBOOT_LIB |
| 11 | |
Jakub Czapiga | 34ec32d | 2023-09-08 13:23:59 +0000 | [diff] [blame] | 12 | config 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 Czapiga | 1fa3da4 | 2021-12-06 09:01:50 +0000 | [diff] [blame] | 19 | config 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 | |
| 25 | config VBOOT_X86_SHA_EXT |
| 26 | bool "x86 SHA Extension" |
Jakub Czapiga | 0ac5ed4 | 2022-02-17 14:41:24 +0100 | [diff] [blame] | 27 | default y if CHROMEOS |
Jakub Czapiga | 1fa3da4 | 2021-12-06 09:01:50 +0000 | [diff] [blame] | 28 | 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 Compostella | 3dcd0d9 | 2023-11-27 15:01:28 -0800 | [diff] [blame] | 34 | config 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 Lin | 7040921 | 2023-01-31 15:09:24 +0800 | [diff] [blame] | 44 | config 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 Werner | 366ceee | 2024-01-05 10:40:43 -0800 | [diff] [blame^] | 52 | config 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 Czapiga | 1fa3da4 | 2021-12-06 09:01:50 +0000 | [diff] [blame] | 64 | endif |