diff options
author | lloyd <[email protected]> | 2008-09-28 23:04:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 23:04:35 +0000 |
commit | 8820c122b9cd665621729abfcf8c6751762535df (patch) | |
tree | 26f775d42720c60adf13127da17d715d51187765 /include | |
parent | 7b04ba8df59963f9907bcd5fd6eb3dcfc81513cf (diff) |
Move buf_es into module, add deps where needed
Diffstat (limited to 'include')
-rw-r--r-- | include/buf_es.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/include/buf_es.h b/include/buf_es.h deleted file mode 100644 index 5748613da..000000000 --- a/include/buf_es.h +++ /dev/null @@ -1,39 +0,0 @@ -/************************************************* -* Buffered EntropySource Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ - -#ifndef BOTAN_BUFFERED_ES_H__ -#define BOTAN_BUFFERED_ES_H__ - -#include <botan/rng.h> -#include <botan/secmem.h> - -namespace Botan { - -/************************************************* -* Buffered EntropySource * -*************************************************/ -class BOTAN_DLL Buffered_EntropySource : public EntropySource - { - public: - u32bit slow_poll(byte[], u32bit); - u32bit fast_poll(byte[], u32bit); - protected: - Buffered_EntropySource(); - u32bit copy_out(byte[], u32bit, u32bit); - - void add_bytes(const void*, u32bit); - void add_bytes(u64bit); - - virtual void do_slow_poll() = 0; - virtual void do_fast_poll(); - private: - SecureVector<byte> buffer; - u32bit write_pos, read_pos; - bool done_slow_poll; - }; - -} - -#endif |