Botan  1.10.9
hres_timer.h
Go to the documentation of this file.
1 /*
2 * High Resolution Timestamp Entropy Source
3 * (C) 1999-2009 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_ENTROPY_SRC_HRES_TIMER_H__
9 #define BOTAN_ENTROPY_SRC_HRES_TIMER_H__
10 
11 #include <botan/entropy_src.h>
12 
13 namespace Botan {
14 
15 /**
16 * Entropy source using high resolution timers
17 *
18 * @note Any results from timers are marked as not contributing entropy
19 * to the poll, as a local attacker could observe them directly.
20 */
22  {
23  public:
24  std::string name() const { return "High Resolution Timestamp"; }
25  void poll(Entropy_Accumulator& accum);
26  };
27 
28 }
29 
30 #endif
std::string name() const
Definition: hres_timer.h:24
void poll(Entropy_Accumulator &accum)
Definition: hres_timer.cpp:21