summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-17 22:55:52 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-17 22:55:52 +0200
commit91cccda131a12be139d50effe4657c6b24e36135 (patch)
tree8cc93529684dba891cddf73a9c16d90a38ceb260 /src/util
parent69fddff2438a3e672bd785c0f7ed754a7f3ee70a (diff)
revert
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 435bf34d6..5e225f244 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 (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_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_CRYPTO_symmetric_derive_iv (&iv,
&skey,
"gnunet-proof-of-work-iv",