2020-01-09 00:39:17 +01:00
|
|
|
/* Copyright (c) 2017-2020, The Tor Project, Inc. */
|
2019-03-18 14:37:13 +01:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef TOR_RNG_TEST_HELPERS_H
|
|
|
|
#define TOR_RNG_TEST_HELPERS_H
|
|
|
|
|
|
|
|
#include "core/or/or.h"
|
|
|
|
|
|
|
|
void testing_enable_deterministic_rng(void);
|
|
|
|
void testing_enable_reproducible_rng(void);
|
2019-03-18 14:59:18 +01:00
|
|
|
void testing_enable_prefilled_rng(const void *buffer, size_t buflen);
|
|
|
|
|
|
|
|
void testing_prefilled_rng_reset(void);
|
2019-03-18 14:37:13 +01:00
|
|
|
|
|
|
|
void testing_disable_rng_override(void);
|
|
|
|
|
2019-05-15 01:49:50 +02:00
|
|
|
void testing_disable_reproducible_rng(void);
|
2019-03-18 14:37:13 +01:00
|
|
|
#define testing_disable_deterministic_rng() \
|
|
|
|
testing_disable_rng_override()
|
2019-03-18 14:59:18 +01:00
|
|
|
#define testing_disable_prefilled_rng() \
|
|
|
|
testing_disable_rng_override()
|
2019-03-18 14:37:13 +01:00
|
|
|
|
|
|
|
void testing_dump_reproducible_rng_seed(void);
|
|
|
|
|
|
|
|
#endif /* !defined(TOR_RNG_TEST_HELPERS_H) */
|