summaryrefslogtreecommitdiffstats
path: root/crypto/rc4/rc4_enc.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-11-26 15:12:17 +0000
committerAndy Polyakov <appro@openssl.org>2004-11-26 15:12:17 +0000
commitbc3e7fabe7f93084d8d93f55bebe20057a0b6970 (patch)
tree2c55eac5ababd587ea42cd730a50c751554ebb2c /crypto/rc4/rc4_enc.c
parentd675c74d14f9e7f7046ee7b383e41868782ab5bd (diff)
Engage RC4 IA-64 assembler module.
Diffstat (limited to 'crypto/rc4/rc4_enc.c')
-rw-r--r--crypto/rc4/rc4_enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/rc4/rc4_enc.c b/crypto/rc4/rc4_enc.c
index d5f18a3a70..81a97ea3b7 100644
--- a/crypto/rc4/rc4_enc.c
+++ b/crypto/rc4/rc4_enc.c
@@ -77,6 +77,10 @@ void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata,
x=key->x;
y=key->y;
d=key->data;
+#if defined(__ia64) || defined(__ia64__) || defined(_M_IA64)
+ /* see crypto/rc4/asm/rc4-ia64.S for further details... */
+ d=(RC4_INT *)(((size_t)(d+255))&~(sizeof(key->data)-1));
+#endif
#if defined(RC4_CHUNK)
/*