compiling, but not working :)
authorhackbard <hackbard>
Fri, 3 Oct 2003 12:39:47 +0000 (12:39 +0000)
committerhackbard <hackbard>
Fri, 3 Oct 2003 12:39:47 +0000 (12:39 +0000)
des.c
test.c

diff --git a/des.c b/des.c
index 5874d44..722e1cc 100644 (file)
--- a/des.c
+++ b/des.c
@@ -119,7 +119,7 @@ int subkey_trans(u8 *key,int round) {
  return 1;
 }
 
-int compute_subkeys(u8 *key0,u8 **subkey) {
+int compute_subkeys(u8 *key0,u8 subkey[DES_SUBKEYS][DES_SUBKEY_LEN/8]) {
  int i;
  u8 key0_56[DES_INITIAL_KEY_LEN/8];
  /* initial permutation of key */
@@ -148,7 +148,7 @@ int data_s_and_p(u8 *data) {
  return 1;
 }
 
-int progress_data(u8 *data,u8 *crypted,u8 **subkey,u8 mode) {
+int progress_data(u8 *data,u8 *crypted,u8 subkey[DES_SUBKEYS][DES_SUBKEY_LEN/8],u8 mode) {
  int i,j;
  u8 permuted_data[DES_DATA_BLOCK_LEN/8];
  u8 left[DES_DATA_BLOCK_LEN/(2*8)];
diff --git a/test.c b/test.c
index a2e7067..83e0694 100644 (file)
--- a/test.c
+++ b/test.c
@@ -9,7 +9,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-
+#include <unistd.h>
+#include <string.h>
 #include "des.h"