aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/crypto_pow.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/util/crypto_pow.c b/src/util/crypto_pow.c
index 35511a130..6176afc33 100644
--- a/src/util/crypto_pow.c
+++ b/src/util/crypto_pow.c
@@ -43,17 +43,16 @@ GNUNET_CRYPTO_pow_hash (const char *salt,
43 size_t buf_len, 43 size_t buf_len,
44 struct GNUNET_HashCode *result) 44 struct GNUNET_HashCode *result)
45{ 45{
46 GNUNET_break (ARGON2_OK == argon2d_hash_raw (3, /* iterations */ 46 GNUNET_break (ARGON2_OK ==
47 1024, /* memory (1 MiB) */ 47 argon2id_hash_raw (3, /* iterations */
48 1, /* threads */ 48 1024, /* memory (1 MiB) */
49 buf, 49 1, /* threads */
50 buf_len, 50 buf,
51 salt, 51 buf_len,
52 strlen (salt), 52 salt,
53 result, 53 strlen (salt),
54 sizeof (struct 54 result,
55 GNUNET_HashCode))); 55 sizeof (struct GNUNET_HashCode)));
56
57} 56}
58 57
59 58