VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Twofish.h
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/Crypto/Twofish.h
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/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 b2d44ddb..57723138 100644
--- a/src/Crypto/Twofish.h
+++ b/src/Crypto/Twofish.h
@@ -35,7 +35,7 @@ extern "C"
#endif
typedef struct
{
-#if CRYPTOPP_BOOL_X64
+#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
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
+#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
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)