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 faf04cf27..ab0cf92e0 100644
--- a/src/util/gnunet-scrypt.c
+++ b/src/util/gnunet-scrypt.c
@@ -131,14 +131,14 @@ find_proof (void *cls)
131 "Got Proof of Work %llu\n", 131 "Got Proof of Work %llu\n",
132 (unsigned long long) proof); 132 (unsigned long long) proof);
133 proof_task = NULL; 133 proof_task = NULL;
134 memcpy (&buf[sizeof (uint64_t)], &pub, 134 GNUNET_memcpy (&buf[sizeof (uint64_t)], &pub,
135 sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)); 135 sizeof (struct GNUNET_CRYPTO_EddsaPublicKey));
136 i = 0; 136 i = 0;
137 counter = proof; 137 counter = proof;
138 timestamp = GNUNET_TIME_absolute_get (); 138 timestamp = GNUNET_TIME_absolute_get ();
139 while ((counter != UINT64_MAX) && (i < ROUND_SIZE)) 139 while ((counter != UINT64_MAX) && (i < ROUND_SIZE))
140 { 140 {
141 memcpy (buf, &counter, sizeof (uint64_t)); 141 GNUNET_memcpy (buf, &counter, sizeof (uint64_t));
142 pow_hash (buf, sizeof (buf), &result); 142 pow_hash (buf, sizeof (buf), &result);
143 if (nse_work_required <= count_leading_zeroes (&result)) 143 if (nse_work_required <= count_leading_zeroes (&result))
144 { 144 {