[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] crypto: Move declaration of crypto_init_siphash_key() into crypto.h.
commit f17ace1460f0de50f32d28e8086fe11032d8cb3f
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Apr 18 19:16:32 2018 +0000
crypto: Move declaration of crypto_init_siphash_key() into crypto.h.
On second thought, this is a global initialisation function and
doesn't conceptually have much to do with getting/using randomnesses.
---
src/common/crypto.h | 1 +
src/common/crypto_rand.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/crypto.h b/src/common/crypto.h
index dcec90314..c77355731 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -38,6 +38,7 @@ typedef struct aes_cnt_cipher crypto_cipher_t;
typedef struct crypto_dh_t crypto_dh_t;
/* global state */
+int crypto_init_siphash_key(void);
int crypto_early_init(void) ATTR_WUR;
int crypto_global_init(int hardwareAccel,
const char *accelName,
diff --git a/src/common/crypto_rand.h b/src/common/crypto_rand.h
index c78195633..4eac94f57 100644
--- a/src/common/crypto_rand.h
+++ b/src/common/crypto_rand.h
@@ -29,7 +29,6 @@ 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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits