VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-18 23:06:32 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-18 23:12:23 (GMT)
commit3bdb9a32d78a644940f496570b58d3912180a486 (patch)
treea83c7ecc40fee08058a891b9c1ba6842ed8ff9cd
parentb37d7324081027c5b7f5de89b6ccb22742c90458 (diff)
downloadVeraCrypt-3bdb9a32d78a644940f496570b58d3912180a486.zip
VeraCrypt-3bdb9a32d78a644940f496570b58d3912180a486.tar.gz
Windows MBR bootloader: reduce required stack size for cascade bootloader by removing unnecessary field from Twofish structure in this case.
-rw-r--r--src/Crypto/Twofish.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Crypto/Twofish.h b/src/Crypto/Twofish.h
index b2d44dd..cec99c7 100644
--- a/src/Crypto/Twofish.h
+++ b/src/Crypto/Twofish.h
@@ -41,7 +41,9 @@ typedef struct
u4byte l_key[40];
#ifdef TC_MINIMIZE_CODE_SIZE
u4byte s_key[4];
+#ifdef TC_WINDOWS_BOOT_TWOFISH
u4byte mk_tab[4 * 256];
+#endif
#else
u4byte mk_tab[4][256];
#endif