aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 6b11cdada..0e5c3d1ca 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -640,8 +640,7 @@ GNUNET_CRYPTO_ecdhe_key_create2 (struct GNUNET_CRYPTO_EcdhePrivateKey *pk)
640 but should also be harmless. For libgcrypt < 1.7, using 'eddsa' 640 but should also be harmless. For libgcrypt < 1.7, using 'eddsa'
641 disables an expensive key testing routine. We do not want to run 641 disables an expensive key testing routine. We do not want to run
642 the expensive check for ECDHE, as we generate TONS of keys to 642 the expensive check for ECDHE, as we generate TONS of keys to
643 use for a very short time. */ 643 use for a very short time. */if (0 != (rc = gcry_sexp_build (&s_keyparam,
644 if (0 != (rc = gcry_sexp_build (&s_keyparam,
645 NULL, 644 NULL,
646 "(genkey(ecc(curve \"" CURVE "\")" 645 "(genkey(ecc(curve \"" CURVE "\")"
647 "(flags eddsa no-keytest)))"))) 646 "(flags eddsa no-keytest)))")))
@@ -735,6 +734,7 @@ GNUNET_CRYPTO_ecdsa_key_create ()
735 return priv; 734 return priv;
736} 735}
737 736
737
738/** 738/**
739 * Create a new private key. Caller must free return value. 739 * Create a new private key. Caller must free return value.
740 * 740 *
@@ -1651,6 +1651,7 @@ GNUNET_CRYPTO_ecdh_eddsa (const struct GNUNET_CRYPTO_EcdhePrivateKey *priv,
1651 return ret; 1651 return ret;
1652} 1652}
1653 1653
1654
1654/** 1655/**
1655 * @ingroup crypto 1656 * @ingroup crypto
1656 * Derive key material from a ECDSA public key and a private ECDH key. 1657 * Derive key material from a ECDSA public key and a private ECDH key.
@@ -1672,4 +1673,5 @@ GNUNET_CRYPTO_ecdh_ecdsa (const struct GNUNET_CRYPTO_EcdhePrivateKey *priv,
1672 key_material); 1673 key_material);
1673} 1674}
1674 1675
1676
1675/* end of crypto_ecc.c */ 1677/* end of crypto_ecc.c */