From a48d895cf5e6874f4ae60c803bda17d62edb7a7b Mon Sep 17 00:00:00 2001 From: lloyd <lloyd@randombit.net> Date: Mon, 7 Apr 2008 01:41:17 +0000 Subject: 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. --- include/timers.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/timers.h') 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); -- cgit v1.2.3