VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/SerpentFast_simd.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-22 00:41:56 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-22 00:43:29 +0200
commit7c78c4f4ac7be0116f48e2609e49a0d7d9458073 (patch)
treeb4773b0e0195aef4577014d5c46f729098e9634f /src/Crypto/SerpentFast_simd.cpp
parente484d0caaeca39b526b2d8df99ed712782a095ab (diff)
downloadVeraCrypt-7c78c4f4ac7be0116f48e2609e49a0d7d9458073.tar.gz
VeraCrypt-7c78c4f4ac7be0116f48e2609e49a0d7d9458073.zip
Windows Driver: fix "__chkstk" link error in debug build caused by some crypto functions using too much stack space for local variables.
Diffstat (limited to 'src/Crypto/SerpentFast_simd.cpp')
-rw-r--r--src/Crypto/SerpentFast_simd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Crypto/SerpentFast_simd.cpp b/src/Crypto/SerpentFast_simd.cpp
index d5d5d65b..6e5fd49b 100644
--- a/src/Crypto/SerpentFast_simd.cpp
+++ b/src/Crypto/SerpentFast_simd.cpp
@@ -218,7 +218,7 @@ typedef SIMD_4x32 SIMD_32;
} while(0);
-
+#if (!defined (DEBUG) || !defined (TC_WINDOWS_DRIVER))
/*
* SIMD Serpent Encryption of 4 blocks in parallel
*/
@@ -330,7 +330,7 @@ extern "C" void serpent_simd_decrypt_blocks_4(const unsigned __int8 in[], unsign
B2.store_le(out + 32);
B3.store_le(out + 48);
}
-
+#endif
#undef key_xor
#undef transform
#undef i_transform