gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: extend test to show crypto


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: extend test to show crypto issue
Date: Thu, 17 May 2018 00:16:10 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 20fe42aac extend test to show crypto issue
20fe42aac is described below

commit 20fe42aac530cadfd88e5e409184b361a7f14f8f
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu May 17 00:16:09 2018 +0200

    extend test to show crypto issue
---
 src/rps/test_rps.c                |  2 +-
 src/util/test_crypto_ecdh_eddsa.c | 12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index 542919425..bae28428f 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -2782,7 +2782,7 @@ main (int argc, char *argv[])
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "This is the profiler\n");
     cur_test_run.name = "test-rps-profiler";
-    num_peers = 10;
+    num_peers = 100;
     mal_type = 3;
     cur_test_run.init_peer = profiler_init_peer;
     //cur_test_run.pre_test = mal_pre;
diff --git a/src/util/test_crypto_ecdh_eddsa.c 
b/src/util/test_crypto_ecdh_eddsa.c
index ec7819c3b..efb9e0992 100644
--- a/src/util/test_crypto_ecdh_eddsa.c
+++ b/src/util/test_crypto_ecdh_eddsa.c
@@ -56,7 +56,8 @@ test_ecdh()
                                            &id1,
                                            &dh[1]));
   /* Check that both DH results are equal. */
-  GNUNET_assert (0 == memcmp (&dh[0], &dh[1],
+  GNUNET_assert (0 == memcmp (&dh[0],
+                              &dh[1],
                              sizeof (struct GNUNET_HashCode)));
   GNUNET_free (priv_dsa);
   GNUNET_free (priv_ecdh);
@@ -75,10 +76,13 @@ main (int argc, char *argv[])
     return 0;
   }
   if (getenv ("GNUNET_GCRYPT_DEBUG"))
-    gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1u , 0);
+    gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1u, 0);
   GNUNET_log_setup ("test-crypto-ecdh-eddsa", "WARNING", NULL);
-  if (0 != test_ecdh())
-    return 1;
+  for (unsigned int i=0;i<10000;i++)
+  {
+    if (0 != test_ecdh())
+      return 1;
+  }
   return 0;
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]