/** * @file util/kblockkey_test.c * @brief testcase for util/kblockkey.c * @author Christian Grothoff */ #include "platform.h" #include "gnunet_util.h" #define TESTSTRING "Hello World\0" #define MAX_TESTVAL 20 #define ITER 10 static int testEncryptDecrypt(Hostkey hostkey) { PublicKey pkey; RSAEncryptedData target; char result[MAX_TESTVAL]; int i; TIME_T start; int ok; fprintf(stderr, "W"); getPublicKey(hostkey, &pkey); ok = 0; TIME(&start); for (i=0;i