VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-30 23:43:15 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-30 23:56:33 (GMT)
commitfe278afb18729fdc7c57a48ed4b2081f3cd64e39 (patch)
tree85e9ae3eb0dddf76abc518b75bb734b15b265b02 /src/Crypto
parentf5e6136830b4c1e02327d1767030181364651e40 (diff)
downloadVeraCrypt-fe278afb18729fdc7c57a48ed4b2081f3cd64e39.zip
VeraCrypt-fe278afb18729fdc7c57a48ed4b2081f3cd64e39.tar.gz
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 fc1d0ae..4c00762 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