revert
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 17 Apr 2020 20:55:52 +0000 (22:55 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 17 Apr 2020 20:55:52 +0000 (22:55 +0200)
src/util/crypto_pow.c

index 435bf34d6d8b17c34c66220a8acab44801172298..5e225f244eded744c5fa1b80cff6d41f996c0e5b 100644 (file)
@@ -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",