diff options
author | lloyd <[email protected]> | 2008-06-27 17:09:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 17:09:48 +0000 |
commit | e6a5313d766829e2f5f17763d148a26d1a358c05 (patch) | |
tree | 9f426437a3996a5a96d9cdb71897a69dfb5ad2ae /include | |
parent | 7861a5a673ab8176d8d89e3f69a4c5a0cd649485 (diff) |
Remove the global PRNG object as well as the global list of entropy sources.
Diffstat (limited to 'include')
-rw-r--r-- | include/init.h | 1 | ||||
-rw-r--r-- | include/libstate.h | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/init.h b/include/init.h index 85f47545f..f4296a868 100644 --- a/include/init.h +++ b/include/init.h @@ -20,7 +20,6 @@ class BOTAN_DLL InitializerOptions public: bool thread_safe() const; bool use_engines() const; - bool seed_rng() const; bool secure_memory() const; bool fips_mode() const; bool self_test() const; diff --git a/include/libstate.h b/include/libstate.h index 69f30a886..51be2431e 100644 --- a/include/libstate.h +++ b/include/libstate.h @@ -45,18 +45,6 @@ class BOTAN_DLL Library_State void add_allocator(Allocator*); void set_default_allocator(const std::string&) const; - bool rng_is_seeded() const { return rng->is_seeded(); } - void randomize(byte[], u32bit); - byte random(); - - void set_prng(RandomNumberGenerator*); - void add_entropy_source(EntropySource*, bool = true); - void add_entropy(const byte[], u32bit); - void add_entropy(EntropySource&, bool); - u32bit seed_prng(bool, u32bit); - - RandomNumberGenerator& prng_reference() { return (*rng); } - class Config& config() const; class Mutex* get_mutex() const; @@ -73,11 +61,7 @@ class BOTAN_DLL Library_State class Mutex* allocator_lock; std::map<std::string, Allocator*> alloc_factory; mutable Allocator* cached_default_allocator; - - class Mutex* rng_lock; - RandomNumberGenerator* rng; std::vector<Allocator*> allocators; - std::vector<EntropySource*> entropy_sources; class Mutex* engine_lock; std::vector<class Engine*> engines; |