1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Crypto: Workaround for AES-NI issue under Hyper-V on Windows Server 2008 R2 which masks AES-NI from applications although it is available.

This commit is contained in:
Mounir IDRASSI
2016-07-24 23:39:33 +02:00
parent 2dbf366184
commit 0fca588275
3 changed files with 66 additions and 3 deletions

View File

@@ -21,6 +21,7 @@
#include "EncryptionThreadPool.h"
#endif
#include "Volumes.h"
#include "cpu.h"
/* Update the following when adding a new cipher or EA:
@@ -1051,7 +1052,11 @@ BOOL IsAesHwCpuSupported ()
if (!stateValid)
{
#ifdef TC_WINDOWS_BOOT_AES
state = is_aes_hw_cpu_supported() ? TRUE : FALSE;
#else
state = g_hasAESNI ? TRUE : FALSE;
#endif
stateValid = TRUE;
}