VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Twofish.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-09 23:41:50 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:40:32 +0200
commit2edd12fe22946cce7ef4cf588e8f31faf745b5f4 (patch)
tree18097a153202b79dc1735eb990105cf1aa9f9643 /src/Crypto/Twofish.h
parenta2b008c747134bba5c5f22d053fb59afc9ce89aa (diff)
downloadVeraCrypt-2edd12fe22946cce7ef4cf588e8f31faf745b5f4.tar.gz
VeraCrypt-2edd12fe22946cce7ef4cf588e8f31faf745b5f4.zip
Optimize performance of Twofish C implementation.
Diffstat (limited to 'src/Crypto/Twofish.h')
-rw-r--r--src/Crypto/Twofish.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Crypto/Twofish.h b/src/Crypto/Twofish.h
index 1011608e..aebb6ea0 100644
--- a/src/Crypto/Twofish.h
+++ b/src/Crypto/Twofish.h
@@ -35,11 +35,12 @@ extern "C"
typedef struct
{
u4byte l_key[40];
+#ifdef TC_MINIMIZE_CODE_SIZE
u4byte s_key[4];
+#endif
#if !defined (TC_MINIMIZE_CODE_SIZE) || defined (TC_WINDOWS_BOOT_TWOFISH)
u4byte mk_tab[4 * 256];
#endif
- u4byte k_len;
} TwofishInstance;
#define TWOFISH_KS sizeof(TwofishInstance)