VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/cpu.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-02-13 18:41:18 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-02-13 18:42:27 +0100
commitd417b2806c88cf06f4f3baa0064d6b1f9f22037d (patch)
tree1b9371586cde72dfebf8d1ad2552552c33e93b91 /src/Crypto/cpu.h
parentbe5bcbf42f4b2bdcc8307ee80fe1e954a4c481f2 (diff)
downloadVeraCrypt-d417b2806c88cf06f4f3baa0064d6b1f9f22037d.tar.gz
VeraCrypt-d417b2806c88cf06f4f3baa0064d6b1f9f22037d.zip
Linux/FreeBSD: Enable building without AESNI support by setting environment variable DISABLE_AESNI to 1 during build or passing NOAESNI=1 to make command
This comes following Github issue #892 and which should be solved thanks to this.
Diffstat (limited to 'src/Crypto/cpu.h')
-rw-r--r--src/Crypto/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Crypto/cpu.h b/src/Crypto/cpu.h
index 58729f32..1a3efcee 100644
--- a/src/Crypto/cpu.h
+++ b/src/Crypto/cpu.h
@@ -209,7 +209,9 @@ extern "C" {
#endif
#define CRYPTOPP_CPUID_AVAILABLE
+#ifndef CRYPTOPP_DISABLE_AESNI
#define TC_AES_HW_CPU
+#endif
// these should not be used directly
extern volatile int g_x86DetectionDone;