diff options
author | lloyd <[email protected]> | 2008-06-10 19:55:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-10 19:55:45 +0000 |
commit | 7253964aba9ca41a88261557d8cd91df39cd4b88 (patch) | |
tree | 1cd269297c898a8ed126906518f10864cf10d498 /include/base.h | |
parent | b36db2d74992f2ea80329378c32a6321d6a60b26 (diff) |
Move the declaration of the RandomNumberGenerator base class from base.h
to rng.h (eventually base.h will be split up entirely and go away)
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/base.h b/include/base.h index efeb5e895..69bc71bca 100644 --- a/include/base.h +++ b/include/base.h @@ -138,37 +138,6 @@ class BOTAN_DLL MessageAuthenticationCode : public BufferedComputation, virtual ~MessageAuthenticationCode() {} }; -/************************************************* -* Entropy Source * -*************************************************/ -class BOTAN_DLL EntropySource - { - public: - virtual u32bit slow_poll(byte[], u32bit) = 0; - virtual u32bit fast_poll(byte[], u32bit); - virtual ~EntropySource() {} - }; - -/************************************************* -* Random Number Generator * -*************************************************/ -class BOTAN_DLL RandomNumberGenerator - { - public: - virtual void randomize(byte[], u32bit) throw(PRNG_Unseeded) = 0; - virtual bool is_seeded() const = 0; - virtual void clear() throw() {}; - - byte next_byte(); - - void add_entropy(const byte[], u32bit); - u32bit add_entropy(EntropySource&, bool = true); - - virtual ~RandomNumberGenerator() {} - private: - virtual void add_randomness(const byte[], u32bit) = 0; - }; - } #endif |