Tor 0.4.9.0-alpha-dev
crypto_init.h
Go to the documentation of this file.
1/* Copyright (c) 2001, Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5/* See LICENSE for licensing information */
6
7/**
8 * \file crypto_init.h
9 *
10 * \brief Headers for crypto_init.c
11 **/
12
13#ifndef TOR_CRYPTO_INIT_H
14#define TOR_CRYPTO_INIT_H
15
16#include "orconfig.h"
18
20int crypto_early_init(void) ATTR_WUR;
21int crypto_global_init(int hardwareAccel,
22 const char *accelName,
23 const char *accelPath) ATTR_WUR;
24
25void crypto_thread_cleanup(void);
26int crypto_global_cleanup(void);
27void crypto_prefork(void);
28void crypto_postfork(void);
29
30const char *crypto_get_library_name(void);
31const char *crypto_get_library_version_string(void);
32const char *crypto_get_header_version_string(void);
33
34int tor_is_using_nss(void);
35
36#endif /* !defined(TOR_CRYPTO_INIT_H) */
Utility macros to handle different features and behavior in different compilers.
int crypto_global_cleanup(void)
Definition: crypto_init.c:129
int crypto_global_init(int hardwareAccel, const char *accelName, const char *accelPath) ATTR_WUR
Definition: crypto_init.c:88
void crypto_postfork(void)
Definition: crypto_init.c:169
int crypto_init_siphash_key(void)
Definition: crypto_init.c:44
const char * crypto_get_library_version_string(void)
Definition: crypto_init.c:191
void crypto_thread_cleanup(void)
Definition: crypto_init.c:116
int crypto_early_init(void) ATTR_WUR
Definition: crypto_init.c:59
void crypto_prefork(void)
Definition: crypto_init.c:153
const char * crypto_get_header_version_string(void)
Definition: crypto_init.c:204
const char * crypto_get_library_name(void)
Definition: crypto_init.c:178
int tor_is_using_nss(void)
Definition: crypto_init.c:216