mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01: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:
parent
f7d8e565b4
commit
b0bb124772
@ -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 @@ void serpent_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock,
|
||||
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 @@ void serpent_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock,
|
||||
out[3] = LE32(e);
|
||||
}
|
||||
|
||||
#endif // TC_MINIMIZE_CODE_SIZE && !TC_WINDOWS_BOOT_SERPENT
|
||||
#endif // TC_MINIMIZE_CODE_SIZE
|
||||
|
Loading…
Reference in New Issue
Block a user