summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc2/rc2_cbc.c
diff options
context:
space:
mode:
authorbeck <>1999-09-29 04:37:45 +0000
committerbeck <>1999-09-29 04:37:45 +0000
commitde8f24ea083384bb66b32ec105dc4743c5663cdf (patch)
tree1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/rc2/rc2_cbc.c
parentcb929d29896bcb87c2a97417fbd03e50078fc178 (diff)
downloadopenbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2_cbc.c')
-rw-r--r--src/lib/libcrypto/rc2/rc2_cbc.c19
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..1202184e85 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
62void RC2_cbc_encrypt(in, out, length, ks, iv, encrypt) 62void RC2_cbc_encrypt(unsigned char *in, unsigned char *out, long length,
63unsigned char *in; 63 RC2_KEY *ks, unsigned char *iv, int encrypt)
64unsigned char *out;
65long length;
66RC2_KEY *ks;
67unsigned char *iv;
68int 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
141void RC2_encrypt(d,key) 136void RC2_encrypt(unsigned long *d, RC2_KEY *key)
142unsigned long *d;
143RC2_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
188void RC2_decrypt(d,key) 181void RC2_decrypt(unsigned long *d, RC2_KEY *key)
189unsigned long *d;
190RC2_KEY *key;
191 { 182 {
192 int i,n; 183 int i,n;
193 register RC2_INT *p0,*p1; 184 register RC2_INT *p0,*p1;