VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-10-26 09:03:14 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:24:30 +0100
commitb0bb124772271237a4e1bbe6955d3116ffa8d623 (patch)
tree1c5218b63fb02ec166724975dc4d4fd2e6efa9ed /src
parentf7d8e565b47c1577830f7b9d44b77480d83d9aee (diff)
downloadVeraCrypt-b0bb124772271237a4e1bbe6955d3116ffa8d623.tar.gz
VeraCrypt-b0bb124772271237a4e1bbe6955d3116ffa8d623.zip
Bootloader: reduce the size of Serpent implementation when used as the single cipher. We need this because to save space for the new features to come.
Diffstat (limited to 'src')
-rw-r--r--src/Crypto/Serpent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Crypto/Serpent.c b/src/Crypto/Serpent.c
index 91a4eadf..0d4ab6c5 100644
--- a/src/Crypto/Serpent.c
+++ b/src/Crypto/Serpent.c
@@ -835,7 +835,7 @@ void serpent_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock,
#endif // TC_MINIMIZE_CODE_SIZE
-#if !defined (TC_MINIMIZE_CODE_SIZE) || defined (TC_WINDOWS_BOOT_SERPENT)
+#if !defined (TC_MINIMIZE_CODE_SIZE)
void serpent_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks)
{
@@ -878,7 +878,7 @@ start:
out[3] = LE32(e);
}
-#else // TC_MINIMIZE_CODE_SIZE && !TC_WINDOWS_BOOT_SERPENT
+#else // TC_MINIMIZE_CODE_SIZE
static void ILTf (uint32 *a, uint32 *b, uint32 *c, uint32 *d)
{
@@ -934,4 +934,4 @@ start:
out[3] = LE32(e);
}
-#endif // TC_MINIMIZE_CODE_SIZE && !TC_WINDOWS_BOOT_SERPENT
+#endif // TC_MINIMIZE_CODE_SIZE