Botan
1.10.9
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
entropy
dev_random
dev_random.h
Go to the documentation of this file.
1
/*
2
* /dev/random EntropySource
3
* (C) 1999-2009 Jack Lloyd
4
*
5
* Distributed under the terms of the Botan license
6
*/
7
8
#ifndef BOTAN_ENTROPY_SRC_DEVICE_H__
9
#define BOTAN_ENTROPY_SRC_DEVICE_H__
10
11
#include <botan/entropy_src.h>
12
#include <vector>
13
#include <string>
14
15
namespace
Botan
{
16
17
/**
18
* Entropy source reading from kernel devices like /dev/random
19
*/
20
class
Device_EntropySource
:
public
EntropySource
21
{
22
public
:
23
std::string
name
()
const
{
return
"RNG Device Reader"
; }
24
25
void
poll
(
Entropy_Accumulator
& accum);
26
27
Device_EntropySource
(
const
std::vector<std::string>& fsnames);
28
~Device_EntropySource
();
29
private
:
30
typedef
int
fd_type;
31
32
std::vector<fd_type> devices;
33
};
34
35
}
36
37
#endif
Botan::Device_EntropySource::Device_EntropySource
Device_EntropySource(const std::vector< std::string > &fsnames)
Definition:
dev_random.cpp:41
Botan::Device_EntropySource::~Device_EntropySource
~Device_EntropySource()
Definition:
dev_random.cpp:54
Botan::EntropySource
Definition:
entropy_src.h:122
Botan::Device_EntropySource
Definition:
dev_random.h:20
Botan::Device_EntropySource::poll
void poll(Entropy_Accumulator &accum)
Definition:
dev_random.cpp:63
Botan::Device_EntropySource::name
std::string name() const
Definition:
dev_random.h:23
Botan
Definition:
algo_base.h:14
Botan::Entropy_Accumulator
Definition:
entropy_src.h:19
Generated on Sat Aug 20 2016 08:18:47 for Botan by
1.8.9.1