From 3c2e1baac2588ae2783f560e1aa6b459aa9ee6f5 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Thu, 24 Jul 2014 10:01:56 +0000 Subject: test_plugin_psycstore: use ecdsa keys where appropriate --- src/psycstore/test_plugin_psycstore.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/psycstore/test_plugin_psycstore.c') diff --git a/src/psycstore/test_plugin_psycstore.c b/src/psycstore/test_plugin_psycstore.c index 1a44a20d6..8267ddba8 100644 --- a/src/psycstore/test_plugin_psycstore.c +++ b/src/psycstore/test_plugin_psycstore.c @@ -51,10 +51,10 @@ static int ok; static const char *plugin_name; 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; /** * Function called when the service shuts down. Unloads our psycstore @@ -175,11 +175,11 @@ run (void *cls, char *const *args, const char *cfgfile, /* Store & test membership */ 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); GNUNET_assert (GNUNET_OK == db->membership_store (db->cls, &channel_pub_key, &slave_pub_key, GNUNET_YES, @@ -218,7 +218,7 @@ run (void *cls, char *const *args, const char *cfgfile, - sizeof (msg->hop_counter) - sizeof (msg->signature)); msg->purpose.purpose = htonl (234); - GNUNET_CRYPTO_eddsa_sign (slave_key, &msg->purpose, &msg->signature); + GNUNET_CRYPTO_eddsa_sign (channel_key, &msg->purpose, &msg->signature); struct FragmentClosure fcls = { 0 }; fcls.n = 0; -- cgit v1.2.3