#ifndef BOTAN_EXT_ENTROPY_SRC_UNIX_H__
#define BOTAN_EXT_ENTROPY_SRC_UNIX_H__
#include "botan-1.6/include/buf_es.h"
#include "botan-1.6/include/unix_cmd.h"
#include <vector>
namespace Enctain {
namespace Botan {
class Unix_EntropySource : public Buffered_EntropySource
{
public:
void add_sources(const Unix_Program[], u32bit);
Unix_EntropySource();
private:
void do_fast_poll();
void do_slow_poll();
void gather(u32bit);
u32bit gather_from(const Unix_Program&);
static void add_default_sources(std::vector<Unix_Program>&);
std::vector<Unix_Program> sources;
};
}
}
#endif