mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Crypto: Use Hyper-V AES-NI detection workaround when displaying AES hardware availability in GUI.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#ifdef TC_AES_HW_CPU
|
||||
# include "Crypto/Aes_hw_cpu.h"
|
||||
# include "Crypto/cpu.h"
|
||||
#endif
|
||||
|
||||
namespace VeraCrypt
|
||||
@@ -181,7 +182,7 @@ namespace VeraCrypt
|
||||
|
||||
if (!stateValid)
|
||||
{
|
||||
state = is_aes_hw_cpu_supported() ? true : false;
|
||||
state = g_hasAESNI ? true : false;
|
||||
stateValid = true;
|
||||
}
|
||||
return state && HwSupportEnabled;
|
||||
|
||||
Reference in New Issue
Block a user