VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-01 01:43:15 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-01 01:56:33 +0200
commitfe278afb18729fdc7c57a48ed4b2081f3cd64e39 (patch)
tree85e9ae3eb0dddf76abc518b75bb734b15b265b02 /src/Crypto
parentf5e6136830b4c1e02327d1767030181364651e40 (diff)
downloadVeraCrypt-fe278afb18729fdc7c57a48ed4b2081f3cd64e39.tar.gz
VeraCrypt-fe278afb18729fdc7c57a48ed4b2081f3cd64e39.zip
Fix crash on machines without SSSE3 support in CPU by correctly checking for SSSE3 before using SHA-512 SSE2 assembly which uses PSHUFB instruction.
Diffstat (limited to 'src/Crypto')
-rw-r--r--src/Crypto/Sha2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Crypto/Sha2.c b/src/Crypto/Sha2.c
index fc1d0aec..4c00762b 100644
--- a/src/Crypto/Sha2.c
+++ b/src/Crypto/Sha2.c
@@ -217,7 +217,7 @@ void sha512_begin(sha512_ctx* ctx)
#endif
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
- if (HasSSE2() && HasMMX())
+ if (HasSSSE3() && HasMMX())
transfunc = SSE2Transform;
else
#endif