commit b57e331a56521971070a55d1bb78f34e05c34577
parent c09ab6b2a10a63bf1f13600cc7d4504c31478464
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 8 Aug 2013 15:24:32 +0000
-fix
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;