mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux/FreeBSD: Enable building without AESNI support by setting environment variable DISABLE_AESNI to 1 during build or passing NOAESNI=1 to make command
This comes following Github issue #892 and which should be solved thanks to this.
This commit is contained in:
@@ -330,7 +330,9 @@ void DetectX86Features()
|
||||
g_hasSSE42 = g_hasSSE2 && (cpuid1[2] & (1 << 20));
|
||||
g_hasSSE41 = g_hasSSE2 && (cpuid1[2] & (1 << 19));
|
||||
g_hasSSSE3 = g_hasSSE2 && (cpuid1[2] & (1<<9));
|
||||
#ifndef CRYPTOPP_DISABLE_AESNI
|
||||
g_hasAESNI = g_hasSSE2 && (cpuid1[2] & (1<<25));
|
||||
#endif
|
||||
g_hasCLMUL = g_hasSSE2 && (cpuid1[2] & (1<<1));
|
||||
|
||||
#if !defined (_UEFI) && ((defined(__AES__) && defined(__PCLMUL__)) || defined(__INTEL_COMPILER) || CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE)
|
||||
|
||||
@@ -209,7 +209,9 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define CRYPTOPP_CPUID_AVAILABLE
|
||||
#ifndef CRYPTOPP_DISABLE_AESNI
|
||||
#define TC_AES_HW_CPU
|
||||
#endif
|
||||
|
||||
// these should not be used directly
|
||||
extern volatile int g_x86DetectionDone;
|
||||
|
||||
Reference in New Issue
Block a user