From 7c78c4f4ac7be0116f48e2609e49a0d7d9458073 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 22 May 2017 00:41:56 +0200 Subject: Windows Driver: fix "__chkstk" link error in debug build caused by some crypto functions using too much stack space for local variables. --- src/Crypto/SerpentFast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Crypto/SerpentFast.c') diff --git a/src/Crypto/SerpentFast.c b/src/Crypto/SerpentFast.c index cb143262..3358db13 100644 --- a/src/Crypto/SerpentFast.c +++ b/src/Crypto/SerpentFast.c @@ -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) -- cgit v1.2.3