Optimize CAST for size on 64-bit platforms. For reference, CAST_LONG being
authorAndy Polyakov <appro@openssl.org>
Mon, 22 Dec 2008 15:21:59 +0000 (15:21 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 22 Dec 2008 15:21:59 +0000 (15:21 +0000)
unsigned long must be attributed to 16-bit support. As we don't support
16-bit platoforms anymore, there is no reason to waste twice required
space on CAST S-boxes (16KB vs. 8KB) or key schedule.

crypto/cast/cast.h

index 90b45b950aa8dcbc2b2156c3523c8a337281b3d3..79bb297c1a05da9204ee801dba1b043cbb02ba38 100644 (file)
@@ -72,7 +72,7 @@ extern "C" {
 #define CAST_ENCRYPT   1
 #define CAST_DECRYPT   0
 
-#define CAST_LONG unsigned long
+#define CAST_LONG unsigned int
 
 #define CAST_BLOCK     8
 #define CAST_KEY_LENGTH        16