if (strncmp (TESTSTRING, result, strlen (TESTSTRING)) != 0)
{
printf ("%s != %.*s - testEncryptDecrypt failed!\n",
- TESTSTRING, MAX_TESTVAL, result);
+ TESTSTRING,
+ (int) MAX_TESTVAL,
+ result);
ok++;
continue;
}
}
printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n",
ITER,
- (unsigned long long) GNUNET_TIME_absolute_get_duration (start).
- value, ok);
+ (unsigned long long)
+ GNUNET_TIME_absolute_get_duration (start).value, ok);
GNUNET_CRYPTO_rsa_key_free (hostkey);
if (ok == 0)
return GNUNET_OK;
}
printf ("%d RSA encrypt operations %llu ms (%d failures)\n",
ITER,
- (unsigned long long) GNUNET_TIME_absolute_get_duration (start).
- value, ok);
+ (unsigned long long)
+ GNUNET_TIME_absolute_get_duration (start).value, ok);
GNUNET_CRYPTO_rsa_key_free (hostkey);
if (ok != 0)
return GNUNET_SYSERR;
}
printf ("%d RSA encrypt/decrypt SK operations %llus (%d failures)\n",
ITER,
- (unsigned long long) GNUNET_TIME_absolute_get_duration (start).
- value, ok);
+ (unsigned long long)
+ GNUNET_TIME_absolute_get_duration (start).value, ok);
GNUNET_CRYPTO_rsa_key_free (hostkey);
if (ok != 0)
return GNUNET_SYSERR;
continue;
}
if (GNUNET_SYSERR !=
- GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_HELLO,
+ GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_TCP_PING,
&purp, &sig, &pkey))
{
printf ("GNUNET_CRYPTO_rsa_verify failed to fail!\n");
}
printf ("%d RSA sign/verify operations %llums\n",
ITER,
- (unsigned long long) GNUNET_TIME_absolute_get_duration (start).
- value);
+ (unsigned long long)
+ GNUNET_TIME_absolute_get_duration (start).value);
GNUNET_CRYPTO_rsa_key_free (hostkey);
return ok;
}
}
}
printf ("%d RSA sign operations %llu ms\n", ITER,
- GNUNET_TIME_absolute_get_duration (start).value);
+ (unsigned long long) GNUNET_TIME_absolute_get_duration (start).value);
GNUNET_CRYPTO_rsa_key_free (hostkey);
return ok;
}