diff options
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2_cbc.c')
| -rw-r--r-- | src/lib/libcrypto/rc2/rc2_cbc.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/lib/libcrypto/rc2/rc2_cbc.c b/src/lib/libcrypto/rc2/rc2_cbc.c index 22e89f0441..74f48d3d87 100644 --- a/src/lib/libcrypto/rc2/rc2_cbc.c +++ b/src/lib/libcrypto/rc2/rc2_cbc.c | |||
| @@ -56,16 +56,11 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include "rc2.h" | 59 | #include <openssl/rc2.h> |
| 60 | #include "rc2_locl.h" | 60 | #include "rc2_locl.h" |
| 61 | 61 | ||
| 62 | void RC2_cbc_encrypt(in, out, length, ks, iv, encrypt) | 62 | void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, |
| 63 | unsigned char *in; | 63 | RC2_KEY *ks, unsigned char *iv, int encrypt) |
| 64 | unsigned char *out; | ||
| 65 | long length; | ||
| 66 | RC2_KEY *ks; | ||
| 67 | unsigned char *iv; | ||
| 68 | int encrypt; | ||
| 69 | { | 64 | { |
| 70 | register unsigned long tin0,tin1; | 65 | register unsigned long tin0,tin1; |
| 71 | register unsigned long tout0,tout1,xor0,xor1; | 66 | register unsigned long tout0,tout1,xor0,xor1; |
| @@ -138,9 +133,7 @@ int encrypt; | |||
| 138 | tin[0]=tin[1]=0; | 133 | tin[0]=tin[1]=0; |
| 139 | } | 134 | } |
| 140 | 135 | ||
| 141 | void RC2_encrypt(d,key) | 136 | void RC2_encrypt(unsigned long *d, RC2_KEY *key) |
| 142 | unsigned long *d; | ||
| 143 | RC2_KEY *key; | ||
| 144 | { | 137 | { |
| 145 | int i,n; | 138 | int i,n; |
| 146 | register RC2_INT *p0,*p1; | 139 | register RC2_INT *p0,*p1; |
| @@ -185,9 +178,7 @@ RC2_KEY *key; | |||
| 185 | d[1]=(unsigned long)(x2&0xffff)|((unsigned long)(x3&0xffff)<<16L); | 178 | d[1]=(unsigned long)(x2&0xffff)|((unsigned long)(x3&0xffff)<<16L); |
| 186 | } | 179 | } |
| 187 | 180 | ||
| 188 | void RC2_decrypt(d,key) | 181 | void RC2_decrypt(unsigned long *d, RC2_KEY *key) |
| 189 | unsigned long *d; | ||
| 190 | RC2_KEY *key; | ||
| 191 | { | 182 | { |
| 192 | int i,n; | 183 | int i,n; |
| 193 | register RC2_INT *p0,*p1; | 184 | register RC2_INT *p0,*p1; |
