aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
commit9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch)
tree68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/exit
parent8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff)
downloadgnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz
gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-daemon-exit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index f4d656f3c..5b1f5b681 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -438,7 +438,7 @@ static struct GNUNET_HashCode dht_put_key;
438/** 438/**
439 * Private key for this peer. 439 * Private key for this peer.
440 */ 440 */
441static struct GNUNET_CRYPTO_EccPrivateKey *peer_key; 441static struct GNUNET_CRYPTO_EddsaPrivateKey *peer_key;
442 442
443/** 443/**
444 * Are we an IPv4-exit? 444 * Are we an IPv4-exit?
@@ -3415,7 +3415,7 @@ do_dht_put (void *cls,
3415 expiration = GNUNET_TIME_relative_to_absolute (DNS_ADVERTISEMENT_TIMEOUT); 3415 expiration = GNUNET_TIME_relative_to_absolute (DNS_ADVERTISEMENT_TIMEOUT);
3416 dns_advertisement.expiration_time = GNUNET_TIME_absolute_hton (expiration); 3416 dns_advertisement.expiration_time = GNUNET_TIME_absolute_hton (expiration);
3417 GNUNET_assert (GNUNET_OK == 3417 GNUNET_assert (GNUNET_OK ==
3418 GNUNET_CRYPTO_ecc_sign (peer_key, 3418 GNUNET_CRYPTO_eddsa_sign (peer_key,
3419 &dns_advertisement.purpose, 3419 &dns_advertisement.purpose,
3420 &dns_advertisement.signature)); 3420 &dns_advertisement.signature));
3421 } 3421 }
@@ -3572,11 +3572,11 @@ run (void *cls, char *const *args GNUNET_UNUSED,
3572 if (NULL != dns_exit) 3572 if (NULL != dns_exit)
3573 { 3573 {
3574 dht = GNUNET_DHT_connect (cfg, 1); 3574 dht = GNUNET_DHT_connect (cfg, 1);
3575 peer_key = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg); 3575 peer_key = GNUNET_CRYPTO_eddsa_key_create_from_configuration (cfg);
3576 GNUNET_CRYPTO_ecc_key_get_public_for_signature (peer_key, 3576 GNUNET_CRYPTO_eddsa_key_get_public (peer_key,
3577 &dns_advertisement.peer.public_key); 3577 &dns_advertisement.peer.public_key);
3578 dns_advertisement.purpose.size = htonl (sizeof (struct GNUNET_DNS_Advertisement) - 3578 dns_advertisement.purpose.size = htonl (sizeof (struct GNUNET_DNS_Advertisement) -
3579 sizeof (struct GNUNET_CRYPTO_EccSignature)); 3579 sizeof (struct GNUNET_CRYPTO_EddsaSignature));
3580 dns_advertisement.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD); 3580 dns_advertisement.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD);
3581 GNUNET_CRYPTO_hash ("dns", 3581 GNUNET_CRYPTO_hash ("dns",
3582 strlen ("dns"), 3582 strlen ("dns"),