create crypto_pow, in preparation for #3795
[oweals/gnunet.git] / src / include / gnunet_crypto_lib.h
index 507705e50b2f35117dedc51055aef34ac4ab0059..4a42c5c74e6adad0d4debb9f19ef11e90809ea87 100644 (file)
@@ -654,6 +654,19 @@ GNUNET_CRYPTO_hash (const void *block,
                     struct GNUNET_HashCode *ret);
 
 
+/**
+ * Calculate the 'proof-of-work' hash (an expensive hash).
+ *
+ * @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,
+                        size_t buf_len,
+                        struct GNUNET_HashCode *result);
+
+
 /**
  * Context for cummulative hashing.
  */