aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 11:49:50 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 11:49:50 +0200
commit755cb5c76a53a8fd04408bcc080b1796e77162f5 (patch)
treedade5b7c84f74c76d85e226f7fbd0982494a0046 /src/nse
parent870c6d65864ff8265c5e4863529df4a44f99e1b1 (diff)
downloadgnunet-755cb5c76a53a8fd04408bcc080b1796e77162f5.tar.gz
gnunet-755cb5c76a53a8fd04408bcc080b1796e77162f5.zip
remove argon2 dependency. Use limited libsodium argon2id function for GNS and NSE
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c4
-rw-r--r--src/nse/perf_kdf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index 461d55a7f..ebf39585e 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -806,7 +806,7 @@ check_proof_of_work (const struct GNUNET_CRYPTO_EddsaPublicKey *pkey,
806 GNUNET_memcpy (&buf[sizeof(val)], 806 GNUNET_memcpy (&buf[sizeof(val)],
807 pkey, 807 pkey,
808 sizeof(struct GNUNET_CRYPTO_EddsaPublicKey)); 808 sizeof(struct GNUNET_CRYPTO_EddsaPublicKey));
809 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof-of-work", 809 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof",
810 buf, 810 buf,
811 sizeof(buf), 811 sizeof(buf),
812 &result); 812 &result);
@@ -861,7 +861,7 @@ find_proof (void *cls)
861 while ((counter != UINT64_MAX) && (i < ROUND_SIZE)) 861 while ((counter != UINT64_MAX) && (i < ROUND_SIZE))
862 { 862 {
863 GNUNET_memcpy (buf, &counter, sizeof(uint64_t)); 863 GNUNET_memcpy (buf, &counter, sizeof(uint64_t));
864 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof-of-work", 864 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof",
865 buf, 865 buf,
866 sizeof(buf), 866 sizeof(buf),
867 &result); 867 &result);
diff --git a/src/nse/perf_kdf.c b/src/nse/perf_kdf.c
index c5975aaf2..89b70903a 100644
--- a/src/nse/perf_kdf.c
+++ b/src/nse/perf_kdf.c
@@ -37,7 +37,7 @@ perfHash ()
37 37
38 memset (buf, 1, sizeof(buf)); 38 memset (buf, 1, sizeof(buf));
39 for (unsigned int i = 0; i < 1024; i++) 39 for (unsigned int i = 0; i < 1024; i++)
40 GNUNET_CRYPTO_pow_hash ("gnunet-proof-of-work", 40 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof",
41 buf, 41 buf,
42 sizeof(buf), 42 sizeof(buf),
43 &hc); 43 &hc);