提交 72983c0e 编写于 作者: A Andy Polyakov

crypto/armcap.c: mask SHA512 hardware detection on iOS.

When running iOS application from command line it's impossible to
get past the failing capability detection. This is because it's
executed under debugger and iOS debugger is impossible to deal with.
[If Apple implements SHA512 in silicon, it would have to be detected
with sysctlbyname.]
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 107783d9
...@@ -191,7 +191,7 @@ void OPENSSL_cpuid_setup(void) ...@@ -191,7 +191,7 @@ void OPENSSL_cpuid_setup(void)
_armv8_sha256_probe(); _armv8_sha256_probe();
OPENSSL_armcap_P |= ARMV8_SHA256; OPENSSL_armcap_P |= ARMV8_SHA256;
} }
# ifdef __aarch64__ # if defined(__aarch64__) && !defined(__APPLE__)
if (sigsetjmp(ill_jmp, 1) == 0) { if (sigsetjmp(ill_jmp, 1) == 0) {
_armv8_sha512_probe(); _armv8_sha512_probe();
OPENSSL_armcap_P |= ARMV8_SHA512; OPENSSL_armcap_P |= ARMV8_SHA512;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册