-/* $OpenBSD: ssl_ciph.c,v 1.148 2024/08/31 10:51:48 tb Exp $ */
+/* $OpenBSD: ssl_ciph.c,v 1.149 2024/08/31 12:46:55 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
static inline int
ssl_aes_is_accelerated(void)
{
-#if defined(__i386__) || defined(__x86_64__)
- return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0);
-#else
- return (0);
-#endif
+ return (OPENSSL_cpu_caps() & CRYPTO_CPU_CAPS_ACCELERATED_AES) != 0;
}
STACK_OF(SSL_CIPHER) *