aboutsummaryrefslogtreecommitdiffstats
path: root/include/timers.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-07 01:41:17 +0000
committerlloyd <[email protected]>2008-04-07 01:41:17 +0000
commita48d895cf5e6874f4ae60c803bda17d62edb7a7b (patch)
tree2a9531c1ee40403b5a0ff218280bbbe6c9cb2db9 /include/timers.h
parentd4121aee5eeab8328bb6a59ba0c2f16e2d3a72fa (diff)
In Botan, the Timer base class provides access to a high-resolution
timer with an unspecified update rate and epoch. It is only used inside the entropy sources to provide some timing-dependent randomness. However, it is easier and basically 'as good' to treat the timers as entropy sources in their own right and feed their output directly into an entropy pool. This commit removes Library_State::system_clock and all calls to that function.
Diffstat (limited to 'include/timers.h')
-rw-r--r--include/timers.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/timers.h b/include/timers.h
index 9c836f064..676d7bbd2 100644
--- a/include/timers.h
+++ b/include/timers.h
@@ -6,17 +6,19 @@
#ifndef BOTAN_TIMERS_H__
#define BOTAN_TIMERS_H__
-#include <botan/types.h>
+#include <botan/base.h>
namespace Botan {
/*************************************************
* Timer Interface *
*************************************************/
-class Timer
+class Timer : public EntropySource
{
public:
virtual u64bit clock() const;
+ u32bit slow_poll(byte[], u32bit);
+
virtual ~Timer() {}
protected:
static u64bit combine_timers(u32bit, u32bit, u32bit);