aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-scrypt.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-30 23:08:49 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-30 23:08:49 +0100
commit7cde88367991dcd1deca2485970c353fec5aff3e (patch)
treec2db008b530ac935a3375d562f80e67e85ba32b0 /src/util/gnunet-scrypt.c
parentf536489f831c5fd243c22545be12a2cd0f88a84d (diff)
downloadgnunet-7cde88367991dcd1deca2485970c353fec5aff3e.tar.gz
gnunet-7cde88367991dcd1deca2485970c353fec5aff3e.zip
use new POW function consistently, also in revocation
Diffstat (limited to 'src/util/gnunet-scrypt.c')
-rw-r--r--src/util/gnunet-scrypt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/gnunet-scrypt.c b/src/util/gnunet-scrypt.c
index d84f486a7..bc8ce83c0 100644
--- a/src/util/gnunet-scrypt.c
+++ b/src/util/gnunet-scrypt.c
@@ -117,7 +117,10 @@ find_proof (void *cls)
117 while ((counter != UINT64_MAX) && (i < ROUND_SIZE)) 117 while ((counter != UINT64_MAX) && (i < ROUND_SIZE))
118 { 118 {
119 GNUNET_memcpy (buf, &counter, sizeof(uint64_t)); 119 GNUNET_memcpy (buf, &counter, sizeof(uint64_t));
120 GNUNET_CRYPTO_pow_hash (buf, sizeof(buf), &result); 120 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof-of-work",
121 buf,
122 sizeof(buf),
123 &result);
121 if (nse_work_required <= count_leading_zeroes (&result)) 124 if (nse_work_required <= count_leading_zeroes (&result))
122 { 125 {
123 proof = counter; 126 proof = counter;