summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-12-22 15:21:59 +0000
committerAndy Polyakov <appro@openssl.org>2008-12-22 15:21:59 +0000
commit830457ce4fc9c7699900eff53bb4cfc0d4203ed4 (patch)
tree424bcb46bf564bb5f379e421f6f5744c8541ec17
parentea4d5005d957e5908e2d860cf18416f3f626f9a3 (diff)
Optimize CAST for size on 64-bit platforms. For reference, CAST_LONG being
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.
-rw-r--r--crypto/cast/cast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cast/cast.h b/crypto/cast/cast.h
index 90b45b950a..79bb297c1a 100644
--- a/crypto/cast/cast.h
+++ b/crypto/cast/cast.h
@@ -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