diff options
author | jbeich <jbeich@FreeBSD.org> | 2019-08-29 13:06:51 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2019-08-29 13:06:51 +0800 |
commit | aefa156d7d42cee9db25bcbd2564315051238dec (patch) | |
tree | 0f82fe82458f014b77a027d1e2de0e924ca3e822 /www | |
parent | 96c0d2fec8376f925b702e0650fb7eaeb648073a (diff) | |
download | freebsd-ports-gnome-aefa156d7d42cee9db25bcbd2564315051238dec.tar.gz freebsd-ports-gnome-aefa156d7d42cee9db25bcbd2564315051238dec.tar.zst freebsd-ports-gnome-aefa156d7d42cee9db25bcbd2564315051238dec.zip |
security/nss: detect AES/SHA2 when PMULL/SHA512 is available on aarch64
Submitted by: Greg V <greg@unrelenting.technology>
Diffstat (limited to 'www')
-rw-r--r-- | www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c b/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c index 3b078f06d076..c2146217938b 100644 --- a/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c +++ b/www/chromium/files/patch-third__party_boringssl_src_crypto_cpu-aarch64-linux.c @@ -42,7 +42,7 @@ OPENSSL_armcap_P |= ARMV7_NEON; - if (hwcap & kAES) { -+ if (ID_AA64ISAR0_AES(id_aa64isar0) == ID_AA64ISAR0_AES_BASE) { ++ if (ID_AA64ISAR0_AES(id_aa64isar0) >= ID_AA64ISAR0_AES_BASE) { OPENSSL_armcap_P |= ARMV8_AES; } - if (hwcap & kPMULL) { @@ -54,7 +54,7 @@ OPENSSL_armcap_P |= ARMV8_SHA1; } - if (hwcap & kSHA256) { -+ if(ID_AA64ISAR0_SHA2(id_aa64isar0) == ID_AA64ISAR0_SHA2_BASE) { ++ if(ID_AA64ISAR0_SHA2(id_aa64isar0) >= ID_AA64ISAR0_SHA2_BASE) { OPENSSL_armcap_P |= ARMV8_SHA256; } } |