diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-12 11:46:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:12:58 -0500 |
commit | c1e98c8afe2973286f9bef28e760cbf95a2738fd (patch) | |
tree | 11cc4f29d43fc020204cde717733cc4bc1b791c8 /src/common/crypto.h | |
parent | d3fb846d8c98c13d349762682e714e8312f20270 (diff) | |
download | tor-c1e98c8afe2973286f9bef28e760cbf95a2738fd.tar.gz tor-c1e98c8afe2973286f9bef28e760cbf95a2738fd.zip |
Randomize the global siphash key at startup
This completes our conversion to using siphash for our hash functions.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 79a8a1bda4..3666d5f9a3 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -257,6 +257,7 @@ uint64_t crypto_rand_uint64(uint64_t max); double crypto_rand_double(void); struct tor_weak_rng_t; void crypto_seed_weak_rng(struct tor_weak_rng_t *rng); +int crypto_init_siphash_key(void); char *crypto_random_hostname(int min_rand_len, int max_rand_len, const char *prefix, const char *suffix); |