X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_crypto_aes_weak.c;h=f2ddf2012574ab8af7fe378c15cfa45fe3d6e1c5;hb=72c8645af31896829b674b575c5375706f362a30;hp=a0161b575c439a017a600871fe1819fecfc0acc3;hpb=83b19539f4d322b43683f5838b72e9ec2c8e6073;p=oweals%2Fgnunet.git diff --git a/src/util/test_crypto_aes_weak.c b/src/util/test_crypto_aes_weak.c index a0161b575..f2ddf2012 100644 --- a/src/util/test_crypto_aes_weak.c +++ b/src/util/test_crypto_aes_weak.c @@ -91,9 +91,6 @@ testWeakKey () weak_key.key[30] = (char) (0xaa); weak_key.key[31] = (char) (0xaa); /* memset(&weak_key, 0, 32); */ - weak_key.crc32 = - htonl (GNUNET_CRYPTO_crc32_n (&weak_key, GNUNET_CRYPTO_AES_KEY_LENGTH)); - size = GNUNET_CRYPTO_aes_encrypt (WEAK_KEY_TESTSTRING, strlen (WEAK_KEY_TESTSTRING) + 1, &weak_key, @@ -136,7 +133,7 @@ getWeakKeys () { if (number_of_runs % 1000 == 0) - fprintf (stderr, "."); + FPRINTF (stderr, "%s", "."); /*printf("Got to run number %d.\n", number_of_runs); */ GNUNET_CRYPTO_aes_create_session_key (&sessionkey); @@ -178,7 +175,6 @@ main (int argc, char *argv[]) int weak_keys; GNUNET_log_setup ("test-crypto-aes-weak", "WARNING", NULL); - GNUNET_CRYPTO_random_disable_entropy_gathering (); if (GENERATE_WEAK_KEYS) { weak_keys = getWeakKeys ();