1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Optimize performance of Twofish C implementation.

This commit is contained in:
Mounir IDRASSI
2016-10-09 23:41:50 +02:00
parent a2b008c747
commit 2edd12fe22
2 changed files with 463 additions and 95 deletions

View File

@@ -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)