diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-04 02:07:21 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-04 02:26:26 +0200 |
commit | 0358eb6c717cfe132bcec7fddeac14213ed8937c (patch) | |
tree | a3fe6019b9a7216398bb8bd4d8cd2625ead273d7 /src | |
parent | 89efcdb8cd95ea798187fe4062a73fa5d2fca456 (diff) | |
download | VeraCrypt-0358eb6c717cfe132bcec7fddeac14213ed8937c.tar.gz VeraCrypt-0358eb6c717cfe132bcec7fddeac14213ed8937c.zip |
Don't check for SSSE3 to use 64-bit SHA-512 assembly code since it uses only SSE2 instructions.
Diffstat (limited to 'src')
-rw-r--r-- | src/Crypto/Sha2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Crypto/Sha2.c b/src/Crypto/Sha2.c index f4a44fb6..505ebb05 100644 --- a/src/Crypto/Sha2.c +++ b/src/Crypto/Sha2.c @@ -217,7 +217,11 @@ void sha512_begin(sha512_ctx* ctx) #endif #if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX)) +#if CRYPTOPP_BOOL_X64 + if (HasSSE2()) +#else if (HasSSSE3() && HasMMX()) +#endif transfunc = SSE2Transform; else #endif |