tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

rng_test_helpers.h (723B)


      1 /* Copyright (c) 2017-2021, The Tor Project, Inc. */
      2 /* See LICENSE for licensing information */
      3 
      4 #ifndef TOR_RNG_TEST_HELPERS_H
      5 #define TOR_RNG_TEST_HELPERS_H
      6 
      7 #include "core/or/or.h"
      8 
      9 void testing_enable_deterministic_rng(void);
     10 void testing_enable_reproducible_rng(void);
     11 void testing_enable_prefilled_rng(const void *buffer, size_t buflen);
     12 
     13 void testing_prefilled_rng_reset(void);
     14 
     15 void testing_disable_rng_override(void);
     16 
     17 void testing_disable_reproducible_rng(void);
     18 #define testing_disable_deterministic_rng() \
     19  testing_disable_rng_override()
     20 #define testing_disable_prefilled_rng() \
     21  testing_disable_rng_override()
     22 
     23 void testing_dump_reproducible_rng_seed(void);
     24 
     25 #endif /* !defined(TOR_RNG_TEST_HELPERS_H) */