Botan
1.11.15
|
00001 /* 00002 * High Resolution Timestamp Entropy Source 00003 * (C) 1999-2009 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_ENTROPY_SRC_HRES_TIMER_H__ 00009 #define BOTAN_ENTROPY_SRC_HRES_TIMER_H__ 00010 00011 #include <botan/entropy_src.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * Entropy source using high resolution timers 00017 * 00018 * @note Any results from timers are marked as not contributing entropy 00019 * to the poll, as a local attacker could observe them directly. 00020 */ 00021 class High_Resolution_Timestamp : public EntropySource 00022 { 00023 public: 00024 std::string name() const { return "High Resolution Timestamp"; } 00025 void poll(Entropy_Accumulator& accum); 00026 }; 00027 00028 } 00029 00030 #endif