diff options
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 507705e50..00fe3fbef 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -655,6 +655,21 @@ 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 salt salt to use in pow calculation | ||
661 | * @param buf data to hash | ||
662 | * @param buf_len number of bytes in @a buf | ||
663 | * @param result where to write the resulting hash | ||
664 | */ | ||
665 | void | ||
666 | GNUNET_CRYPTO_pow_hash (const char *salt, | ||
667 | const void *buf, | ||
668 | size_t buf_len, | ||
669 | struct GNUNET_HashCode *result); | ||
670 | |||
671 | |||
672 | /** | ||
658 | * Context for cummulative hashing. | 673 | * Context for cummulative hashing. |
659 | */ | 674 | */ |
660 | struct GNUNET_HashContext; | 675 | struct GNUNET_HashContext; |