From 7cde88367991dcd1deca2485970c353fec5aff3e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Nov 2019 23:08:49 +0100 Subject: use new POW function consistently, also in revocation --- src/include/gnunet_crypto_lib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/gnunet_crypto_lib.h') diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 4a42c5c74..00fe3fbef 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -657,12 +657,14 @@ GNUNET_CRYPTO_hash (const void *block, /** * Calculate the 'proof-of-work' hash (an expensive hash). * + * @param salt salt to use in pow calculation * @param buf data to hash * @param buf_len number of bytes in @a buf * @param result where to write the resulting hash */ void -GNUNET_CRYPTO_pow_hash (const void *buf, +GNUNET_CRYPTO_pow_hash (const char *salt, + const void *buf, size_t buf_len, struct GNUNET_HashCode *result); -- cgit v1.2.3