gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r34031 - gnunet/src/psycstore


From: gnunet
Subject: [GNUnet-SVN] r34031 - gnunet/src/psycstore
Date: Thu, 24 Jul 2014 11:57:00 +0200

Author: tg
Date: 2014-07-24 11:57:00 +0200 (Thu, 24 Jul 2014)
New Revision: 34031

Modified:
   gnunet/src/psycstore/test_psycstore.c
Log:
test_psycstore: use ecdsa keys where appropriate

Modified: gnunet/src/psycstore/test_psycstore.c
===================================================================
--- gnunet/src/psycstore/test_psycstore.c       2014-07-24 09:51:16 UTC (rev 
34030)
+++ gnunet/src/psycstore/test_psycstore.c       2014-07-24 09:57:00 UTC (rev 
34031)
@@ -57,10 +57,10 @@
 static GNUNET_SCHEDULER_TaskIdentifier end_badly_task;
 
 static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key;
-static struct GNUNET_CRYPTO_EddsaPrivateKey *slave_key;
+static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key;
 
 static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key;
-static struct GNUNET_CRYPTO_EddsaPublicKey slave_pub_key;
+static struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key;
 
 static struct FragmentClosure
 {
@@ -438,8 +438,8 @@
                              - sizeof (msg->hop_counter)
                              - sizeof (msg->signature));
   msg->purpose.purpose = htonl (234);
-  GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (slave_key, 
&msg->purpose,
-                                                      &msg->signature));
+  GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (channel_key, 
&msg->purpose,
+                                                        &msg->signature));
 
   op = GNUNET_PSYCSTORE_fragment_store (h, &channel_pub_key, msg, 
fcls.flags[0],
                                         &fragment_store_result, GNUNET_NO);
@@ -498,10 +498,10 @@
   GNUNET_assert (NULL != h);
 
   channel_key = GNUNET_CRYPTO_eddsa_key_create ();
-  slave_key = GNUNET_CRYPTO_eddsa_key_create ();
+  slave_key = GNUNET_CRYPTO_ecdsa_key_create ();
 
   GNUNET_CRYPTO_eddsa_key_get_public (channel_key, &channel_pub_key);
-  GNUNET_CRYPTO_eddsa_key_get_public (slave_key, &slave_pub_key);
+  GNUNET_CRYPTO_ecdsa_key_get_public (slave_key, &slave_pub_key);
 
   op = GNUNET_PSYCSTORE_membership_store (h, &channel_pub_key, &slave_pub_key,
                                           GNUNET_YES, 4, 2, 1,




reply via email to

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