From 0358eb6c717cfe132bcec7fddeac14213ed8937c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 4 Jul 2017 02:07:21 +0200 Subject: Don't check for SSSE3 to use 64-bit SHA-512 assembly code since it uses only SSE2 instructions. --- src/Crypto/Sha2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3