aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/ecb_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/des/ecb_enc.c')
-rw-r--r--crypto/des/ecb_enc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/des/ecb_enc.c b/crypto/des/ecb_enc.c
index 6c79d57561..78e1f2d64e 100644
--- a/crypto/des/ecb_enc.c
+++ b/crypto/des/ecb_enc.c
@@ -102,18 +102,15 @@ char *des_options()
}
-void des_ecb_encrypt(input, output, ks, enc)
-des_cblock (*input);
-des_cblock (*output);
+void des_ecb_encrypt(in, out, ks, enc)
+const unsigned char *in;
+unsigned char *out;
des_key_schedule ks;
int enc;
{
register DES_LONG l;
- register unsigned char *in,*out;
DES_LONG ll[2];
- in=(unsigned char *)input;
- out=(unsigned char *)output;
c2l(in,l); ll[0]=l;
c2l(in,l); ll[1]=l;
des_encrypt(ll,ks,enc);