projects
/
my-code
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiling, but not working :)
[my-code/crypto.git]
/
des.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;
}
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 */
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;
}
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)];
int i,j;
u8 permuted_data[DES_DATA_BLOCK_LEN/8];
u8 left[DES_DATA_BLOCK_LEN/(2*8)];