aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-04 13:50:02 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-04 13:50:02 +0000
commit47236bb24d1412aaf3d0ed7da3ff324f8c16d16e (patch)
tree46c8a682303fa66bc85c57be47817ea2b1c98f77 /src/cadet/gnunet-service-cadet_peer.h
parent910c86036fb29b8e05f57ffc0cdc5e426c231ca9 (diff)
downloadgnunet-47236bb24d1412aaf3d0ed7da3ff324f8c16d16e.tar.gz
gnunet-47236bb24d1412aaf3d0ed7da3ff324f8c16d16e.zip
-simplifying Cadet KX to directly use EdDSA keys for ECDHE
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h
index 298ef50e7..a0211328b 100644
--- a/src/cadet/gnunet-service-cadet_peer.h
+++ b/src/cadet/gnunet-service-cadet_peer.h
@@ -390,35 +390,6 @@ void
390GCP_try_connect (struct CadetPeer *peer); 390GCP_try_connect (struct CadetPeer *peer);
391 391
392/** 392/**
393 * Check if the given ECDH key is correct for the peer.
394 *
395 * This function caches the results if the key has been previoulsy checked,
396 * otherwise checks that the key is signed with the peer's ID (EdDSA key).
397 *
398 * TODO: save the cached public key to permanent storage / peerinfo.
399 *
400 * @param peer Peer whose key to check.
401 * @param key ECDH key to check.
402 * @param purpose Purpose of the signature (followed by the key).
403 * @param sig Signature with the peer's EdDSA key (PeerID).
404 */
405int
406GCP_check_key (struct CadetPeer *peer,
407 const struct GNUNET_CRYPTO_EcdhePublicKey *key,
408 const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose,
409 const struct GNUNET_CRYPTO_EddsaSignature *sig);
410
411/**
412 * Get the Identity ECDH key of the peer.
413 *
414 * @param peer Peer whose key to get.
415 *
416 * @return Peer's permanent ECDH key (might be all 0: unknown).
417 */
418struct GNUNET_CRYPTO_EddsaPublicKey *
419GCP_get_key (struct CadetPeer *peer);
420
421/**
422 * Notify a peer that a link between two other peers is broken. If any path 393 * Notify a peer that a link between two other peers is broken. If any path
423 * used that link, eliminate it. 394 * used that link, eliminate it.
424 * 395 *