aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-08 15:24:32 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-08 15:24:32 +0000
commitb57e331a56521971070a55d1bb78f34e05c34577 (patch)
treea02a5098f042692998821083bcaba241fc92c95f
parentc09ab6b2a10a63bf1f13600cc7d4504c31478464 (diff)
-fix
-rw-r--r--src/util/crypto_ecc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index bb558c76d3..191892bce6 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -251,6 +251,7 @@ point_to_public_key (gcry_mpi_point_t q,
LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, "get_affine failed", 0);
return;
}
+
mpi_print (pub->q_x, sizeof (pub->q_x), q_x);
mpi_print (pub->q_y, sizeof (pub->q_y), q_y);
gcry_mpi_release (q_x);
@@ -937,7 +938,7 @@ derive_h (const struct GNUNET_CRYPTO_EccPublicKey *pub,
GNUNET_CRYPTO_kdf (&hc, sizeof (hc),
"key-derivation", strlen ("key-derivation"),
pub, sizeof (*pub),
- label, sizeof (label),
+ label, strlen (label),
NULL, 0);
mpi_scan (&h, (unsigned char *) &hc, sizeof (hc));
return h;