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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 3e9c17c8e..4bba395b3 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -1028,9 +1028,10 @@ derive_h (const struct GNUNET_CRYPTO_EcdsaPublicKey *pub,
1028{ 1028{
1029 gcry_mpi_t h; 1029 gcry_mpi_t h;
1030 struct GNUNET_HashCode hc; 1030 struct GNUNET_HashCode hc;
1031 static const char *const salt = "key-derivation";
1031 1032
1032 GNUNET_CRYPTO_kdf (&hc, sizeof (hc), 1033 GNUNET_CRYPTO_kdf (&hc, sizeof (hc),
1033 "key-derivation", strlen ("key-derivation"), 1034 salt, strlen (salt),
1034 pub, sizeof (*pub), 1035 pub, sizeof (*pub),
1035 label, strlen (label), 1036 label, strlen (label),
1036 context, strlen (context), 1037 context, strlen (context),