aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-service-nse.c
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/gnunet-service-nse.c
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/gnunet-service-nse.c')
-rw-r--r--src/nse/gnunet-service-nse.c4
1 files changed, 2 insertions, 2 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);