From 91cccda131a12be139d50effe4657c6b24e36135 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 17 Apr 2020 22:55:52 +0200 Subject: [PATCH] revert --- src/util/crypto_pow.c | 18 +++++++++--------- 1 file 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", -- 2.25.1