Windows/Linux/macOS: implement AES hardware support on ARM64 (ARMv8)

This commit is contained in:
Mounir IDRASSI committed 2025-01-17 00:58:54 +01:00
1 parent c79f8102e0
commit 54bd819990
22 files changed
+492 -49

No files matched your search

+18
View File
@@ -288,6 +288,24 @@ void DisableCPUExtendedFeatures ();
}
#endif
#elif CRYPTOPP_BOOL_ARMV8
#if defined(__cplusplus)
extern "C" {
#endif
#if !defined(CRYPTOPP_DISABLE_AESNI) && !defined(WOLFCRYPT_BACKEND)
#define TC_AES_HW_CPU
#endif
extern volatile int g_hasAESARM;
void DetectArmFeatures();
#define HasAESNI() g_hasAESARM
#if defined(__cplusplus)
}
#endif
#else
#define HasSSE2() 0