VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-07 09:35:10 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-07 12:36:08 +0100
commita0eadbd660b48931f7ff88bb9c1f708474ef7e69 (patch)
tree006f5c72e40d9a8b8182417c709567477cef00e2 /src/Common
parentfb38269c89e0fadf51e6912d5a9e017d02833b34 (diff)
downloadVeraCrypt-a0eadbd660b48931f7ff88bb9c1f708474ef7e69.tar.gz
VeraCrypt-a0eadbd660b48931f7ff88bb9c1f708474ef7e69.zip
Windows: Don't use Twofish x64 assembly implementation for UEFI bootloader (for now, yasm is not integrated in EDKII framework).
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 808c8af7..e44ad1ba 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
+#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
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
+#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
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
+#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
|| (cipher == TWOFISH)
#endif
;