blob: e0d2661415b9d15eafb4ade047190789a2fc41f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*************************************************
* File Tree Walking EntropySource Header File *
* (C) 1999-2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_ENTROPY_SRC_FTW_H__
#define BOTAN_ENTROPY_SRC_FTW_H__
#include <botan/buf_es.h>
namespace Botan {
/*************************************************
* File Tree Walking Entropy Source *
*************************************************/
class BOTAN_DLL FTW_EntropySource : public Buffered_EntropySource
{
public:
FTW_EntropySource(const std::string& root_dir);
private:
void do_fast_poll();
void do_slow_poll();
void poll(u32bit max_read);
const std::string path;
};
}
#endif
|