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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user