aboutsummaryrefslogtreecommitdiffstats
path: root/modules/es_dev/es_dev.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-11-17 02:29:00 +0000
committerlloyd <[email protected]>2007-11-17 02:29:00 +0000
commit0c0a18ea9ea67a47c48c37b344745af44877e218 (patch)
tree8eaf1d83c6ec3825cfd336d823924578f8e4b726 /modules/es_dev/es_dev.h
parentfedea15eb92bed68148a57fbd3b0b5ab3d2cb4b8 (diff)
Add a new module, es_dev, that will replace es_file. Instead of using C++
iostreams, it uses unbuffered Unix I/O syscalls and is careful to avoid blocking for more than short amounts of time.
Diffstat (limited to 'modules/es_dev/es_dev.h')
-rw-r--r--modules/es_dev/es_dev.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/es_dev/es_dev.h b/modules/es_dev/es_dev.h
new file mode 100644
index 000000000..d491a7b18
--- /dev/null
+++ b/modules/es_dev/es_dev.h
@@ -0,0 +1,24 @@
+/*************************************************
+* Device EntropySource Header File *
+* (C) 1999-2007 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_ENTROPY_SRC_DEVICE_H__
+#define BOTAN_ENTROPY_SRC_DEVICE_H__
+
+#include <botan/base.h>
+
+namespace Botan {
+
+/*************************************************
+* Device Based Entropy Source *
+*************************************************/
+class Device_EntropySource : public EntropySource
+ {
+ public:
+ u32bit slow_poll(byte[], u32bit);
+ };
+
+}
+
+#endif