summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 00:42:24 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 00:42:24 +0200
commit24be68238b375f02018b1ed904b443f65eef9513 (patch)
treea11db03dd13dc768740b01d66eebf09c80ff64e8
parent3be8295f2fac6890f2ff0e312c39aecda8b25342 (diff)
use argon2id
-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,
size_t buf_len,
struct GNUNET_HashCode *result)
{
- GNUNET_break (ARGON2_OK == argon2d_hash_raw (3, /* iterations */
- 1024, /* memory (1 MiB) */
- 1, /* threads */
- buf,
- buf_len,
- salt,
- strlen (salt),
- result,
- sizeof (struct
- GNUNET_HashCode)));
-
+ GNUNET_break (ARGON2_OK ==
+ argon2id_hash_raw (3, /* iterations */
+ 1024, /* memory (1 MiB) */
+ 1, /* threads */
+ buf,
+ buf_len,
+ salt,
+ strlen (salt),
+ result,
+ sizeof (struct GNUNET_HashCode)));
}