diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
commit | 9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch) | |
tree | 68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/peerinfo-tool | |
parent | 8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff) | |
download | gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip |
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 67aeddbe7..e62df3047 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -628,7 +628,7 @@ static void | |||
628 | run (void *cls, char *const *args, const char *cfgfile, | 628 | run (void *cls, char *const *args, const char *cfgfile, |
629 | const struct GNUNET_CONFIGURATION_Handle *c) | 629 | const struct GNUNET_CONFIGURATION_Handle *c) |
630 | { | 630 | { |
631 | struct GNUNET_CRYPTO_EccPrivateKey *priv; | 631 | struct GNUNET_CRYPTO_EddsaPrivateKey *priv; |
632 | char *fn; | 632 | char *fn; |
633 | 633 | ||
634 | cfg = c; | 634 | cfg = c; |
@@ -662,14 +662,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
662 | "GNUNETD", "HOSTKEYFILE"); | 662 | "GNUNETD", "HOSTKEYFILE"); |
663 | return; | 663 | return; |
664 | } | 664 | } |
665 | if (NULL == (priv = GNUNET_CRYPTO_ecc_key_create_from_file (fn))) | 665 | if (NULL == (priv = GNUNET_CRYPTO_eddsa_key_create_from_file (fn))) |
666 | { | 666 | { |
667 | FPRINTF (stderr, _("Loading hostkey from `%s' failed.\n"), fn); | 667 | FPRINTF (stderr, _("Loading hostkey from `%s' failed.\n"), fn); |
668 | GNUNET_free (fn); | 668 | GNUNET_free (fn); |
669 | return; | 669 | return; |
670 | } | 670 | } |
671 | GNUNET_free (fn); | 671 | GNUNET_free (fn); |
672 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv, | 672 | GNUNET_CRYPTO_eddsa_key_get_public (priv, |
673 | &my_peer_identity.public_key); | 673 | &my_peer_identity.public_key); |
674 | GNUNET_free (priv); | 674 | GNUNET_free (priv); |
675 | } | 675 | } |