diff options
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r-- | src/util/crypto_ecc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 6617ac6ea..755db9bdd 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c | |||
@@ -309,7 +309,7 @@ GNUNET_CRYPTO_ecc_public_key_to_string (const struct GNUNET_CRYPTO_EccPublicKey | |||
309 | * @param enc encoded public key | 309 | * @param enc encoded public key |
310 | * @param enclen number of bytes in enc (without 0-terminator) | 310 | * @param enclen number of bytes in enc (without 0-terminator) |
311 | * @param pub where to store the public key | 311 | * @param pub where to store the public key |
312 | * @return GNUNET_OK on success | 312 | * @return #GNUNET_OK on success |
313 | */ | 313 | */ |
314 | int | 314 | int |
315 | GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc, | 315 | GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc, |
@@ -879,7 +879,6 @@ GNUNET_CRYPTO_ecc_ecdh (const struct GNUNET_CRYPTO_EccPrivateKey *priv, | |||
879 | } | 879 | } |
880 | gcry_mpi_point_release (result); | 880 | gcry_mpi_point_release (result); |
881 | gcry_ctx_release (ctx); | 881 | gcry_ctx_release (ctx); |
882 | /* FIXME: only use 'result_x' as key material */ | ||
883 | 882 | ||
884 | mpi_print (xbuf, sizeof (xbuf), result_x); | 883 | mpi_print (xbuf, sizeof (xbuf), result_x); |
885 | GNUNET_CRYPTO_hash (xbuf, sizeof (xbuf), key_material); | 884 | GNUNET_CRYPTO_hash (xbuf, sizeof (xbuf), key_material); |