Boston, MA 02110-1301, USA.
*/
/**
- * @file set/gnunet-service-set_union.c msg->salt = htonl (op->state->salt_send);
+ * @file set/gnunet-service-set_union.c
* @brief two-peer set operations
* @author Florian Dold
{
int s = salt % 64;
uint64_t x = k_in->key_val;
+ /* rotate ibf key */
x = (x >> s) | (x << (64 - s));
k_out->key_val = x;
}
uint32_t salt,
struct IBF_Key *k_out)
{
- int s = -(salt % 64);
+ int s = salt % 64;
uint64_t x = k_in->key_val;
- x = (x >> s) | (x << (64 - s));
+ x = (x << s) | (x >> (64 - s));
k_out->key_val = x;
}
"# of IBF retries",
1,
GNUNET_NO);
- // FIXME: make salt work
- // op->state->salt_send++;
+ op->state->salt_send++;
if (GNUNET_OK !=
send_ibf (op, next_order))
{