mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
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.
This commit is contained in:
@@ -835,7 +835,7 @@ void serpent_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock,
|
|||||||
|
|
||||||
#endif // TC_MINIMIZE_CODE_SIZE
|
#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)
|
void serpent_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks)
|
||||||
{
|
{
|
||||||
@@ -878,7 +878,7 @@ start:
|
|||||||
out[3] = LE32(e);
|
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)
|
static void ILTf (uint32 *a, uint32 *b, uint32 *c, uint32 *d)
|
||||||
{
|
{
|
||||||
@@ -934,4 +934,4 @@ start:
|
|||||||
out[3] = LE32(e);
|
out[3] = LE32(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TC_MINIMIZE_CODE_SIZE && !TC_WINDOWS_BOOT_SERPENT
|
#endif // TC_MINIMIZE_CODE_SIZE
|
||||||
|
|||||||
Reference in New Issue
Block a user