Botan  1.10.9
es_ftw.h
Go to the documentation of this file.
1 /*
2 * File Tree Walking EntropySource
3 * (C) 1999-2008 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_ENTROPY_SRC_FTW_H__
9 #define BOTAN_ENTROPY_SRC_FTW_H__
10 
11 #include <botan/entropy_src.h>
12 
13 namespace Botan {
14 
15 /**
16 * File Tree Walking Entropy Source
17 */
19  {
20  public:
21  std::string name() const { return "Proc Walker"; }
22 
23  void poll(Entropy_Accumulator& accum);
24 
25  FTW_EntropySource(const std::string& root_dir);
27  private:
28  std::string path;
29  class File_Descriptor_Source* dir;
30  };
31 
32 }
33 
34 #endif
void poll(Entropy_Accumulator &accum)
Definition: es_ftw.cpp:149
std::string name() const
Definition: es_ftw.h:21
FTW_EntropySource(const std::string &root_dir)
Definition: es_ftw.cpp:136