aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rc4/rc4_skey.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_skey.c
parentd675c74d14f9e7f7046ee7b383e41868782ab5bd (diff)
downloadopenssl-bc3e7fabe7f93084d8d93f55bebe20057a0b6970.tar.gz
Engage RC4 IA-64 assembler module.
Diffstat (limited to 'crypto/rc4/rc4_skey.c')
-rw-r--r--crypto/rc4/rc4_skey.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/rc4/rc4_skey.c b/crypto/rc4/rc4_skey.c
index 781ff2d8b9..083b53dfb8 100644
--- a/crypto/rc4/rc4_skey.c
+++ b/crypto/rc4/rc4_skey.c
@@ -93,6 +93,10 @@ void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data)
unsigned int i;
d= &(key->data[0]);
+#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
key->x = 0;
key->y = 0;
id1=id2=0;