aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-scrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-scrypt.c')
-rw-r--r--src/util/gnunet-scrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/gnunet-scrypt.c b/src/util/gnunet-scrypt.c
index 70ba48d82..7d13ce469 100644
--- a/src/util/gnunet-scrypt.c
+++ b/src/util/gnunet-scrypt.c
@@ -79,7 +79,7 @@ count_leading_zeroes (const struct GNUNET_HashCode *hash)
79 unsigned int hash_count; 79 unsigned int hash_count;
80 80
81 hash_count = 0; 81 hash_count = 0;
82 while (0 == GNUNET_CRYPTO_hash_get_bit (hash, hash_count)) 82 while (0 == GNUNET_CRYPTO_hash_get_bit_ltr (hash, hash_count))
83 hash_count++; 83 hash_count++;
84 return hash_count; 84 return hash_count;
85} 85}
@@ -117,7 +117,7 @@ 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 ("gnunet-nse-proof-of-work", 120 GNUNET_CRYPTO_pow_hash ("gnunet-nse-proof",
121 buf, 121 buf,
122 sizeof(buf), 122 sizeof(buf),
123 &result); 123 &result);