uint64_t tor_addr_keyed_hash(const struct sipkey *key, const tor_addr_t *addr)
#define tor_addr_from_ipv4h(dest, v4addr)
address_set_t * address_set_new(int max_addresses_guess)
void address_set_add_ipv4h(address_set_t *set, uint32_t addr)
void address_set_add(address_set_t *set, const struct tor_addr_t *addr)
int address_set_probably_contains(const address_set_t *set, const struct tor_addr_t *addr)
static uint64_t bloomfilt_addr_hash(const struct sipkey *key, const void *item)
Types to handle sets of addresses.
void bloomfilt_add(bloomfilt_t *set, const void *item)
int bloomfilt_probably_contains(const bloomfilt_t *set, const void *item)
bloomfilt_t * bloomfilt_new(int max_elements, bloomfilt_hash_fn hashfn, const uint8_t *random_key)
#define BLOOMFILT_KEY_LEN
void crypto_rand(char *to, size_t n)
Common functions for using (pseudo-)random number generators.