mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Windows Driver: fix "__chkstk" link error in debug build caused by some crypto functions using too much stack space for local variables.
This commit is contained in:
@@ -80,7 +80,7 @@ void serpent_encrypt_blocks(const unsigned __int8* in, unsigned __int8* out, siz
|
||||
unsigned __int32 B0, B1, B2, B3;
|
||||
unsigned __int32* round_key = ((unsigned __int32*) ks) + 8;
|
||||
size_t i;
|
||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && (!defined (DEBUG) || !defined (TC_WINDOWS_DRIVER))
|
||||
if(HasSSE2() && (blocks >= 4))
|
||||
{
|
||||
while(blocks >= 4)
|
||||
@@ -159,7 +159,7 @@ void serpent_decrypt_blocks(const unsigned __int8* in, unsigned __int8* out, siz
|
||||
unsigned __int32 B0, B1, B2, B3;
|
||||
unsigned __int32* round_key = ((unsigned __int32*) ks) + 8;
|
||||
size_t i;
|
||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && (!defined (DEBUG) || !defined (TC_WINDOWS_DRIVER))
|
||||
if(HasSSE2() && (blocks >= 4))
|
||||
{
|
||||
while(blocks >= 4)
|
||||
|
||||
Reference in New Issue
Block a user