VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-11 23:26:45 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-11 23:42:08 +0100
commitb48d437c80f8011548383a2e1ae88649a030c1ae (patch)
tree8de0d72b96937eb166524d0e28335689359717e4 /src/Crypto
parentc44127fe3bbecbd5df38a77efe899b8e98d2b4b3 (diff)
downloadVeraCrypt-b48d437c80f8011548383a2e1ae88649a030c1ae.tar.gz
VeraCrypt-b48d437c80f8011548383a2e1ae88649a030c1ae.zip
Windows Driver: Fix build error using Windows 10 WDK caused by name conflict for KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState functions
Diffstat (limited to 'src/Crypto')
-rw-r--r--src/Crypto/Camellia.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Crypto/Camellia.c b/src/Crypto/Camellia.c
index b3a35784..f4fde8aa 100644
--- a/src/Crypto/Camellia.c
+++ b/src/Crypto/Camellia.c
@@ -1099,9 +1099,9 @@ void camellia_encrypt_blocks(unsigned __int8 *instance, const byte* in_blk, byte
if ((blockCount >= 16) && IsCpuIntel() && IsAesHwCpuSupported () && HasSAVX()) /* on AMD cpu, AVX is too slow */
{
#if defined (TC_WINDOWS_DRIVER)
XSTATE_SAVE SaveState;
- if (NT_SUCCESS (KeSaveExtendedProcessorState(XSTATE_MASK_GSSE, &SaveState)))
+ if (NT_SUCCESS (KeSaveExtendedProcessorStateVC(XSTATE_MASK_GSSE, &SaveState)))
{
#endif
while (blockCount >= 16)
{
@@ -1110,9 +1110,9 @@ void camellia_encrypt_blocks(unsigned __int8 *instance, const byte* in_blk, byte
in_blk += 16 * 16;
blockCount -= 16;
}
#if defined (TC_WINDOWS_DRIVER)
- KeRestoreExtendedProcessorState(&SaveState);
+ KeRestoreExtendedProcessorStateVC(&SaveState);
}
#endif
}
#endif
@@ -1135,9 +1135,9 @@ void camellia_decrypt_blocks(unsigned __int8 *instance, const byte* in_blk, byte
if ((blockCount >= 16) && IsCpuIntel() && IsAesHwCpuSupported () && HasSAVX()) /* on AMD cpu, AVX is too slow */
{
#if defined (TC_WINDOWS_DRIVER)
XSTATE_SAVE SaveState;
- if (NT_SUCCESS (KeSaveExtendedProcessorState(XSTATE_MASK_GSSE, &SaveState)))
+ if (NT_SUCCESS (KeSaveExtendedProcessorStateVC(XSTATE_MASK_GSSE, &SaveState)))
{
#endif
while (blockCount >= 16)
{
@@ -1146,9 +1146,9 @@ void camellia_decrypt_blocks(unsigned __int8 *instance, const byte* in_blk, byte
in_blk += 16 * 16;
blockCount -= 16;
}
#if defined (TC_WINDOWS_DRIVER)
- KeRestoreExtendedProcessorState(&SaveState);
+ KeRestoreExtendedProcessorStateVC(&SaveState);
}
#endif
}
#endif