summaryrefslogtreecommitdiff
path: root/crypto/rc4/rc4_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rc4/rc4_enc.c')
-rw-r--r--crypto/rc4/rc4_enc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/rc4/rc4_enc.c b/crypto/rc4/rc4_enc.c
index d5f18a3a70..a0f71d004a 100644
--- a/crypto/rc4/rc4_enc.c
+++ b/crypto/rc4/rc4_enc.c
@@ -119,9 +119,13 @@ void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata,
d[x]=ty, \
(RC4_CHUNK)d[(tx+ty)&0xff]\
)
-
+#ifdef OPENSSL_SYS_VMS
+ if ( ( ((unsigned long long)indata & (sizeof(RC4_CHUNK)-1)) |
+ ((unsigned long long)outdata & (sizeof(RC4_CHUNK)-1)) ) == 0 )
+#else
if ( ( ((unsigned long)indata & (sizeof(RC4_CHUNK)-1)) |
((unsigned long)outdata & (sizeof(RC4_CHUNK)-1)) ) == 0 )
+#endif
{
RC4_CHUNK ichunk,otp;
const union { long one; char little; } is_endian = {1};