1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Fix crash on machines without SSSE3 support in CPU by correctly checking for SSSE3 before using SHA-512 SSE2 assembly which uses PSHUFB instruction.

This commit is contained in:
Mounir IDRASSI
2017-07-01 01:43:15 +02:00
parent f5e6136830
commit fe278afb18

View File

@@ -217,7 +217,7 @@ void sha512_begin(sha512_ctx* ctx)
#endif #endif
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX)) #if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
if (HasSSE2() && HasMMX()) if (HasSSSE3() && HasMMX())
transfunc = SSE2Transform; transfunc = SSE2Transform;
else else
#endif #endif