Botan 1.10.17

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 */
21 class High_Resolution_Timestamp : public EntropySource
22 {
23 public:
24 std::string name() const { return "High Resolution Timestamp"; }
25 void poll(Entropy_Accumulator& accum);
26 };
27
28 }
29
30 #endif
Botan::High_Resolution_Timestamp
Definition: hres_timer.h:21
Botan::EntropySource
Definition: entropy_src.h:122
Botan
Definition: algo_base.h:14
Botan::High_Resolution_Timestamp::name
std::string name() const
Definition: hres_timer.h:24
Botan::High_Resolution_Timestamp::poll
void poll(Entropy_Accumulator &accum)
Definition: hres_timer.cpp:21
Botan::Entropy_Accumulator
Definition: entropy_src.h:19