summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto_internal.h
diff options
context:
space:
mode:
authortb <>2024-09-06 09:57:32 +0000
committertb <>2024-09-06 09:57:32 +0000
commit2f477ae2728d0ed1462508692e09b8f3c8398d90 (patch)
treec22e39e94e81983bcd1b3626eb8f8209d4c33a03 /src/lib/libcrypto/crypto_internal.h
parent1cf5f5e953944e829c982d02e497cddf8a7ed9c4 (diff)
downloadopenbsd-2f477ae2728d0ed1462508692e09b8f3c8398d90.tar.gz
openbsd-2f477ae2728d0ed1462508692e09b8f3c8398d90.tar.bz2
openbsd-2f477ae2728d0ed1462508692e09b8f3c8398d90.zip
Reenable AES-NI in libcrypto
The OPENSSL_cpu_caps() change after the last bump missed a crucial bit: there is more MD mess in the MI code than anticipated, with the result that AES is now used without AES-NI on amd64 and i386, hurting machines that previously greatly benefitted from it. Temporarily add an internal crypto_cpu_caps_ia32() API that returns the OPENSSL_ia32cap_P or 0 like OPENSSL_cpu_caps() previously did. This can be improved after the release. Regression reported and fix tested by Mark Patruck. No impact on public ABI or API. with/ok jsing PS: Next time my pkg_add feels very slow, I should perhaps not mechanically blame IEEE 802.11...
Diffstat (limited to 'src/lib/libcrypto/crypto_internal.h')
-rw-r--r--src/lib/libcrypto/crypto_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_internal.h b/src/lib/libcrypto/crypto_internal.h
index 7676076f67..fc617472ad 100644
--- a/src/lib/libcrypto/crypto_internal.h
+++ b/src/lib/libcrypto/crypto_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto_internal.h,v 1.11 2024/08/11 13:02:39 jsing Exp $ */ 1/* $OpenBSD: crypto_internal.h,v 1.12 2024/09/06 09:57:32 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -220,4 +220,6 @@ crypto_ror_u64(uint64_t v, size_t shift)
220} 220}
221#endif 221#endif
222 222
223uint64_t crypto_cpu_caps_ia32(void);
224
223#endif 225#endif