Botan: src/entropy/proc_walk/es_ftw.h Source File

Botan 1.10.17

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 */
18 class FTW_EntropySource : public EntropySource
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);
26 ~FTW_EntropySource();
27 private:
28 std::string path;
29 class File_Descriptor_Source* dir;
30 };
31
32 }
33
34 #endif
Botan::FTW_EntropySource::~FTW_EntropySource
~FTW_EntropySource()
Definition: es_ftw.cpp:144
Botan::FTW_EntropySource::poll
void poll(Entropy_Accumulator &accum)
Definition: es_ftw.cpp:149
Botan::FTW_EntropySource::name
std::string name() const
Definition: es_ftw.h:21
Botan::EntropySource
Definition: entropy_src.h:122
Botan::FTW_EntropySource::FTW_EntropySource
FTW_EntropySource(const std::string &root_dir)
Definition: es_ftw.cpp:136
Botan::FTW_EntropySource
Definition: es_ftw.h:18
Botan
Definition: algo_base.h:14
Botan::Entropy_Accumulator
Definition: entropy_src.h:19