From: Schanzenbach, Martin Date: Fri, 17 Apr 2020 20:55:52 +0000 (+0200) Subject: revert X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91cccda131a12be139d50effe4657c6b24e36135;p=oweals%2Fgnunet.git revert --- 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",