diff options
author | beck <> | 2001-06-22 00:03:44 +0000 |
---|---|---|
committer | beck <> | 2001-06-22 00:03:44 +0000 |
commit | 38b6ff9e5294811c57541ad47940f8f8f41dc114 (patch) | |
tree | 402699541cee3cf3f2943b0384dbda7de534de70 /src/lib/libcrypto/des | |
parent | afae624d63e4e717c5bae8c7842a4712309f728f (diff) | |
download | openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.gz openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.bz2 openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.zip |
openssl-engine-0.9.6a merge
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r-- | src/lib/libcrypto/des/Makefile.ssl | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/des/asm/des-586.pl | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/des/asm/des686.pl | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/asm/readme | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/cbc_cksm.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/cfb64enc.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/des/cfb_enc.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/des/des.h | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/des/des_enc.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/des_opts.c | 48 | ||||
-rw-r--r-- | src/lib/libcrypto/des/dess.cpp | 18 | ||||
-rw-r--r-- | src/lib/libcrypto/des/ecb_enc.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/ede_cbcm_enc.c | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/des/ncbc_enc.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/des/ofb64enc.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/ofb_enc.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/pcbc_enc.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/des/speed.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/des/xcbc_enc.c | 8 |
19 files changed, 72 insertions, 71 deletions
diff --git a/src/lib/libcrypto/des/Makefile.ssl b/src/lib/libcrypto/des/Makefile.ssl index 34a360b7ab..cc5379feb2 100644 --- a/src/lib/libcrypto/des/Makefile.ssl +++ b/src/lib/libcrypto/des/Makefile.ssl | |||
@@ -57,7 +57,8 @@ all: lib | |||
57 | 57 | ||
58 | lib: $(LIBOBJ) | 58 | lib: $(LIBOBJ) |
59 | $(AR) $(LIB) $(LIBOBJ) | 59 | $(AR) $(LIB) $(LIBOBJ) |
60 | $(RANLIB) $(LIB) | 60 | @echo You may get an error following this line. Please ignore. |
61 | - $(RANLIB) $(LIB) | ||
61 | @touch lib | 62 | @touch lib |
62 | 63 | ||
63 | des: des.o cbc3_enc.o lib | 64 | des: des.o cbc3_enc.o lib |
diff --git a/src/lib/libcrypto/des/asm/des-586.pl b/src/lib/libcrypto/des/asm/des-586.pl index f054071077..c890766bc9 100644 --- a/src/lib/libcrypto/des/asm/des-586.pl +++ b/src/lib/libcrypto/des/asm/des-586.pl | |||
@@ -20,11 +20,11 @@ $L="edi"; | |||
20 | $R="esi"; | 20 | $R="esi"; |
21 | 21 | ||
22 | &external_label("des_SPtrans"); | 22 | &external_label("des_SPtrans"); |
23 | &des_encrypt("des_encrypt",1); | 23 | &des_encrypt("des_encrypt1",1); |
24 | &des_encrypt("des_encrypt2",0); | 24 | &des_encrypt("des_encrypt2",0); |
25 | &des_encrypt3("des_encrypt3",1); | 25 | &des_encrypt3("des_encrypt3",1); |
26 | &des_encrypt3("des_decrypt3",0); | 26 | &des_encrypt3("des_decrypt3",0); |
27 | &cbc("des_ncbc_encrypt","des_encrypt","des_encrypt",0,4,5,3,5,-1); | 27 | &cbc("des_ncbc_encrypt","des_encrypt1","des_encrypt1",0,4,5,3,5,-1); |
28 | &cbc("des_ede3_cbc_encrypt","des_encrypt3","des_decrypt3",0,6,7,3,4,5); | 28 | &cbc("des_ede3_cbc_encrypt","des_encrypt3","des_decrypt3",0,6,7,3,4,5); |
29 | 29 | ||
30 | &asm_finish(); | 30 | &asm_finish(); |
diff --git a/src/lib/libcrypto/des/asm/des686.pl b/src/lib/libcrypto/des/asm/des686.pl index 77dc5b51cd..84c3e85438 100644 --- a/src/lib/libcrypto/des/asm/des686.pl +++ b/src/lib/libcrypto/des/asm/des686.pl | |||
@@ -46,7 +46,7 @@ EOF | |||
46 | $L="edi"; | 46 | $L="edi"; |
47 | $R="esi"; | 47 | $R="esi"; |
48 | 48 | ||
49 | &des_encrypt("des_encrypt",1); | 49 | &des_encrypt("des_encrypt1",1); |
50 | &des_encrypt("des_encrypt2",0); | 50 | &des_encrypt("des_encrypt2",0); |
51 | 51 | ||
52 | &des_encrypt3("des_encrypt3",1); | 52 | &des_encrypt3("des_encrypt3",1); |
diff --git a/src/lib/libcrypto/des/asm/readme b/src/lib/libcrypto/des/asm/readme index f8529d9307..1beafe253b 100644 --- a/src/lib/libcrypto/des/asm/readme +++ b/src/lib/libcrypto/des/asm/readme | |||
@@ -8,7 +8,7 @@ assembler for the inner DES routines in libdes :-). | |||
8 | 8 | ||
9 | The file to implement in assembler is des_enc.c. Replace the following | 9 | The file to implement in assembler is des_enc.c. Replace the following |
10 | 4 functions | 10 | 4 functions |
11 | des_encrypt(DES_LONG data[2],des_key_schedule ks, int encrypt); | 11 | des_encrypt1(DES_LONG data[2],des_key_schedule ks, int encrypt); |
12 | des_encrypt2(DES_LONG data[2],des_key_schedule ks, int encrypt); | 12 | des_encrypt2(DES_LONG data[2],des_key_schedule ks, int encrypt); |
13 | des_encrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3); | 13 | des_encrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3); |
14 | des_decrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3); | 14 | des_decrypt3(DES_LONG data[2],des_key_schedule ks1,ks2,ks3); |
diff --git a/src/lib/libcrypto/des/cbc_cksm.c b/src/lib/libcrypto/des/cbc_cksm.c index 1e543cb2a1..b857df0985 100644 --- a/src/lib/libcrypto/des/cbc_cksm.c +++ b/src/lib/libcrypto/des/cbc_cksm.c | |||
@@ -82,7 +82,7 @@ DES_LONG des_cbc_cksum(const unsigned char *in, des_cblock *output, | |||
82 | 82 | ||
83 | tin0^=tout0; tin[0]=tin0; | 83 | tin0^=tout0; tin[0]=tin0; |
84 | tin1^=tout1; tin[1]=tin1; | 84 | tin1^=tout1; tin[1]=tin1; |
85 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 85 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
86 | /* fix 15/10/91 eay - thanks to keithr@sco.COM */ | 86 | /* fix 15/10/91 eay - thanks to keithr@sco.COM */ |
87 | tout0=tin[0]; | 87 | tout0=tin[0]; |
88 | tout1=tin[1]; | 88 | tout1=tin[1]; |
diff --git a/src/lib/libcrypto/des/cfb64enc.c b/src/lib/libcrypto/des/cfb64enc.c index 389a232cb3..105530dfa3 100644 --- a/src/lib/libcrypto/des/cfb64enc.c +++ b/src/lib/libcrypto/des/cfb64enc.c | |||
@@ -82,7 +82,7 @@ void des_cfb64_encrypt(const unsigned char *in, unsigned char *out, | |||
82 | { | 82 | { |
83 | c2l(iv,v0); ti[0]=v0; | 83 | c2l(iv,v0); ti[0]=v0; |
84 | c2l(iv,v1); ti[1]=v1; | 84 | c2l(iv,v1); ti[1]=v1; |
85 | des_encrypt(ti,schedule,DES_ENCRYPT); | 85 | des_encrypt1(ti,schedule,DES_ENCRYPT); |
86 | iv = &(*ivec)[0]; | 86 | iv = &(*ivec)[0]; |
87 | v0=ti[0]; l2c(v0,iv); | 87 | v0=ti[0]; l2c(v0,iv); |
88 | v0=ti[1]; l2c(v0,iv); | 88 | v0=ti[1]; l2c(v0,iv); |
@@ -102,7 +102,7 @@ void des_cfb64_encrypt(const unsigned char *in, unsigned char *out, | |||
102 | { | 102 | { |
103 | c2l(iv,v0); ti[0]=v0; | 103 | c2l(iv,v0); ti[0]=v0; |
104 | c2l(iv,v1); ti[1]=v1; | 104 | c2l(iv,v1); ti[1]=v1; |
105 | des_encrypt(ti,schedule,DES_ENCRYPT); | 105 | des_encrypt1(ti,schedule,DES_ENCRYPT); |
106 | iv = &(*ivec)[0]; | 106 | iv = &(*ivec)[0]; |
107 | v0=ti[0]; l2c(v0,iv); | 107 | v0=ti[0]; l2c(v0,iv); |
108 | v0=ti[1]; l2c(v0,iv); | 108 | v0=ti[1]; l2c(v0,iv); |
diff --git a/src/lib/libcrypto/des/cfb_enc.c b/src/lib/libcrypto/des/cfb_enc.c index cca34dd7c5..ec4fd4ea67 100644 --- a/src/lib/libcrypto/des/cfb_enc.c +++ b/src/lib/libcrypto/des/cfb_enc.c | |||
@@ -100,7 +100,7 @@ void des_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, | |||
100 | l-=n; | 100 | l-=n; |
101 | ti[0]=v0; | 101 | ti[0]=v0; |
102 | ti[1]=v1; | 102 | ti[1]=v1; |
103 | des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT); | 103 | des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT); |
104 | c2ln(in,d0,d1,n); | 104 | c2ln(in,d0,d1,n); |
105 | in+=n; | 105 | in+=n; |
106 | d0=(d0^ti[0])&mask0; | 106 | d0=(d0^ti[0])&mask0; |
@@ -132,7 +132,7 @@ void des_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, | |||
132 | l-=n; | 132 | l-=n; |
133 | ti[0]=v0; | 133 | ti[0]=v0; |
134 | ti[1]=v1; | 134 | ti[1]=v1; |
135 | des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT); | 135 | des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT); |
136 | c2ln(in,d0,d1,n); | 136 | c2ln(in,d0,d1,n); |
137 | in+=n; | 137 | in+=n; |
138 | /* 30-08-94 - eay - changed because l>>32 and | 138 | /* 30-08-94 - eay - changed because l>>32 and |
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h index 2db9748cb4..6b8a7ee11b 100644 --- a/src/lib/libcrypto/des/des.h +++ b/src/lib/libcrypto/des/des.h | |||
@@ -147,14 +147,14 @@ void des_ecb_encrypt(const_des_cblock *input,des_cblock *output, | |||
147 | Data is a pointer to 2 unsigned long's and ks is the | 147 | Data is a pointer to 2 unsigned long's and ks is the |
148 | des_key_schedule to use. enc, is non zero specifies encryption, | 148 | des_key_schedule to use. enc, is non zero specifies encryption, |
149 | zero if decryption. */ | 149 | zero if decryption. */ |
150 | void des_encrypt(DES_LONG *data,des_key_schedule ks, int enc); | 150 | void des_encrypt1(DES_LONG *data,des_key_schedule ks, int enc); |
151 | 151 | ||
152 | /* This functions is the same as des_encrypt() except that the DES | 152 | /* This functions is the same as des_encrypt1() except that the DES |
153 | initial permutation (IP) and final permutation (FP) have been left | 153 | initial permutation (IP) and final permutation (FP) have been left |
154 | out. As for des_encrypt(), you should not use this function. | 154 | out. As for des_encrypt1(), you should not use this function. |
155 | It is used by the routines in the library that implement triple DES. | 155 | It is used by the routines in the library that implement triple DES. |
156 | IP() des_encrypt2() des_encrypt2() des_encrypt2() FP() is the same | 156 | IP() des_encrypt2() des_encrypt2() des_encrypt2() FP() is the same |
157 | as des_encrypt() des_encrypt() des_encrypt() except faster :-). */ | 157 | as des_encrypt1() des_encrypt1() des_encrypt1() except faster :-). */ |
158 | void des_encrypt2(DES_LONG *data,des_key_schedule ks, int enc); | 158 | void des_encrypt2(DES_LONG *data,des_key_schedule ks, int enc); |
159 | 159 | ||
160 | void des_encrypt3(DES_LONG *data, des_key_schedule ks1, | 160 | void des_encrypt3(DES_LONG *data, des_key_schedule ks1, |
diff --git a/src/lib/libcrypto/des/des_enc.c b/src/lib/libcrypto/des/des_enc.c index 8311e10628..0bd9fa39bc 100644 --- a/src/lib/libcrypto/des/des_enc.c +++ b/src/lib/libcrypto/des/des_enc.c | |||
@@ -58,7 +58,7 @@ | |||
58 | 58 | ||
59 | #include "des_locl.h" | 59 | #include "des_locl.h" |
60 | 60 | ||
61 | void des_encrypt(DES_LONG *data, des_key_schedule ks, int enc) | 61 | void des_encrypt1(DES_LONG *data, des_key_schedule ks, int enc) |
62 | { | 62 | { |
63 | register DES_LONG l,r,t,u; | 63 | register DES_LONG l,r,t,u; |
64 | #ifdef DES_PTR | 64 | #ifdef DES_PTR |
diff --git a/src/lib/libcrypto/des/des_opts.c b/src/lib/libcrypto/des/des_opts.c index b2ca7ac31d..138ee1c6b4 100644 --- a/src/lib/libcrypto/des/des_opts.c +++ b/src/lib/libcrypto/des/des_opts.c | |||
@@ -118,7 +118,7 @@ extern void exit(); | |||
118 | #undef DES_RISC2 | 118 | #undef DES_RISC2 |
119 | #undef DES_PTR | 119 | #undef DES_PTR |
120 | #undef D_ENCRYPT | 120 | #undef D_ENCRYPT |
121 | #define des_encrypt des_encrypt_u4_cisc_idx | 121 | #define des_encrypt1 des_encrypt_u4_cisc_idx |
122 | #define des_encrypt2 des_encrypt2_u4_cisc_idx | 122 | #define des_encrypt2 des_encrypt2_u4_cisc_idx |
123 | #define des_encrypt3 des_encrypt3_u4_cisc_idx | 123 | #define des_encrypt3 des_encrypt3_u4_cisc_idx |
124 | #define des_decrypt3 des_decrypt3_u4_cisc_idx | 124 | #define des_decrypt3 des_decrypt3_u4_cisc_idx |
@@ -130,11 +130,11 @@ extern void exit(); | |||
130 | #undef DES_RISC2 | 130 | #undef DES_RISC2 |
131 | #undef DES_PTR | 131 | #undef DES_PTR |
132 | #undef D_ENCRYPT | 132 | #undef D_ENCRYPT |
133 | #undef des_encrypt | 133 | #undef des_encrypt1 |
134 | #undef des_encrypt2 | 134 | #undef des_encrypt2 |
135 | #undef des_encrypt3 | 135 | #undef des_encrypt3 |
136 | #undef des_decrypt3 | 136 | #undef des_decrypt3 |
137 | #define des_encrypt des_encrypt_u16_cisc_idx | 137 | #define des_encrypt1 des_encrypt_u16_cisc_idx |
138 | #define des_encrypt2 des_encrypt2_u16_cisc_idx | 138 | #define des_encrypt2 des_encrypt2_u16_cisc_idx |
139 | #define des_encrypt3 des_encrypt3_u16_cisc_idx | 139 | #define des_encrypt3 des_encrypt3_u16_cisc_idx |
140 | #define des_decrypt3 des_decrypt3_u16_cisc_idx | 140 | #define des_decrypt3 des_decrypt3_u16_cisc_idx |
@@ -146,11 +146,11 @@ extern void exit(); | |||
146 | #undef DES_RISC2 | 146 | #undef DES_RISC2 |
147 | #undef DES_PTR | 147 | #undef DES_PTR |
148 | #undef D_ENCRYPT | 148 | #undef D_ENCRYPT |
149 | #undef des_encrypt | 149 | #undef des_encrypt1 |
150 | #undef des_encrypt2 | 150 | #undef des_encrypt2 |
151 | #undef des_encrypt3 | 151 | #undef des_encrypt3 |
152 | #undef des_decrypt3 | 152 | #undef des_decrypt3 |
153 | #define des_encrypt des_encrypt_u4_risc1_idx | 153 | #define des_encrypt1 des_encrypt_u4_risc1_idx |
154 | #define des_encrypt2 des_encrypt2_u4_risc1_idx | 154 | #define des_encrypt2 des_encrypt2_u4_risc1_idx |
155 | #define des_encrypt3 des_encrypt3_u4_risc1_idx | 155 | #define des_encrypt3 des_encrypt3_u4_risc1_idx |
156 | #define des_decrypt3 des_decrypt3_u4_risc1_idx | 156 | #define des_decrypt3 des_decrypt3_u4_risc1_idx |
@@ -166,11 +166,11 @@ extern void exit(); | |||
166 | #define DES_RISC2 | 166 | #define DES_RISC2 |
167 | #undef DES_PTR | 167 | #undef DES_PTR |
168 | #undef D_ENCRYPT | 168 | #undef D_ENCRYPT |
169 | #undef des_encrypt | 169 | #undef des_encrypt1 |
170 | #undef des_encrypt2 | 170 | #undef des_encrypt2 |
171 | #undef des_encrypt3 | 171 | #undef des_encrypt3 |
172 | #undef des_decrypt3 | 172 | #undef des_decrypt3 |
173 | #define des_encrypt des_encrypt_u4_risc2_idx | 173 | #define des_encrypt1 des_encrypt_u4_risc2_idx |
174 | #define des_encrypt2 des_encrypt2_u4_risc2_idx | 174 | #define des_encrypt2 des_encrypt2_u4_risc2_idx |
175 | #define des_encrypt3 des_encrypt3_u4_risc2_idx | 175 | #define des_encrypt3 des_encrypt3_u4_risc2_idx |
176 | #define des_decrypt3 des_decrypt3_u4_risc2_idx | 176 | #define des_decrypt3 des_decrypt3_u4_risc2_idx |
@@ -182,11 +182,11 @@ extern void exit(); | |||
182 | #undef DES_RISC2 | 182 | #undef DES_RISC2 |
183 | #undef DES_PTR | 183 | #undef DES_PTR |
184 | #undef D_ENCRYPT | 184 | #undef D_ENCRYPT |
185 | #undef des_encrypt | 185 | #undef des_encrypt1 |
186 | #undef des_encrypt2 | 186 | #undef des_encrypt2 |
187 | #undef des_encrypt3 | 187 | #undef des_encrypt3 |
188 | #undef des_decrypt3 | 188 | #undef des_decrypt3 |
189 | #define des_encrypt des_encrypt_u16_risc1_idx | 189 | #define des_encrypt1 des_encrypt_u16_risc1_idx |
190 | #define des_encrypt2 des_encrypt2_u16_risc1_idx | 190 | #define des_encrypt2 des_encrypt2_u16_risc1_idx |
191 | #define des_encrypt3 des_encrypt3_u16_risc1_idx | 191 | #define des_encrypt3 des_encrypt3_u16_risc1_idx |
192 | #define des_decrypt3 des_decrypt3_u16_risc1_idx | 192 | #define des_decrypt3 des_decrypt3_u16_risc1_idx |
@@ -198,11 +198,11 @@ extern void exit(); | |||
198 | #define DES_RISC2 | 198 | #define DES_RISC2 |
199 | #undef DES_PTR | 199 | #undef DES_PTR |
200 | #undef D_ENCRYPT | 200 | #undef D_ENCRYPT |
201 | #undef des_encrypt | 201 | #undef des_encrypt1 |
202 | #undef des_encrypt2 | 202 | #undef des_encrypt2 |
203 | #undef des_encrypt3 | 203 | #undef des_encrypt3 |
204 | #undef des_decrypt3 | 204 | #undef des_decrypt3 |
205 | #define des_encrypt des_encrypt_u16_risc2_idx | 205 | #define des_encrypt1 des_encrypt_u16_risc2_idx |
206 | #define des_encrypt2 des_encrypt2_u16_risc2_idx | 206 | #define des_encrypt2 des_encrypt2_u16_risc2_idx |
207 | #define des_encrypt3 des_encrypt3_u16_risc2_idx | 207 | #define des_encrypt3 des_encrypt3_u16_risc2_idx |
208 | #define des_decrypt3 des_decrypt3_u16_risc2_idx | 208 | #define des_decrypt3 des_decrypt3_u16_risc2_idx |
@@ -218,11 +218,11 @@ extern void exit(); | |||
218 | #undef DES_RISC2 | 218 | #undef DES_RISC2 |
219 | #define DES_PTR | 219 | #define DES_PTR |
220 | #undef D_ENCRYPT | 220 | #undef D_ENCRYPT |
221 | #undef des_encrypt | 221 | #undef des_encrypt1 |
222 | #undef des_encrypt2 | 222 | #undef des_encrypt2 |
223 | #undef des_encrypt3 | 223 | #undef des_encrypt3 |
224 | #undef des_decrypt3 | 224 | #undef des_decrypt3 |
225 | #define des_encrypt des_encrypt_u4_cisc_ptr | 225 | #define des_encrypt1 des_encrypt_u4_cisc_ptr |
226 | #define des_encrypt2 des_encrypt2_u4_cisc_ptr | 226 | #define des_encrypt2 des_encrypt2_u4_cisc_ptr |
227 | #define des_encrypt3 des_encrypt3_u4_cisc_ptr | 227 | #define des_encrypt3 des_encrypt3_u4_cisc_ptr |
228 | #define des_decrypt3 des_decrypt3_u4_cisc_ptr | 228 | #define des_decrypt3 des_decrypt3_u4_cisc_ptr |
@@ -234,11 +234,11 @@ extern void exit(); | |||
234 | #undef DES_RISC2 | 234 | #undef DES_RISC2 |
235 | #define DES_PTR | 235 | #define DES_PTR |
236 | #undef D_ENCRYPT | 236 | #undef D_ENCRYPT |
237 | #undef des_encrypt | 237 | #undef des_encrypt1 |
238 | #undef des_encrypt2 | 238 | #undef des_encrypt2 |
239 | #undef des_encrypt3 | 239 | #undef des_encrypt3 |
240 | #undef des_decrypt3 | 240 | #undef des_decrypt3 |
241 | #define des_encrypt des_encrypt_u16_cisc_ptr | 241 | #define des_encrypt1 des_encrypt_u16_cisc_ptr |
242 | #define des_encrypt2 des_encrypt2_u16_cisc_ptr | 242 | #define des_encrypt2 des_encrypt2_u16_cisc_ptr |
243 | #define des_encrypt3 des_encrypt3_u16_cisc_ptr | 243 | #define des_encrypt3 des_encrypt3_u16_cisc_ptr |
244 | #define des_decrypt3 des_decrypt3_u16_cisc_ptr | 244 | #define des_decrypt3 des_decrypt3_u16_cisc_ptr |
@@ -250,11 +250,11 @@ extern void exit(); | |||
250 | #undef DES_RISC2 | 250 | #undef DES_RISC2 |
251 | #define DES_PTR | 251 | #define DES_PTR |
252 | #undef D_ENCRYPT | 252 | #undef D_ENCRYPT |
253 | #undef des_encrypt | 253 | #undef des_encrypt1 |
254 | #undef des_encrypt2 | 254 | #undef des_encrypt2 |
255 | #undef des_encrypt3 | 255 | #undef des_encrypt3 |
256 | #undef des_decrypt3 | 256 | #undef des_decrypt3 |
257 | #define des_encrypt des_encrypt_u4_risc1_ptr | 257 | #define des_encrypt1 des_encrypt_u4_risc1_ptr |
258 | #define des_encrypt2 des_encrypt2_u4_risc1_ptr | 258 | #define des_encrypt2 des_encrypt2_u4_risc1_ptr |
259 | #define des_encrypt3 des_encrypt3_u4_risc1_ptr | 259 | #define des_encrypt3 des_encrypt3_u4_risc1_ptr |
260 | #define des_decrypt3 des_decrypt3_u4_risc1_ptr | 260 | #define des_decrypt3 des_decrypt3_u4_risc1_ptr |
@@ -270,11 +270,11 @@ extern void exit(); | |||
270 | #define DES_RISC2 | 270 | #define DES_RISC2 |
271 | #define DES_PTR | 271 | #define DES_PTR |
272 | #undef D_ENCRYPT | 272 | #undef D_ENCRYPT |
273 | #undef des_encrypt | 273 | #undef des_encrypt1 |
274 | #undef des_encrypt2 | 274 | #undef des_encrypt2 |
275 | #undef des_encrypt3 | 275 | #undef des_encrypt3 |
276 | #undef des_decrypt3 | 276 | #undef des_decrypt3 |
277 | #define des_encrypt des_encrypt_u4_risc2_ptr | 277 | #define des_encrypt1 des_encrypt_u4_risc2_ptr |
278 | #define des_encrypt2 des_encrypt2_u4_risc2_ptr | 278 | #define des_encrypt2 des_encrypt2_u4_risc2_ptr |
279 | #define des_encrypt3 des_encrypt3_u4_risc2_ptr | 279 | #define des_encrypt3 des_encrypt3_u4_risc2_ptr |
280 | #define des_decrypt3 des_decrypt3_u4_risc2_ptr | 280 | #define des_decrypt3 des_decrypt3_u4_risc2_ptr |
@@ -286,11 +286,11 @@ extern void exit(); | |||
286 | #undef DES_RISC2 | 286 | #undef DES_RISC2 |
287 | #define DES_PTR | 287 | #define DES_PTR |
288 | #undef D_ENCRYPT | 288 | #undef D_ENCRYPT |
289 | #undef des_encrypt | 289 | #undef des_encrypt1 |
290 | #undef des_encrypt2 | 290 | #undef des_encrypt2 |
291 | #undef des_encrypt3 | 291 | #undef des_encrypt3 |
292 | #undef des_decrypt3 | 292 | #undef des_decrypt3 |
293 | #define des_encrypt des_encrypt_u16_risc1_ptr | 293 | #define des_encrypt1 des_encrypt_u16_risc1_ptr |
294 | #define des_encrypt2 des_encrypt2_u16_risc1_ptr | 294 | #define des_encrypt2 des_encrypt2_u16_risc1_ptr |
295 | #define des_encrypt3 des_encrypt3_u16_risc1_ptr | 295 | #define des_encrypt3 des_encrypt3_u16_risc1_ptr |
296 | #define des_decrypt3 des_decrypt3_u16_risc1_ptr | 296 | #define des_decrypt3 des_decrypt3_u16_risc1_ptr |
@@ -302,11 +302,11 @@ extern void exit(); | |||
302 | #define DES_RISC2 | 302 | #define DES_RISC2 |
303 | #define DES_PTR | 303 | #define DES_PTR |
304 | #undef D_ENCRYPT | 304 | #undef D_ENCRYPT |
305 | #undef des_encrypt | 305 | #undef des_encrypt1 |
306 | #undef des_encrypt2 | 306 | #undef des_encrypt2 |
307 | #undef des_encrypt3 | 307 | #undef des_encrypt3 |
308 | #undef des_decrypt3 | 308 | #undef des_decrypt3 |
309 | #define des_encrypt des_encrypt_u16_risc2_ptr | 309 | #define des_encrypt1 des_encrypt_u16_risc2_ptr |
310 | #define des_encrypt2 des_encrypt2_u16_risc2_ptr | 310 | #define des_encrypt2 des_encrypt2_u16_risc2_ptr |
311 | #define des_encrypt3 des_encrypt3_u16_risc2_ptr | 311 | #define des_encrypt3 des_encrypt3_u16_risc2_ptr |
312 | #define des_decrypt3 des_decrypt3_u16_risc2_ptr | 312 | #define des_decrypt3 des_decrypt3_u16_risc2_ptr |
@@ -453,7 +453,7 @@ int main(int argc, char **argv) | |||
453 | count*=2; | 453 | count*=2; |
454 | Time_F(START); | 454 | Time_F(START); |
455 | for (i=count; i; i--) | 455 | for (i=count; i; i--) |
456 | des_encrypt(data,&(sch[0]),DES_ENCRYPT); | 456 | des_encrypt1(data,&(sch[0]),DES_ENCRYPT); |
457 | d=Time_F(STOP); | 457 | d=Time_F(STOP); |
458 | } while (d < 3.0); | 458 | } while (d < 3.0); |
459 | ca=count; | 459 | ca=count; |
diff --git a/src/lib/libcrypto/des/dess.cpp b/src/lib/libcrypto/des/dess.cpp index 753e67ad9b..5549bab90a 100644 --- a/src/lib/libcrypto/des/dess.cpp +++ b/src/lib/libcrypto/des/dess.cpp | |||
@@ -45,19 +45,19 @@ void main(int argc,char *argv[]) | |||
45 | { | 45 | { |
46 | for (i=0; i<1000; i++) /**/ | 46 | for (i=0; i<1000; i++) /**/ |
47 | { | 47 | { |
48 | des_encrypt(&data[0],key,1); | 48 | des_encrypt1(&data[0],key,1); |
49 | GetTSC(s1); | 49 | GetTSC(s1); |
50 | des_encrypt(&data[0],key,1); | 50 | des_encrypt1(&data[0],key,1); |
51 | des_encrypt(&data[0],key,1); | 51 | des_encrypt1(&data[0],key,1); |
52 | des_encrypt(&data[0],key,1); | 52 | des_encrypt1(&data[0],key,1); |
53 | GetTSC(e1); | 53 | GetTSC(e1); |
54 | GetTSC(s2); | 54 | GetTSC(s2); |
55 | des_encrypt(&data[0],key,1); | 55 | des_encrypt1(&data[0],key,1); |
56 | des_encrypt(&data[0],key,1); | 56 | des_encrypt1(&data[0],key,1); |
57 | des_encrypt(&data[0],key,1); | 57 | des_encrypt1(&data[0],key,1); |
58 | des_encrypt(&data[0],key,1); | 58 | des_encrypt1(&data[0],key,1); |
59 | GetTSC(e2); | 59 | GetTSC(e2); |
60 | des_encrypt(&data[0],key,1); | 60 | des_encrypt1(&data[0],key,1); |
61 | } | 61 | } |
62 | 62 | ||
63 | printf("des %d %d (%d)\n", | 63 | printf("des %d %d (%d)\n", |
diff --git a/src/lib/libcrypto/des/ecb_enc.c b/src/lib/libcrypto/des/ecb_enc.c index b261a8aad9..d481327ef3 100644 --- a/src/lib/libcrypto/des/ecb_enc.c +++ b/src/lib/libcrypto/des/ecb_enc.c | |||
@@ -114,7 +114,7 @@ void des_ecb_encrypt(const_des_cblock *input, des_cblock *output, | |||
114 | 114 | ||
115 | c2l(in,l); ll[0]=l; | 115 | c2l(in,l); ll[0]=l; |
116 | c2l(in,l); ll[1]=l; | 116 | c2l(in,l); ll[1]=l; |
117 | des_encrypt(ll,ks,enc); | 117 | des_encrypt1(ll,ks,enc); |
118 | l=ll[0]; l2c(l,out); | 118 | l=ll[0]; l2c(l,out); |
119 | l=ll[1]; l2c(l,out); | 119 | l=ll[1]; l2c(l,out); |
120 | l=ll[0]=ll[1]=0; | 120 | l=ll[0]=ll[1]=0; |
diff --git a/src/lib/libcrypto/des/ede_cbcm_enc.c b/src/lib/libcrypto/des/ede_cbcm_enc.c index c53062481d..b98f7e17af 100644 --- a/src/lib/libcrypto/des/ede_cbcm_enc.c +++ b/src/lib/libcrypto/des/ede_cbcm_enc.c | |||
@@ -95,7 +95,7 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, | |||
95 | { | 95 | { |
96 | tin[0]=m0; | 96 | tin[0]=m0; |
97 | tin[1]=m1; | 97 | tin[1]=m1; |
98 | des_encrypt(tin,ks3,1); | 98 | des_encrypt1(tin,ks3,1); |
99 | m0=tin[0]; | 99 | m0=tin[0]; |
100 | m1=tin[1]; | 100 | m1=tin[1]; |
101 | 101 | ||
@@ -113,13 +113,13 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, | |||
113 | 113 | ||
114 | tin[0]=tin0; | 114 | tin[0]=tin0; |
115 | tin[1]=tin1; | 115 | tin[1]=tin1; |
116 | des_encrypt(tin,ks1,1); | 116 | des_encrypt1(tin,ks1,1); |
117 | tin[0]^=m0; | 117 | tin[0]^=m0; |
118 | tin[1]^=m1; | 118 | tin[1]^=m1; |
119 | des_encrypt(tin,ks2,0); | 119 | des_encrypt1(tin,ks2,0); |
120 | tin[0]^=m0; | 120 | tin[0]^=m0; |
121 | tin[1]^=m1; | 121 | tin[1]^=m1; |
122 | des_encrypt(tin,ks1,1); | 122 | des_encrypt1(tin,ks1,1); |
123 | tout0=tin[0]; | 123 | tout0=tin[0]; |
124 | tout1=tin[1]; | 124 | tout1=tin[1]; |
125 | 125 | ||
@@ -146,7 +146,7 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, | |||
146 | { | 146 | { |
147 | tin[0]=m0; | 147 | tin[0]=m0; |
148 | tin[1]=m1; | 148 | tin[1]=m1; |
149 | des_encrypt(tin,ks3,1); | 149 | des_encrypt1(tin,ks3,1); |
150 | m0=tin[0]; | 150 | m0=tin[0]; |
151 | m1=tin[1]; | 151 | m1=tin[1]; |
152 | 152 | ||
@@ -158,13 +158,13 @@ void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, | |||
158 | 158 | ||
159 | tin[0]=tin0; | 159 | tin[0]=tin0; |
160 | tin[1]=tin1; | 160 | tin[1]=tin1; |
161 | des_encrypt(tin,ks1,0); | 161 | des_encrypt1(tin,ks1,0); |
162 | tin[0]^=m0; | 162 | tin[0]^=m0; |
163 | tin[1]^=m1; | 163 | tin[1]^=m1; |
164 | des_encrypt(tin,ks2,1); | 164 | des_encrypt1(tin,ks2,1); |
165 | tin[0]^=m0; | 165 | tin[0]^=m0; |
166 | tin[1]^=m1; | 166 | tin[1]^=m1; |
167 | des_encrypt(tin,ks1,0); | 167 | des_encrypt1(tin,ks1,0); |
168 | tout0=tin[0]; | 168 | tout0=tin[0]; |
169 | tout1=tin[1]; | 169 | tout1=tin[1]; |
170 | 170 | ||
diff --git a/src/lib/libcrypto/des/ncbc_enc.c b/src/lib/libcrypto/des/ncbc_enc.c index 3b681691a9..b8db07b199 100644 --- a/src/lib/libcrypto/des/ncbc_enc.c +++ b/src/lib/libcrypto/des/ncbc_enc.c | |||
@@ -89,7 +89,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
89 | c2l(in,tin1); | 89 | c2l(in,tin1); |
90 | tin0^=tout0; tin[0]=tin0; | 90 | tin0^=tout0; tin[0]=tin0; |
91 | tin1^=tout1; tin[1]=tin1; | 91 | tin1^=tout1; tin[1]=tin1; |
92 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 92 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
93 | tout0=tin[0]; l2c(tout0,out); | 93 | tout0=tin[0]; l2c(tout0,out); |
94 | tout1=tin[1]; l2c(tout1,out); | 94 | tout1=tin[1]; l2c(tout1,out); |
95 | } | 95 | } |
@@ -98,7 +98,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
98 | c2ln(in,tin0,tin1,l+8); | 98 | c2ln(in,tin0,tin1,l+8); |
99 | tin0^=tout0; tin[0]=tin0; | 99 | tin0^=tout0; tin[0]=tin0; |
100 | tin1^=tout1; tin[1]=tin1; | 100 | tin1^=tout1; tin[1]=tin1; |
101 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 101 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
102 | tout0=tin[0]; l2c(tout0,out); | 102 | tout0=tin[0]; l2c(tout0,out); |
103 | tout1=tin[1]; l2c(tout1,out); | 103 | tout1=tin[1]; l2c(tout1,out); |
104 | } | 104 | } |
@@ -116,7 +116,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
116 | { | 116 | { |
117 | c2l(in,tin0); tin[0]=tin0; | 117 | c2l(in,tin0); tin[0]=tin0; |
118 | c2l(in,tin1); tin[1]=tin1; | 118 | c2l(in,tin1); tin[1]=tin1; |
119 | des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT); | 119 | des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT); |
120 | tout0=tin[0]^xor0; | 120 | tout0=tin[0]^xor0; |
121 | tout1=tin[1]^xor1; | 121 | tout1=tin[1]^xor1; |
122 | l2c(tout0,out); | 122 | l2c(tout0,out); |
@@ -128,7 +128,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
128 | { | 128 | { |
129 | c2l(in,tin0); tin[0]=tin0; | 129 | c2l(in,tin0); tin[0]=tin0; |
130 | c2l(in,tin1); tin[1]=tin1; | 130 | c2l(in,tin1); tin[1]=tin1; |
131 | des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT); | 131 | des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT); |
132 | tout0=tin[0]^xor0; | 132 | tout0=tin[0]^xor0; |
133 | tout1=tin[1]^xor1; | 133 | tout1=tin[1]^xor1; |
134 | l2cn(tout0,tout1,out,l+8); | 134 | l2cn(tout0,tout1,out,l+8); |
diff --git a/src/lib/libcrypto/des/ofb64enc.c b/src/lib/libcrypto/des/ofb64enc.c index 64953959ca..1a1d1f1ac4 100644 --- a/src/lib/libcrypto/des/ofb64enc.c +++ b/src/lib/libcrypto/des/ofb64enc.c | |||
@@ -87,7 +87,7 @@ void des_ofb64_encrypt(register const unsigned char *in, | |||
87 | { | 87 | { |
88 | if (n == 0) | 88 | if (n == 0) |
89 | { | 89 | { |
90 | des_encrypt(ti,schedule,DES_ENCRYPT); | 90 | des_encrypt1(ti,schedule,DES_ENCRYPT); |
91 | dp=d; | 91 | dp=d; |
92 | t=ti[0]; l2c(t,dp); | 92 | t=ti[0]; l2c(t,dp); |
93 | t=ti[1]; l2c(t,dp); | 93 | t=ti[1]; l2c(t,dp); |
diff --git a/src/lib/libcrypto/des/ofb_enc.c b/src/lib/libcrypto/des/ofb_enc.c index a8f425a575..70493e632c 100644 --- a/src/lib/libcrypto/des/ofb_enc.c +++ b/src/lib/libcrypto/des/ofb_enc.c | |||
@@ -101,7 +101,7 @@ void des_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits, | |||
101 | { | 101 | { |
102 | ti[0]=v0; | 102 | ti[0]=v0; |
103 | ti[1]=v1; | 103 | ti[1]=v1; |
104 | des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT); | 104 | des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT); |
105 | vv0=ti[0]; | 105 | vv0=ti[0]; |
106 | vv1=ti[1]; | 106 | vv1=ti[1]; |
107 | c2ln(in,d0,d1,n); | 107 | c2ln(in,d0,d1,n); |
diff --git a/src/lib/libcrypto/des/pcbc_enc.c b/src/lib/libcrypto/des/pcbc_enc.c index dd69a26d4a..5b987f074d 100644 --- a/src/lib/libcrypto/des/pcbc_enc.c +++ b/src/lib/libcrypto/des/pcbc_enc.c | |||
@@ -85,7 +85,7 @@ void des_pcbc_encrypt(const unsigned char *input, unsigned char *output, | |||
85 | c2ln(in,sin0,sin1,length); | 85 | c2ln(in,sin0,sin1,length); |
86 | tin[0]=sin0^xor0; | 86 | tin[0]=sin0^xor0; |
87 | tin[1]=sin1^xor1; | 87 | tin[1]=sin1^xor1; |
88 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 88 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
89 | tout0=tin[0]; | 89 | tout0=tin[0]; |
90 | tout1=tin[1]; | 90 | tout1=tin[1]; |
91 | xor0=sin0^tout0; | 91 | xor0=sin0^tout0; |
@@ -103,7 +103,7 @@ void des_pcbc_encrypt(const unsigned char *input, unsigned char *output, | |||
103 | c2l(in,sin1); | 103 | c2l(in,sin1); |
104 | tin[0]=sin0; | 104 | tin[0]=sin0; |
105 | tin[1]=sin1; | 105 | tin[1]=sin1; |
106 | des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT); | 106 | des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT); |
107 | tout0=tin[0]^xor0; | 107 | tout0=tin[0]^xor0; |
108 | tout1=tin[1]^xor1; | 108 | tout1=tin[1]^xor1; |
109 | if (length >= 8) | 109 | if (length >= 8) |
diff --git a/src/lib/libcrypto/des/speed.c b/src/lib/libcrypto/des/speed.c index 814b86f4ae..1223edf290 100644 --- a/src/lib/libcrypto/des/speed.c +++ b/src/lib/libcrypto/des/speed.c | |||
@@ -204,7 +204,7 @@ int main(int argc, char **argv) | |||
204 | count*=2; | 204 | count*=2; |
205 | Time_F(START); | 205 | Time_F(START); |
206 | for (i=count; i; i--) | 206 | for (i=count; i; i--) |
207 | des_encrypt(data,&(sch[0]),DES_ENCRYPT); | 207 | des_encrypt1(data,&(sch[0]),DES_ENCRYPT); |
208 | d=Time_F(STOP); | 208 | d=Time_F(STOP); |
209 | } while (d < 3.0); | 209 | } while (d < 3.0); |
210 | ca=count; | 210 | ca=count; |
@@ -241,7 +241,7 @@ int main(int argc, char **argv) | |||
241 | { | 241 | { |
242 | DES_LONG data[2]; | 242 | DES_LONG data[2]; |
243 | 243 | ||
244 | des_encrypt(data,&(sch[0]),DES_ENCRYPT); | 244 | des_encrypt1(data,&(sch[0]),DES_ENCRYPT); |
245 | } | 245 | } |
246 | d=Time_F(STOP); | 246 | d=Time_F(STOP); |
247 | printf("%ld des_encrypt's in %.2f second\n",count,d); | 247 | printf("%ld des_encrypt's in %.2f second\n",count,d); |
diff --git a/src/lib/libcrypto/des/xcbc_enc.c b/src/lib/libcrypto/des/xcbc_enc.c index 51e17e6b8a..ccfede13ac 100644 --- a/src/lib/libcrypto/des/xcbc_enc.c +++ b/src/lib/libcrypto/des/xcbc_enc.c | |||
@@ -138,7 +138,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out, | |||
138 | c2l(in,tin1); | 138 | c2l(in,tin1); |
139 | tin0^=tout0^inW0; tin[0]=tin0; | 139 | tin0^=tout0^inW0; tin[0]=tin0; |
140 | tin1^=tout1^inW1; tin[1]=tin1; | 140 | tin1^=tout1^inW1; tin[1]=tin1; |
141 | des_encrypt(tin,schedule,DES_ENCRYPT); | 141 | des_encrypt1(tin,schedule,DES_ENCRYPT); |
142 | tout0=tin[0]^outW0; l2c(tout0,out); | 142 | tout0=tin[0]^outW0; l2c(tout0,out); |
143 | tout1=tin[1]^outW1; l2c(tout1,out); | 143 | tout1=tin[1]^outW1; l2c(tout1,out); |
144 | } | 144 | } |
@@ -147,7 +147,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out, | |||
147 | c2ln(in,tin0,tin1,l+8); | 147 | c2ln(in,tin0,tin1,l+8); |
148 | tin0^=tout0^inW0; tin[0]=tin0; | 148 | tin0^=tout0^inW0; tin[0]=tin0; |
149 | tin1^=tout1^inW1; tin[1]=tin1; | 149 | tin1^=tout1^inW1; tin[1]=tin1; |
150 | des_encrypt(tin,schedule,DES_ENCRYPT); | 150 | des_encrypt1(tin,schedule,DES_ENCRYPT); |
151 | tout0=tin[0]^outW0; l2c(tout0,out); | 151 | tout0=tin[0]^outW0; l2c(tout0,out); |
152 | tout1=tin[1]^outW1; l2c(tout1,out); | 152 | tout1=tin[1]^outW1; l2c(tout1,out); |
153 | } | 153 | } |
@@ -163,7 +163,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out, | |||
163 | { | 163 | { |
164 | c2l(in,tin0); tin[0]=tin0^outW0; | 164 | c2l(in,tin0); tin[0]=tin0^outW0; |
165 | c2l(in,tin1); tin[1]=tin1^outW1; | 165 | c2l(in,tin1); tin[1]=tin1^outW1; |
166 | des_encrypt(tin,schedule,DES_DECRYPT); | 166 | des_encrypt1(tin,schedule,DES_DECRYPT); |
167 | tout0=tin[0]^xor0^inW0; | 167 | tout0=tin[0]^xor0^inW0; |
168 | tout1=tin[1]^xor1^inW1; | 168 | tout1=tin[1]^xor1^inW1; |
169 | l2c(tout0,out); | 169 | l2c(tout0,out); |
@@ -175,7 +175,7 @@ void des_xcbc_encrypt(const unsigned char *in, unsigned char *out, | |||
175 | { | 175 | { |
176 | c2l(in,tin0); tin[0]=tin0^outW0; | 176 | c2l(in,tin0); tin[0]=tin0^outW0; |
177 | c2l(in,tin1); tin[1]=tin1^outW1; | 177 | c2l(in,tin1); tin[1]=tin1^outW1; |
178 | des_encrypt(tin,schedule,DES_DECRYPT); | 178 | des_encrypt1(tin,schedule,DES_DECRYPT); |
179 | tout0=tin[0]^xor0^inW0; | 179 | tout0=tin[0]^xor0^inW0; |
180 | tout1=tin[1]^xor1^inW1; | 180 | tout1=tin[1]^xor1^inW1; |
181 | l2cn(tout0,tout1,out,l+8); | 181 | l2cn(tout0,tout1,out,l+8); |