14 #include "ext/siphash.h"
19 bloomfilt_digest_hash(
const struct sipkey *key,
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.
Definitions for common sizes of cryptographic digests.
void digestset_add(digestset_t *set, const char *digest)
int digestset_probably_contains(const digestset_t *set, const char *digest)
digestset_t * digestset_new(int max_guess)
Types to handle sets of digests, based on bloom filters.