aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-24 09:57:00 +0000
committerGabor X Toth <*@tg-x.net>2014-07-24 09:57:00 +0000
commitdeb668759939f5cc4280998d57abade323acec79 (patch)
treec193df41e70955a37cc8f06383e7cc1c4a83e051 /src/psycstore
parent53ef0ba7b541c2417bc34b6d38cca105d40b67f0 (diff)
downloadgnunet-deb668759939f5cc4280998d57abade323acec79.tar.gz
gnunet-deb668759939f5cc4280998d57abade323acec79.zip
test_psycstore: use ecdsa keys where appropriate
Diffstat (limited to 'src/psycstore')
-rw-r--r--src/psycstore/test_psycstore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c
index 05cb92dce..72415215d 100644
--- a/src/psycstore/test_psycstore.c
+++ b/src/psycstore/test_psycstore.c
@@ -57,10 +57,10 @@ static struct GNUNET_PSYCSTORE_OperationHandle *op;
57static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; 57static GNUNET_SCHEDULER_TaskIdentifier end_badly_task;
58 58
59static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; 59static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key;
60static struct GNUNET_CRYPTO_EddsaPrivateKey *slave_key; 60static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key;
61 61
62static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key; 62static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key;
63static struct GNUNET_CRYPTO_EddsaPublicKey slave_pub_key; 63static struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key;
64 64
65static struct FragmentClosure 65static struct FragmentClosure
66{ 66{
@@ -438,8 +438,8 @@ membership_test_result (void *cls, int64_t result, const char *err_msg)
438 - sizeof (msg->hop_counter) 438 - sizeof (msg->hop_counter)
439 - sizeof (msg->signature)); 439 - sizeof (msg->signature));
440 msg->purpose.purpose = htonl (234); 440 msg->purpose.purpose = htonl (234);
441 GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (slave_key, &msg->purpose, 441 GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (channel_key, &msg->purpose,
442 &msg->signature)); 442 &msg->signature));
443 443
444 op = GNUNET_PSYCSTORE_fragment_store (h, &channel_pub_key, msg, fcls.flags[0], 444 op = GNUNET_PSYCSTORE_fragment_store (h, &channel_pub_key, msg, fcls.flags[0],
445 &fragment_store_result, GNUNET_NO); 445 &fragment_store_result, GNUNET_NO);
@@ -498,10 +498,10 @@ run (void *cls,
498 GNUNET_assert (NULL != h); 498 GNUNET_assert (NULL != h);
499 499
500 channel_key = GNUNET_CRYPTO_eddsa_key_create (); 500 channel_key = GNUNET_CRYPTO_eddsa_key_create ();
501 slave_key = GNUNET_CRYPTO_eddsa_key_create (); 501 slave_key = GNUNET_CRYPTO_ecdsa_key_create ();
502 502
503 GNUNET_CRYPTO_eddsa_key_get_public (channel_key, &channel_pub_key); 503 GNUNET_CRYPTO_eddsa_key_get_public (channel_key, &channel_pub_key);
504 GNUNET_CRYPTO_eddsa_key_get_public (slave_key, &slave_pub_key); 504 GNUNET_CRYPTO_ecdsa_key_get_public (slave_key, &slave_pub_key);
505 505
506 op = GNUNET_PSYCSTORE_membership_store (h, &channel_pub_key, &slave_pub_key, 506 op = GNUNET_PSYCSTORE_membership_store (h, &channel_pub_key, &slave_pub_key,
507 GNUNET_YES, 4, 2, 1, 507 GNUNET_YES, 4, 2, 1,