From 08593aa7ab7f420dc84861e1a99bcf07ecc49286 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 9 Dec 2019 17:59:06 +0100 Subject: Linux/MacOSX: use x64 optimized SHA256 implementation instead of limiting it to Windows. --- src/Crypto/Sha2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Crypto') diff --git a/src/Crypto/Sha2.c b/src/Crypto/Sha2.c index 5949d85e..c62f208e 100644 --- a/src/Crypto/Sha2.c +++ b/src/Crypto/Sha2.c @@ -774,7 +774,7 @@ void sha256_begin(sha256_ctx* ctx) if (!sha256transfunc) { #ifndef NO_OPTIMIZED_VERSIONS -#ifdef _M_X64 +#ifdef CRYPTOPP_BOOL_X64 if (g_isIntel && HasSAVX2() && HasSBMI2()) sha256transfunc = Avx2Sha256Transform; else if (g_isIntel && HasSAVX()) -- cgit v1.2.3