From 16a9103e5ae9bfc4065a84bb990421694c39d123 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 18 Sep 2010 04:48:47 +0000 Subject: api --- src/include/gnunet_block_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/gnunet_block_lib.h') diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h index 7d06d592f..5154a3c08 100644 --- a/src/include/gnunet_block_lib.h +++ b/src/include/gnunet_block_lib.h @@ -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. * -- cgit v1.2.3