You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.4 KiB
36 lines
1.4 KiB
6 years ago
|
diff -up libmcrypt-2.5.8/modules/algorithms/des.c.BAD libmcrypt-2.5.8/modules/algorithms/des.c
|
||
|
--- libmcrypt-2.5.8/modules/algorithms/des.c.BAD 2008-08-25 17:40:29.000000000 -0400
|
||
|
+++ libmcrypt-2.5.8/modules/algorithms/des.c 2008-08-25 17:40:51.000000000 -0400
|
||
|
@@ -35,9 +35,12 @@
|
||
|
|
||
|
/* #define NULL 0 */
|
||
|
|
||
|
-static void permute_ip(), permute_fp(), perminit_ip(), spinit(),
|
||
|
-perminit_fp();
|
||
|
-static word32 f();
|
||
|
+static void permute_ip(char *, DES_KEY *, char *);
|
||
|
+static void permute_fp(char *, DES_KEY *, char *);
|
||
|
+static void perminit_ip(DES_KEY *);
|
||
|
+static void spinit(DES_KEY *);
|
||
|
+static void perminit_fp(DES_KEY *);
|
||
|
+static word32 f(DES_KEY *, register word32, register char *);
|
||
|
|
||
|
|
||
|
/* Tables defined in the Data Encryption Standard documents */
|
||
|
diff -up libmcrypt-2.5.8/modules/algorithms/tripledes.c.BAD libmcrypt-2.5.8/modules/algorithms/tripledes.c
|
||
|
--- libmcrypt-2.5.8/modules/algorithms/tripledes.c.BAD 2008-08-25 17:40:56.000000000 -0400
|
||
|
+++ libmcrypt-2.5.8/modules/algorithms/tripledes.c 2008-08-25 17:41:13.000000000 -0400
|
||
|
@@ -36,8 +36,10 @@
|
||
|
|
||
|
/* #define NULL 0 */
|
||
|
|
||
|
-static void permute(), perminit(), spinit();
|
||
|
-static word32 f();
|
||
|
+static void permute(char *, char[16][16][8], char *);
|
||
|
+static void perminit(char[16][16][8], char[64]);
|
||
|
+static void spinit(TRIPLEDES_KEY *, int);
|
||
|
+static word32 f(TRIPLEDES_KEY *, int, register word32, register char *);
|
||
|
|
||
|
|
||
|
/* Tables defined in the Data Encryption Standard documents */
|