diff options
Diffstat (limited to 'src/psycstore/test_psycstore.c')
-rw-r--r-- | src/psycstore/test_psycstore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c index bb6f88665..cca3c808d 100644 --- a/src/psycstore/test_psycstore.c +++ b/src/psycstore/test_psycstore.c | |||
@@ -56,11 +56,11 @@ static struct GNUNET_PSYCSTORE_OperationHandle *op; | |||
56 | */ | 56 | */ |
57 | static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; | 57 | static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; |
58 | 58 | ||
59 | static struct GNUNET_CRYPTO_EccPrivateKey *channel_key; | 59 | static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; |
60 | static struct GNUNET_CRYPTO_EccPrivateKey *slave_key; | 60 | static struct GNUNET_CRYPTO_EddsaPrivateKey *slave_key; |
61 | 61 | ||
62 | static struct GNUNET_CRYPTO_EccPublicSignKey channel_pub_key; | 62 | static struct GNUNET_CRYPTO_EddsaPublicKey channel_pub_key; |
63 | static struct GNUNET_CRYPTO_EccPublicSignKey slave_pub_key; | 63 | static struct GNUNET_CRYPTO_EddsaPublicKey slave_pub_key; |
64 | 64 | ||
65 | static struct FragmentClosure | 65 | static struct FragmentClosure |
66 | { | 66 | { |
@@ -436,7 +436,7 @@ membership_test_result (void *cls, int64_t result, const char *err_msg) | |||
436 | - sizeof (msg->hop_counter) | 436 | - sizeof (msg->hop_counter) |
437 | - sizeof (msg->signature)); | 437 | - sizeof (msg->signature)); |
438 | msg->purpose.purpose = htonl (234); | 438 | msg->purpose.purpose = htonl (234); |
439 | GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_ecc_sign (slave_key, &msg->purpose, | 439 | GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (slave_key, &msg->purpose, |
440 | &msg->signature)); | 440 | &msg->signature)); |
441 | 441 | ||
442 | op = GNUNET_PSYCSTORE_fragment_store (h, &channel_pub_key, msg, fcls.flags[0], | 442 | op = GNUNET_PSYCSTORE_fragment_store (h, &channel_pub_key, msg, fcls.flags[0], |
@@ -498,8 +498,8 @@ run (void *cls, | |||
498 | channel_key = GNUNET_CRYPTO_ecc_key_create (); | 498 | channel_key = GNUNET_CRYPTO_ecc_key_create (); |
499 | slave_key = GNUNET_CRYPTO_ecc_key_create (); | 499 | slave_key = GNUNET_CRYPTO_ecc_key_create (); |
500 | 500 | ||
501 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (channel_key, &channel_pub_key); | 501 | GNUNET_CRYPTO_eddsa_key_get_public (channel_key, &channel_pub_key); |
502 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (slave_key, &slave_pub_key); | 502 | GNUNET_CRYPTO_eddsa_key_get_public (slave_key, &slave_pub_key); |
503 | 503 | ||
504 | op = GNUNET_PSYCSTORE_membership_store (h, &channel_pub_key, &slave_pub_key, | 504 | op = GNUNET_PSYCSTORE_membership_store (h, &channel_pub_key, &slave_pub_key, |
505 | GNUNET_YES, 4, 2, 1, | 505 | GNUNET_YES, 4, 2, 1, |