1
0
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:
Mounir IDRASSI
2016-07-29 15:50:30 +02:00
parent 2389561406
commit fe31cf5b83
4 changed files with 84 additions and 48 deletions

View File

@@ -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;