diff options
author | Xiaokang Qian <xiaokang.qian@arm.com> | 2023-01-29 07:22:43 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-02-08 16:54:57 +0100 |
commit | 513e103f14e8473fb6810aa216ab3fb7b724ca5d (patch) | |
tree | d3f0c0b8195b4bb22d611c697a28a33d94c791e5 /crypto/armcap.c | |
parent | S390x: Support ME and CRT offloading (diff) | |
download | openssl-513e103f14e8473fb6810aa216ab3fb7b724ca5d.tar.xz openssl-513e103f14e8473fb6810aa216ab3fb7b724ca5d.zip |
Apply aes-gcm unroll8+eor3 optimization patch to Neoverse V2
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20184)
Diffstat (limited to '')
-rw-r--r-- | crypto/armcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/armcap.c b/crypto/armcap.c index 68f735baec..01b3b32534 100644 --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -400,7 +400,8 @@ void OPENSSL_cpuid_setup(void) OPENSSL_armv8_rsa_neonized = 1; } if ((MIDR_IS_CPU_MODEL(OPENSSL_arm_midr, ARM_CPU_IMP_ARM, ARM_CPU_PART_V1) || - MIDR_IS_CPU_MODEL(OPENSSL_arm_midr, ARM_CPU_IMP_ARM, ARM_CPU_PART_N2)) && + MIDR_IS_CPU_MODEL(OPENSSL_arm_midr, ARM_CPU_IMP_ARM, ARM_CPU_PART_N2) || + MIDR_IS_CPU_MODEL(OPENSSL_arm_midr, ARM_CPU_IMP_ARM, ARM_CPU_PART_V2)) && (OPENSSL_armcap_P & ARMV8_SHA3)) OPENSSL_armcap_P |= ARMV8_UNROLL8_EOR3; # endif |