diff options
author | lloyd <[email protected]> | 2008-04-07 01:41:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-07 01:41:17 +0000 |
commit | a48d895cf5e6874f4ae60c803bda17d62edb7a7b (patch) | |
tree | 2a9531c1ee40403b5a0ff218280bbbe6c9cb2db9 /include/timers.h | |
parent | d4121aee5eeab8328bb6a59ba0c2f16e2d3a72fa (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.h | 6 |
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); |