summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-17 22:53:57 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-17 22:53:57 +0200
commit69fddff2438a3e672bd785c0f7ed754a7f3ee70a (patch)
treee4d4a7d541858acef6f4ca12ba61095923ac00aa /src/util
parent7055edb1ab58c1968d647db7e2bf7a19226066bb (diff)
parent252641fac99f52ab225fbba3a305b5e0396338c0 (diff)
merge
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto_pow.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/util/crypto_pow.c b/src/util/crypto_pow.c
index 5e225f244..435bf34d6 100644
--- a/src/util/crypto_pow.c
+++ b/src/util/crypto_pow.c
@@ -102,15 +102,15 @@ GNUNET_CRYPTO_pow_hash (const char *salt,
struct GNUNET_CRYPTO_SymmetricSessionKey skey;
char rbuf[buf_len];
- GNUNET_break (0 == gcry_kdf_derive (buf,
- buf_len,
- GCRY_KDF_SCRYPT,
- 1 /* subalgo */,
- salt,
- strlen (salt),
- 2 /* iterations; keep cost of individual op small */,
- sizeof(skey),
- &skey));
+ GNUNET_break (ARGON2_OK == argon2d_hash_raw (buf,
+ buf_len,
+ GCRY_KDF_SCRYPT,
+ 1 /* subalgo */,
+ salt,
+ strlen (salt),
+ 2 /* iterations; keep cost of individual op small */,
+ sizeof(skey),
+ &skey));
GNUNET_CRYPTO_symmetric_derive_iv (&iv,
&skey,
"gnunet-proof-of-work-iv",