aboutsummaryrefslogtreecommitdiffstats
path: root/modules/entropy/proc_walk/es_ftw.h
blob: a2229ff1fa5889c8894ee8e15e7969f0f4740717 (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 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