X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_crypto_aes.c;h=f202275ec22ae388c0b34add46e1ef94e480a5e8;hb=8226d9807819dbbc4b05751f4cdd09603832367d;hp=cdae243e01d26dfba56dcedc7fc27e804df95546;hpb=0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9;p=oweals%2Fgnunet.git diff --git a/src/util/test_crypto_aes.c b/src/util/test_crypto_aes.c index cdae243e0..f202275ec 100644 --- 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 - 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 @@ -50,8 +50,8 @@ testSymcipher () 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); @@ -131,9 +131,9 @@ verifyCrypto () 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, + &key, (const struct GNUNET_CRYPTO_AesInitializationVector *) "testtesttesttest", res))