diff options
Diffstat (limited to 'src/lib/rng/auto_rng')
-rw-r--r-- | src/lib/rng/auto_rng/auto_rng.h | 45 | ||||
-rw-r--r-- | src/lib/rng/auto_rng/info.txt | 9 |
2 files changed, 0 insertions, 54 deletions
diff --git a/src/lib/rng/auto_rng/auto_rng.h b/src/lib/rng/auto_rng/auto_rng.h deleted file mode 100644 index 72ea88d3e..000000000 --- a/src/lib/rng/auto_rng/auto_rng.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -* Auto Seeded RNG -* (C) 2008 Jack Lloyd -* -* Botan is released under the Simplified BSD License (see license.txt) -*/ - -#ifndef BOTAN_AUTO_SEEDING_RNG_H__ -#define BOTAN_AUTO_SEEDING_RNG_H__ - -#include <botan/rng.h> -#include <string> - -namespace Botan { - -class AutoSeeded_RNG : public RandomNumberGenerator - { - public: - void randomize(byte out[], size_t len) override - { m_rng->randomize(out, len); } - - bool is_seeded() const override { return m_rng->is_seeded(); } - - void clear() override { m_rng->clear(); } - - std::string name() const override { return m_rng->name(); } - - size_t reseed_with_sources(Entropy_Sources& srcs, - size_t poll_bits, - std::chrono::milliseconds poll_timeout) override - { - return m_rng->reseed_with_sources(srcs, poll_bits, poll_timeout); - } - - void add_entropy(const byte in[], size_t len) override - { m_rng->add_entropy(in, len); } - - AutoSeeded_RNG() : m_rng(RandomNumberGenerator::make_rng()) {} - private: - std::unique_ptr<RandomNumberGenerator> m_rng; - }; - -} - -#endif diff --git a/src/lib/rng/auto_rng/info.txt b/src/lib/rng/auto_rng/info.txt deleted file mode 100644 index 4f48f484b..000000000 --- a/src/lib/rng/auto_rng/info.txt +++ /dev/null @@ -1,9 +0,0 @@ -define AUTO_SEEDING_RNG 20131128 - -<requires> -hmac_rng -hmac -sha2_32 -sha2_64 -#dev_random|cryptoapi_rng|unix_procs|proc_walk -</requires> |