VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-19 17:46:38 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-26 00:00:05 +0100
commit5493de11d57159b8c048b33a71d9783b405cf2e8 (patch)
tree34d7a1abb852bc5b7593be22a1620de955061026 /src/Common
parent1ef6177ae3605b4aa24beb6d9a0da214c15e100e (diff)
downloadVeraCrypt-5493de11d57159b8c048b33a71d9783b405cf2e8.tar.gz
VeraCrypt-5493de11d57159b8c048b33a71d9783b405cf2e8.zip
Windows: Enable Twofish optimized 64-bit assembly for UEFI bootloader since a pre-compiled object file was included to its build system.
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c
index e44ad1ba..808c8af7 100644
--- a/src/Common/Crypto.c
+++ b/src/Common/Crypto.c
@@ -247,7 +247,7 @@ void EncipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
#endif
}
#endif
-#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
+#if CRYPTOPP_BOOL_X64
else if (cipher == TWOFISH) {
twofish_encrypt_blocks(ks, data, data, (uint32) blockCount);
}
@@ -347,7 +347,7 @@ void DecipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
#endif
}
#endif
-#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
+#if CRYPTOPP_BOOL_X64
else if (cipher == TWOFISH) {
twofish_decrypt_blocks(ks, data, data, (uint32) blockCount);
}
@@ -428,7 +428,7 @@ BOOL CipherSupportsIntraDataUnitParallelization (int cipher)
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined (_UEFI)
|| (cipher == SERPENT && HasSSE2())
#endif
-#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
+#if CRYPTOPP_BOOL_X64
|| (cipher == TWOFISH)
#endif
;