VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-09 18:50:40 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-09 18:59:20 +0100
commit31c4fbfc12e8a2293e1c40c8007a2981bbac534d (patch)
tree52802a62a3a81d85d1c6af912babe899e407ff1f /src/Crypto
parent214efac67eaa43c7cf1392f0cdb1c1ab0c9ec2e9 (diff)
downloadVeraCrypt-31c4fbfc12e8a2293e1c40c8007a2981bbac534d.tar.gz
VeraCrypt-31c4fbfc12e8a2293e1c40c8007a2981bbac534d.zip
Fix wrong check on the define CRYPTOPP_BOOL_X64
Diffstat (limited to 'src/Crypto')
-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 c62f208e..31cba7f5 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 CRYPTOPP_BOOL_X64
+#if CRYPTOPP_BOOL_X64
if (g_isIntel && HasSAVX2() && HasSBMI2())
sha256transfunc = Avx2Sha256Transform;
else if (g_isIntel && HasSAVX())