From: hackbard Date: Fri, 3 Oct 2003 12:39:47 +0000 (+0000) Subject: compiling, but not working :) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=813819fc21f3a9ebada1f6b4caef59be10ea07dc;p=my-code%2Fcrypto.git compiling, but not working :) --- diff --git a/des.c b/des.c index 5874d44..722e1cc 100644 --- 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 --- a/test.c +++ b/test.c @@ -9,7 +9,8 @@ #include #include #include - +#include +#include #include "des.h"