aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-30 22:43:08 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-30 22:43:19 +0100
commitea544ab2cae7f4f969a705d33d10da1a004cbd70 (patch)
treeaa4cc29c9831b5bfa9221ed2740b46e6f79e8841 /src/include/gnunet_crypto_lib.h
parentd817f861e6da2da5759a4b55117a8d8d47a91a87 (diff)
downloadgnunet-ea544ab2cae7f4f969a705d33d10da1a004cbd70.tar.gz
gnunet-ea544ab2cae7f4f969a705d33d10da1a004cbd70.zip
create crypto_pow, in preparation for #3795
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 507705e50..4a42c5c74 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -655,6 +655,19 @@ GNUNET_CRYPTO_hash (const void *block,
655 655
656 656
657/** 657/**
658 * Calculate the 'proof-of-work' hash (an expensive hash).
659 *
660 * @param buf data to hash
661 * @param buf_len number of bytes in @a buf
662 * @param result where to write the resulting hash
663 */
664void
665GNUNET_CRYPTO_pow_hash (const void *buf,
666 size_t buf_len,
667 struct GNUNET_HashCode *result);
668
669
670/**
658 * Context for cummulative hashing. 671 * Context for cummulative hashing.
659 */ 672 */
660struct GNUNET_HashContext; 673struct GNUNET_HashContext;