"Fossies" - the Fresh Open Source Software Archive

Member "tor-0.4.1.6/src/lib/crypt_ops/crypto_init.h" (10 Jun 2019, 988 Bytes) of package /linux/misc/tor-0.4.1.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "crypto_init.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.4.0.5_vs_0.4.1.5.

    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-2019, 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"
   17 #include "lib/cc/compat_compiler.h"
   18 
   19 int crypto_init_siphash_key(void);
   20 int crypto_early_init(void) ATTR_WUR;
   21 int crypto_global_init(int hardwareAccel,
   22                        const char *accelName,
   23                        const char *accelPath) ATTR_WUR;
   24 
   25 void crypto_thread_cleanup(void);
   26 int crypto_global_cleanup(void);
   27 void crypto_prefork(void);
   28 void crypto_postfork(void);
   29 
   30 const char *crypto_get_library_name(void);
   31 const char *crypto_get_library_version_string(void);
   32 const char *crypto_get_header_version_string(void);
   33 
   34 int tor_is_using_nss(void);
   35 
   36 #endif /* !defined(TOR_CRYPTO_INIT_H) */