mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
42751e2123
This causes openssl to get completely reinitialized on startup, which is probably a good idea.
15 lines
332 B
C
15 lines
332 B
C
#ifndef SIPHASH_H
|
|
#define SIPHASH_H
|
|
|
|
struct sipkey {
|
|
uint64_t k0;
|
|
uint64_t k1;
|
|
};
|
|
uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key);
|
|
|
|
void siphash_set_global_key(const struct sipkey *key);
|
|
uint64_t siphash24g(const void *src, unsigned long src_sz);
|
|
void siphash_unset_global_key(void);
|
|
|
|
#endif
|