| Tor 0.4.9.3-alpha-dev
    | 
Headers for crypto_init.c. More...
Go to the source code of this file.
| Functions | |
| int | crypto_init_siphash_key (void) | 
| int | crypto_early_init (void) ATTR_WUR | 
| int | crypto_global_init (int hardwareAccel, const char *accelName, const char *accelPath) ATTR_WUR | 
| void | crypto_thread_cleanup (void) | 
| int | crypto_global_cleanup (void) | 
| void | crypto_prefork (void) | 
| void | crypto_postfork (void) | 
| const char * | crypto_get_library_name (void) | 
| const char * | crypto_get_library_version_string (void) | 
| const char * | crypto_get_header_version_string (void) | 
| int | tor_is_using_nss (void) | 
Headers for crypto_init.c.
Definition in file crypto_init.h.
| int crypto_early_init | ( | void | ) | 
Initialize the crypto library. Return 0 on success, -1 on failure.
Definition at line 60 of file crypto_init.c.
Referenced by crypto_global_init().
| const char * crypto_get_header_version_string | ( | void | ) | 
Return the version of the crypto library we're using, as given in the headers.
Definition at line 207 of file crypto_init.c.
| const char * crypto_get_library_name | ( | void | ) | 
Return the name of the crypto library we're using.
Definition at line 181 of file crypto_init.c.
Referenced by options_init_from_torrc(), and tor_init().
| const char * crypto_get_library_version_string | ( | void | ) | 
Return the version of the crypto library we are using, as given in the library.
Definition at line 194 of file crypto_init.c.
Referenced by options_init_from_torrc(), and tor_init().
| int crypto_global_cleanup | ( | void | ) | 
Uninitialize the crypto library. Return 0 on success. Does not detect failure.
Definition at line 132 of file crypto_init.c.
| int crypto_global_init | ( | int | useAccel, | 
| const char * | accelName, | ||
| const char * | accelDir | ||
| ) | 
Initialize the crypto library. Return 0 on success, -1 on failure.
Definition at line 91 of file crypto_init.c.
Referenced by crypto_set_options().
| int crypto_init_siphash_key | ( | void | ) | 
Set up the siphash key if we haven't already done so.
Definition at line 45 of file crypto_init.c.
Referenced by crypto_early_init().
| void crypto_postfork | ( | void | ) | 
Run operations that the crypto library requires to be happy again after forking.
Definition at line 172 of file crypto_init.c.
| void crypto_prefork | ( | void | ) | 
Run operations that the crypto library requires to be happy again after forking.
Definition at line 156 of file crypto_init.c.
| void crypto_thread_cleanup | ( | void | ) | 
Free crypto resources held by this thread.
Definition at line 119 of file crypto_init.c.
| int tor_is_using_nss | ( | void | ) | 
Return true iff Tor is using the NSS library.
Definition at line 219 of file crypto_init.c.