aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2016-01-21 09:21:37 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2016-01-21 09:21:37 +0000
commitf7d137478c27910c1f3d7bda32456d8a7b0c6af2 (patch)
treed925728d62e64497c85e0e0095352186ef6ab020 /src/util/crypto_ecc.c
parent0f5dd7b8435283d8f9449a869fe1d0976e260962 (diff)
downloadgnunet-f7d137478c27910c1f3d7bda32456d8a7b0c6af2.tar.gz
gnunet-f7d137478c27910c1f3d7bda32456d8a7b0c6af2.zip
-deduplicate string constant
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),