projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed compile warnings under windows
[oweals/gnunet.git]
/
src
/
util
/
test_crypto_aes.c
diff --git
a/src/util/test_crypto_aes.c
b/src/util/test_crypto_aes.c
index cdae243e01d26dfba56dcedc7fc27e804df95546..f202275ec22ae388c0b34add46e1ef94e480a5e8 100644
(file)
--- a/
src/util/test_crypto_aes.c
+++ b/
src/util/test_crypto_aes.c
@@
-4,7
+4,7
@@
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
- by the Free Software Foundation; either version
2
, or (at your
+ by the Free Software Foundation; either version
3
, or (at your
option) any later version.
GNUnet is distributed in the hope that it will be useful, but
option) any later version.
GNUnet is distributed in the hope that it will be useful, but
@@
-50,8
+50,8
@@
testSymcipher ()
printf ("symciphertest failed: encryptBlock returned %d\n", size);
return 1;
}
printf ("symciphertest failed: encryptBlock returned %d\n", size);
return 1;
}
- size = GNUNET_CRYPTO_aes_decrypt (
&key
,
-
result, size
,
+ size = GNUNET_CRYPTO_aes_decrypt (
result, size
,
+
&key
,
(const struct
GNUNET_CRYPTO_AesInitializationVector *)
INITVALUE, res);
(const struct
GNUNET_CRYPTO_AesInitializationVector *)
INITVALUE, res);
@@
-131,9
+131,9
@@
verifyCrypto ()
res = GNUNET_malloc (GNUNET_CRYPTO_AES_KEY_LENGTH);
if (GNUNET_CRYPTO_AES_KEY_LENGTH !=
res = GNUNET_malloc (GNUNET_CRYPTO_AES_KEY_LENGTH);
if (GNUNET_CRYPTO_AES_KEY_LENGTH !=
- GNUNET_CRYPTO_aes_decrypt (&key,
- result,
+ GNUNET_CRYPTO_aes_decrypt (result,
GNUNET_CRYPTO_AES_KEY_LENGTH,
GNUNET_CRYPTO_AES_KEY_LENGTH,
+ &key,
(const struct
GNUNET_CRYPTO_AesInitializationVector *)
"testtesttesttest", res))
(const struct
GNUNET_CRYPTO_AesInitializationVector *)
"testtesttesttest", res))