aboutsummaryrefslogtreecommitdiff
path: root/crypto/bf
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1998-12-22 15:59:57 +0000
committerRalf S. Engelschall <rse@openssl.org>1998-12-22 15:59:57 +0000
commit13e91dd365887c7ff26dc3ff18d42266e5393f2d (patch)
treecec94d3f90051b9b1fff763af1889d5588a5ef67 /crypto/bf
parent8c6c8d80b757106e0fc6e9a65dcdbdb7e31ad5e7 (diff)
downloadopenssl-13e91dd365887c7ff26dc3ff18d42266e5393f2d.zip
openssl-13e91dd365887c7ff26dc3ff18d42266e5393f2d.tar.gz
openssl-13e91dd365887c7ff26dc3ff18d42266e5393f2d.tar.bz2
Incorporation of RSEs assembled patches
Diffstat (limited to 'crypto/bf')
-rw-r--r--crypto/bf/blowfish.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/bf/blowfish.h b/crypto/bf/blowfish.h
index c4a8085..23a2bd7 100644
--- a/crypto/bf/blowfish.h
+++ b/crypto/bf/blowfish.h
@@ -70,7 +70,15 @@ extern "C" {
* the Alpha, otherwise they will not. Strangly using the '8 byte'
* BF_LONG and the default 'non-pointer' inner loop is the best configuration
* for the Alpha */
-#define BF_LONG unsigned long
+#if defined(__sgi)
+# if (_MIPS_SZLONG==64)
+# define BF_LONG unsigned int
+# else
+# define BF_LONG unsigned long
+# endif
+#else
+# define BF_LONG unsigned long
+#endif
#define BF_ROUNDS 16
#define BF_BLOCK 8