From 2edd12fe22946cce7ef4cf588e8f31faf745b5f4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 9 Oct 2016 23:41:50 +0200 Subject: Optimize performance of Twofish C implementation. --- src/Crypto/Twofish.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Crypto/Twofish.h') diff --git a/src/Crypto/Twofish.h b/src/Crypto/Twofish.h index 1011608e..aebb6ea0 100644 --- a/src/Crypto/Twofish.h +++ b/src/Crypto/Twofish.h @@ -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) -- cgit v1.2.3