diff options
Diffstat (limited to 'src/entropy/entropy_src.h')
-rw-r--r-- | src/entropy/entropy_src.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/entropy/entropy_src.h b/src/entropy/entropy_src.h new file mode 100644 index 000000000..4ee24ce4a --- /dev/null +++ b/src/entropy/entropy_src.h @@ -0,0 +1,26 @@ +/************************************************* +* EntropySource Header File * +* (C) 2008 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_ENTROPY_SOURCE_BASE_H__ +#define BOTAN_ENTROPY_SOURCE_BASE_H__ + +#include <botan/types.h> + +namespace Botan { + +/** +* Abstract interface to a source of (hopefully unpredictable) system entropy +*/ +class BOTAN_DLL EntropySource + { + public: + virtual u32bit slow_poll(byte buf[], u32bit len) = 0; + virtual u32bit fast_poll(byte buf[], u32bit len) = 0; + virtual ~EntropySource() {} + }; + +} + +#endif |