diff options
author | beck <> | 1999-09-29 04:37:45 +0000 |
---|---|---|
committer | beck <> | 1999-09-29 04:37:45 +0000 |
commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/rc4/rc4_enc.c | |
parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip |
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/rc4/rc4_enc.c')
-rw-r--r-- | src/lib/libcrypto/rc4/rc4_enc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libcrypto/rc4/rc4_enc.c b/src/lib/libcrypto/rc4/rc4_enc.c index ab8a111b52..3256bea8cc 100644 --- a/src/lib/libcrypto/rc4/rc4_enc.c +++ b/src/lib/libcrypto/rc4/rc4_enc.c | |||
@@ -56,7 +56,7 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include "rc4.h" | 59 | #include <openssl/rc4.h> |
60 | #include "rc4_locl.h" | 60 | #include "rc4_locl.h" |
61 | 61 | ||
62 | /* RC4 as implemented from a posting from | 62 | /* RC4 as implemented from a posting from |
@@ -67,11 +67,8 @@ | |||
67 | * Date: Wed, 14 Sep 1994 06:35:31 GMT | 67 | * Date: Wed, 14 Sep 1994 06:35:31 GMT |
68 | */ | 68 | */ |
69 | 69 | ||
70 | void RC4(key, len, indata, outdata) | 70 | void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata, |
71 | RC4_KEY *key; | 71 | unsigned char *outdata) |
72 | unsigned long len; | ||
73 | unsigned char *indata; | ||
74 | unsigned char *outdata; | ||
75 | { | 72 | { |
76 | register RC4_INT *d; | 73 | register RC4_INT *d; |
77 | register RC4_INT x,y,tx,ty; | 74 | register RC4_INT x,y,tx,ty; |
@@ -95,7 +92,6 @@ unsigned char *outdata; | |||
95 | #define RC4_LOOP(a,b,i) LOOP(a[i],b[i]) | 92 | #define RC4_LOOP(a,b,i) LOOP(a[i],b[i]) |
96 | #endif | 93 | #endif |
97 | 94 | ||
98 | i= -(int)len; | ||
99 | i=(int)(len>>3L); | 95 | i=(int)(len>>3L); |
100 | if (i) | 96 | if (i) |
101 | { | 97 | { |