VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Twofish.h
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/Crypto/Twofish.h
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/Crypto/Twofish.h')
-rw-r--r--src/Crypto/Twofish.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Crypto/Twofish.h b/src/Crypto/Twofish.h
index 57723138..b2d44ddb 100644
--- a/src/Crypto/Twofish.h
+++ b/src/Crypto/Twofish.h
@@ -35,7 +35,7 @@ extern "C"
#endif
typedef struct
{
-#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
+#if CRYPTOPP_BOOL_X64
u4byte mk_tab[4][256], w[8], k[32];
#else
u4byte l_key[40];
@@ -52,7 +52,7 @@ typedef struct
/* in_key must be 32-bytes long */
void twofish_set_key(TwofishInstance *instance, const u4byte in_key[]);
-#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
+#if CRYPTOPP_BOOL_X64
void twofish_encrypt_blocks(TwofishInstance *instance, const byte* in_blk, byte* out_blk, uint32 blockCount);
void twofish_decrypt_blocks(TwofishInstance *instance, const byte* in_blk, byte* out_blk, uint32 blockCount);
#define twofish_encrypt(instance,in_blk,out_blk) twofish_encrypt_blocks(instance, (const byte*) in_blk, (byte*) out_blk, 1)