VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Sha2.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-09 17:59:06 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-09 18:10:21 +0100
commit08593aa7ab7f420dc84861e1a99bcf07ecc49286 (patch)
treee43310d16ed7623afb0e9e1ce3d069e663540419 /src/Crypto/Sha2.c
parente6aae8bd71c3a8e96bb6105693f90f563b0688b3 (diff)
downloadVeraCrypt-08593aa7ab7f420dc84861e1a99bcf07ecc49286.tar.gz
VeraCrypt-08593aa7ab7f420dc84861e1a99bcf07ecc49286.zip
Linux/MacOSX: use x64 optimized SHA256 implementation instead of limiting it to Windows.
Diffstat (limited to 'src/Crypto/Sha2.c')
-rw-r--r--src/Crypto/Sha2.c2
1 files changed, 1 insertions, 1 deletions
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())