aboutsummaryrefslogtreecommitdiff
path: root/src/util
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 /src/util
parentc09ab6b2a10a63bf1f13600cc7d4504c31478464 (diff)
downloadgnunet-b57e331a56521971070a55d1bb78f34e05c34577.tar.gz
gnunet-b57e331a56521971070a55d1bb78f34e05c34577.zip
-fix
Diffstat (limited to 'src/util')
-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 bb558c76d..191892bce 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,
251 LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, "get_affine failed", 0); 251 LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, "get_affine failed", 0);
252 return; 252 return;
253 } 253 }
254
254 mpi_print (pub->q_x, sizeof (pub->q_x), q_x); 255 mpi_print (pub->q_x, sizeof (pub->q_x), q_x);
255 mpi_print (pub->q_y, sizeof (pub->q_y), q_y); 256 mpi_print (pub->q_y, sizeof (pub->q_y), q_y);
256 gcry_mpi_release (q_x); 257 gcry_mpi_release (q_x);
@@ -937,7 +938,7 @@ derive_h (const struct GNUNET_CRYPTO_EccPublicKey *pub,
937 GNUNET_CRYPTO_kdf (&hc, sizeof (hc), 938 GNUNET_CRYPTO_kdf (&hc, sizeof (hc),
938 "key-derivation", strlen ("key-derivation"), 939 "key-derivation", strlen ("key-derivation"),
939 pub, sizeof (*pub), 940 pub, sizeof (*pub),
940 label, sizeof (label), 941 label, strlen (label),
941 NULL, 0); 942 NULL, 0);
942 mpi_scan (&h, (unsigned char *) &hc, sizeof (hc)); 943 mpi_scan (&h, (unsigned char *) &hc, sizeof (hc));
943 return h; 944 return h;