api
authorChristian Grothoff <christian@grothoff.org>
Sat, 18 Sep 2010 04:48:47 +0000 (04:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 18 Sep 2010 04:48:47 +0000 (04:48 +0000)
src/include/gnunet_block_lib.h

index 7d06d592f491b666805b4fe6d11880804557496f..5154a3c08feb2bb50759c641de59af11253545b8 100644 (file)
@@ -135,6 +135,19 @@ enum GNUNET_BLOCK_EvaluationResult
 struct GNUNET_BLOCK_Context;
 
 
+/**
+ * Mingle hash with the mingle_number to produce different bits.
+ * 
+ * @param in original hash code
+ * @param mingle_number number for hash permutation
+ * @param hc where to store the result.
+ */
+void
+GNUNET_BLOCK_mingle_hash (const GNUNET_HashCode * in,
+                         int32_t mingle_number, 
+                         GNUNET_HashCode * hc);
+
+
 /**
  * Create a block context.  Loads the block plugins.
  *