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

Linux/MacOSX: use x64 optimized SHA256 implementation instead of limiting it to Windows.

This commit is contained in:
Mounir IDRASSI
2019-12-09 17:59:06 +01:00
parent e6aae8bd71
commit 08593aa7ab

View File

@@ -774,7 +774,7 @@ void sha256_begin(sha256_ctx* ctx)
if (!sha256transfunc) if (!sha256transfunc)
{ {
#ifndef NO_OPTIMIZED_VERSIONS #ifndef NO_OPTIMIZED_VERSIONS
#ifdef _M_X64 #ifdef CRYPTOPP_BOOL_X64
if (g_isIntel && HasSAVX2() && HasSBMI2()) if (g_isIntel && HasSAVX2() && HasSBMI2())
sha256transfunc = Avx2Sha256Transform; sha256transfunc = Avx2Sha256Transform;
else if (g_isIntel && HasSAVX()) else if (g_isIntel && HasSAVX())