aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/dev_random/es_dev.h
blob: 21d28b9bbb4e131d470d5ac3ec15b20539d77486 (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
/*************************************************
* Device EntropySource Header File               *
* (C) 1999-2007 Jack Lloyd                       *
*************************************************/

#ifndef BOTAN_ENTROPY_SRC_DEVICE_H__
#define BOTAN_ENTROPY_SRC_DEVICE_H__

#include <botan/rng.h>
#include <vector>

namespace Botan {

/*************************************************
* Device Based Entropy Source                    *
*************************************************/
class Device_EntropySource : public EntropySource
   {
   public:
      Device_EntropySource(const std::vector<std::string>& fs) : fsnames(fs) {}
      u32bit slow_poll(byte[], u32bit);
   private:
      std::vector<std::string> fsnames;
   };

}

#endif