diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-12 11:56:29 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:04:07 -0500 |
commit | d3fb846d8c98c13d349762682e714e8312f20270 (patch) | |
tree | 68d2ca881730b581d0f94faf9c548c672a9c7f0f /src/common/crypto.h | |
parent | 0e97c8e23e2572c14dd0f4f4fbfca77ee8a48be2 (diff) | |
download | tor-d3fb846d8c98c13d349762682e714e8312f20270.tar.gz tor-d3fb846d8c98c13d349762682e714e8312f20270.zip |
Split crypto_global_init() into pre/post config
It's increasingly apparent that we want to make sure we initialize our
PRNG nice and early, or else OpenSSL will do it for us. (OpenSSL
doesn't do _too_ bad a job, but it's nice to do it ourselves.)
We'll also need this for making sure we initialize the siphash key
before we do any hashes.
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 6ce3697c92..79a8a1bda4 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -110,6 +110,7 @@ typedef struct crypto_dh_t crypto_dh_t; /* global state */ const char * crypto_openssl_get_version_str(void); const char * crypto_openssl_get_header_version_str(void); +int crypto_early_init(void); int crypto_global_init(int hardwareAccel, const char *accelName, const char *accelPath); |