17int tor_memcmp(
const void *a,
const void *b,
size_t sz);
18int tor_memeq(
const void *a,
const void *b,
size_t sz);
21#define tor_memneq(a,b,sz) (!tor_memeq((a),(b),(sz)))
28#define fast_memcmp(a,b,c) (memcmp((a),(b),(c)))
35#define fast_memeq(a,b,c) (0==memcmp((a),(b),(c)))
42#define fast_memneq(a,b,c) (0!=memcmp((a),(b),(c)))
63#define dimap_free(map, free_fn) \
65 dimap_free_((map), (free_fn)); \
69 const uint8_t *
key,
void *
val);
74 uint64_t total, uint64_t rand_val);
void dimap_add_entry(di_digest256_map_t **map, const uint8_t *key, void *val)
void memcpy_if_true_timei(bool s, void *dest, const void *src, size_t n)
void(* dimap_free_fn)(void *)
int tor_memeq(const void *a, const void *b, size_t sz)
int select_array_member_cumulative_timei(const uint64_t *entries, int n_entries, uint64_t total, uint64_t rand_val)
int safe_mem_is_zero(const void *mem, size_t sz)
void dimap_free_(di_digest256_map_t *map, dimap_free_fn free_fn)
int tor_memcmp(const void *a, const void *b, size_t sz)
void * dimap_search(const di_digest256_map_t *map, const uint8_t *key, void *dflt_val)
Integer definitions used throughout Tor.