summaryrefslogtreecommitdiff
path: root/src/security/vboot/Kconfig
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2023-11-27 14:56:29 -0800
committerYu-Ping Wu <yupingso@google.com>2023-12-27 05:04:20 +0000
commitb6dfcb7d1848a5731a5e3bf732fcfdf07d4ed00a (patch)
tree122d0ffa0cfdab93cf6daffdf64e5041aaa6d7f5 /src/security/vboot/Kconfig
parent0c8e54100b4089e5b09da0aafed3f7cc624f7928 (diff)
vboot: add VBOOT_X86_RSA_ACCELERATION config
Add `VBOOT_X86_RSA_ACCELERATION' Kconfig option to enable SSE2 instruction set implementation of modulus exponentiation which is part of the RSA signature verification process. BUG=b:312709384 TEST=Able to use SSE2 accelerated implementation on rex0 Change-Id: Ib6e39eb9f592f36ad3dca76c8eaf2fe334704265 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79289 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/vboot/Kconfig')
-rw-r--r--src/security/vboot/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig
index 9d90d1ee92..56e94d52ae 100644
--- a/src/security/vboot/Kconfig
+++ b/src/security/vboot/Kconfig
@@ -301,6 +301,15 @@ config VBOOT_X86_SHA256_ACCELERATION
Use sha256msg1, sha256msg2, sha256rnds2 instruction to accelerate
SHA hash calculation in vboot.
+config VBOOT_X86_RSA_ACCELERATION
+ bool "Use SSE2 instructions for RSA signature verification"
+ default n
+ depends on ARCH_X86
+ help
+ Use paddq, pmuludq, psrlq, punpckldq and punpcklqdq SSE2
+ instructions to accelerate the modulus exponentiation which
+ is part of the RSA signature verification process.
+
config VBOOT_ARMV8_CE_SHA256_ACCELERATION
bool "Use ARMv8 Crypto Extension for sha256 hash calculation"
default y if CHROMEOS