Fix c_rehash script, add -fingerprint option to crl.
[openssl.git] / crypto / des / ecb3_enc.c
index 28c0d886b46ccad172b6481bdf9d111e10296ee0..fb28b97e1ab65843bc88f3c6a4fe5b2f52799599 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/des/ecb3_enc.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
 
 #include "des_locl.h"
 
-void des_ecb3_encrypt(input, output, ks1, ks2, ks3, enc)
-des_cblock (*input);
-des_cblock (*output);
-des_key_schedule ks1;
-des_key_schedule ks2;
-des_key_schedule ks3;
-int enc;
+void des_ecb3_encrypt(const_des_cblock *input, des_cblock *output,
+            des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3,
+            int enc)
        {
        register DES_LONG l0,l1;
-       register unsigned char *in,*out;
        DES_LONG ll[2];
+       const unsigned char *in = &(*input)[0];
+       unsigned char *out = &(*output)[0];
 
-       in=(unsigned char *)input;
-       out=(unsigned char *)output;
        c2l(in,l0);
        c2l(in,l1);
        ll[0]=l0;