aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-24 10:01:56 +0000
committerGabor X Toth <*@tg-x.net>2014-07-24 10:01:56 +0000
commit3c2e1baac2588ae2783f560e1aa6b459aa9ee6f5 (patch)
tree72b5dff991e2d14c0c51d96eff402e7465a81ec9 /src/psycstore
parentdeb668759939f5cc4280998d57abade323acec79 (diff)
downloadgnunet-3c2e1baac2588ae2783f560e1aa6b459aa9ee6f5.tar.gz
gnunet-3c2e1baac2588ae2783f560e1aa6b459aa9ee6f5.zip
test_plugin_psycstore: use ecdsa keys where appropriate
Diffstat (limited to 'src/psycstore')
-rw-r--r--src/psycstore/test_plugin_psycstore.c10
1 files changed, 5 insertions, 5 deletions
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;
51static const char *plugin_name; 51static const char *plugin_name;
52 52
53static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; 53static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key;
54static struct GNUNET_CRYPTO_EddsaPrivateKey *slave_key; 54static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key;
55 55
56static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key; 56static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key;
57static struct GNUNET_CRYPTO_EddsaPublicKey slave_pub_key; 57static struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key;
58 58
59/** 59/**
60 * Function called when the service shuts down. Unloads our psycstore 60 * Function called when the service shuts down. Unloads our psycstore
@@ -175,11 +175,11 @@ run (void *cls, char *const *args, const char *cfgfile,
175 /* Store & test membership */ 175 /* Store & test membership */
176 176
177 channel_key = GNUNET_CRYPTO_eddsa_key_create (); 177 channel_key = GNUNET_CRYPTO_eddsa_key_create ();
178 slave_key = GNUNET_CRYPTO_eddsa_key_create (); 178 slave_key = GNUNET_CRYPTO_ecdsa_key_create ();
179 179
180 GNUNET_CRYPTO_eddsa_key_get_public (channel_key, 180 GNUNET_CRYPTO_eddsa_key_get_public (channel_key,
181 &channel_pub_key); 181 &channel_pub_key);
182 GNUNET_CRYPTO_eddsa_key_get_public (slave_key, &slave_pub_key); 182 GNUNET_CRYPTO_ecdsa_key_get_public (slave_key, &slave_pub_key);
183 183
184 GNUNET_assert (GNUNET_OK == db->membership_store (db->cls, &channel_pub_key, 184 GNUNET_assert (GNUNET_OK == db->membership_store (db->cls, &channel_pub_key,
185 &slave_pub_key, GNUNET_YES, 185 &slave_pub_key, GNUNET_YES,
@@ -218,7 +218,7 @@ run (void *cls, char *const *args, const char *cfgfile,
218 - sizeof (msg->hop_counter) 218 - sizeof (msg->hop_counter)
219 - sizeof (msg->signature)); 219 - sizeof (msg->signature));
220 msg->purpose.purpose = htonl (234); 220 msg->purpose.purpose = htonl (234);
221 GNUNET_CRYPTO_eddsa_sign (slave_key, &msg->purpose, &msg->signature); 221 GNUNET_CRYPTO_eddsa_sign (channel_key, &msg->purpose, &msg->signature);
222 222
223 struct FragmentClosure fcls = { 0 }; 223 struct FragmentClosure fcls = { 0 };
224 fcls.n = 0; 224 fcls.n = 0;