crypto_init.h 983 B

123456789101112131415161718192021222324252627282930313233343536
  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. * \file crypto_init.h
  8. *
  9. * \brief Headers for crypto_init.c
  10. **/
  11. #ifndef TOR_CRYPTO_INIT_H
  12. #define TOR_CRYPTO_INIT_H
  13. #include "orconfig.h"
  14. #include "lib/cc/compat_compiler.h"
  15. int crypto_init_siphash_key(void);
  16. int crypto_early_init(void) ATTR_WUR;
  17. int crypto_global_init(int hardwareAccel,
  18. const char *accelName,
  19. const char *accelPath) ATTR_WUR;
  20. void crypto_thread_cleanup(void);
  21. int crypto_global_cleanup(void);
  22. void crypto_prefork(void);
  23. void crypto_postfork(void);
  24. const char *crypto_get_library_name(void);
  25. const char *crypto_get_library_version_string(void);
  26. const char *crypto_get_header_version_string(void);
  27. int tor_is_using_nss(void);
  28. #endif /* !defined(TOR_CRYPTO_H) */