blob: 0a48cc551e753ff258805b9665b41f37390608d3 (
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_EXT_ENTROPY_SRC_FTW_H__
#define BOTAN_EXT_ENTROPY_SRC_FTW_H__
#include <botan/buf_es.h>
namespace Botan {
/*************************************************
* File Tree Walking Entropy Source *
*************************************************/
class 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
|