diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-30 23:08:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-30 23:08:49 +0100 |
commit | 7cde88367991dcd1deca2485970c353fec5aff3e (patch) | |
tree | c2db008b530ac935a3375d562f80e67e85ba32b0 /src/include/gnunet_crypto_lib.h | |
parent | f536489f831c5fd243c22545be12a2cd0f88a84d (diff) | |
download | gnunet-7cde88367991dcd1deca2485970c353fec5aff3e.tar.gz gnunet-7cde88367991dcd1deca2485970c353fec5aff3e.zip |
use new POW function consistently, also in revocation
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
657 | /** | 657 | /** |
658 | * Calculate the 'proof-of-work' hash (an expensive hash). | 658 | * Calculate the 'proof-of-work' hash (an expensive hash). |
659 | * | 659 | * |
660 | * @param salt salt to use in pow calculation | ||
660 | * @param buf data to hash | 661 | * @param buf data to hash |
661 | * @param buf_len number of bytes in @a buf | 662 | * @param buf_len number of bytes in @a buf |
662 | * @param result where to write the resulting hash | 663 | * @param result where to write the resulting hash |
663 | */ | 664 | */ |
664 | void | 665 | void |
665 | GNUNET_CRYPTO_pow_hash (const void *buf, | 666 | GNUNET_CRYPTO_pow_hash (const char *salt, |
667 | const void *buf, | ||
666 | size_t buf_len, | 668 | size_t buf_len, |
667 | struct GNUNET_HashCode *result); | 669 | struct GNUNET_HashCode *result); |
668 | 670 | ||