mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
MacOSX: Make AESNI availability linked to compiler target and not compilation host
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#ifdef TC_AES_HW_CPU
|
||||
# include "Crypto/Aes_hw_cpu.h"
|
||||
#endif
|
||||
#include "Crypto/cpu.h"
|
||||
|
||||
extern "C" int IsAesHwCpuSupported ()
|
||||
{
|
||||
@@ -32,7 +31,7 @@ extern "C" int IsAesHwCpuSupported ()
|
||||
|
||||
if (!stateValid)
|
||||
{
|
||||
state = g_hasAESNI ? true : false;
|
||||
state = HasAESNI() ? true : false;
|
||||
stateValid = true;
|
||||
}
|
||||
return state && VeraCrypt::Cipher::IsHwSupportEnabled();
|
||||
@@ -203,7 +202,7 @@ namespace VeraCrypt
|
||||
|
||||
if (!stateValid)
|
||||
{
|
||||
state = g_hasAESNI ? true : false;
|
||||
state = HasAESNI() ? true : false;
|
||||
stateValid = true;
|
||||
}
|
||||
return state && HwSupportEnabled;
|
||||
|
||||
Reference in New Issue
Block a user