[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35733 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35733 - gnunet/src/util |
Date: |
Mon, 18 May 2015 20:17:32 +0200 |
Author: grothoff
Date: 2015-05-18 20:17:32 +0200 (Mon, 18 May 2015)
New Revision: 35733
Modified:
gnunet/src/util/perf_crypto_asymmetric.c
Log:
-check return values
Modified: gnunet/src/util/perf_crypto_asymmetric.c
===================================================================
--- gnunet/src/util/perf_crypto_asymmetric.c 2015-05-16 19:08:50 UTC (rev
35732)
+++ gnunet/src/util/perf_crypto_asymmetric.c 2015-05-18 18:17:32 UTC (rev
35733)
@@ -92,12 +92,19 @@
start = GNUNET_TIME_absolute_get();
for (i = 0; i < l; i++)
- GNUNET_CRYPTO_eddsa_sign (eddsa[i], &sig[i].purp, &sig[i].sig);
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CRYPTO_eddsa_sign (eddsa[i],
+ &sig[i].purp,
+ &sig[i].sig));
log_duration ("EdDSA", "sign HashCode");
start = GNUNET_TIME_absolute_get();
for (i = 0; i < l; i++)
- GNUNET_CRYPTO_eddsa_verify (0, &sig[i].purp, &sig[i].sig, &dspub[i]);
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CRYPTO_eddsa_verify (0,
+ &sig[i].purp,
+ &sig[i].sig,
+ &dspub[i]));
log_duration ("EdDSA", "verify HashCode");
start = GNUNET_TIME_absolute_get();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35733 - gnunet/src/util,
gnunet <=