Botan
1.10.9
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
entropy
egd
es_egd.h
Go to the documentation of this file.
1
/*
2
* EGD EntropySource
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Distributed under the terms of the Botan license
6
*/
7
8
#ifndef BOTAN_ENTROPY_SRC_EGD_H__
9
#define BOTAN_ENTROPY_SRC_EGD_H__
10
11
#include <botan/entropy_src.h>
12
#include <string>
13
#include <vector>
14
15
namespace
Botan
{
16
17
/**
18
* EGD Entropy Source
19
*/
20
class
EGD_EntropySource
:
public
EntropySource
21
{
22
public
:
23
std::string
name
()
const
{
return
"EGD/PRNGD"
; }
24
25
void
poll
(
Entropy_Accumulator
& accum);
26
27
EGD_EntropySource
(
const
std::vector<std::string>&);
28
~EGD_EntropySource
();
29
private
:
30
class
EGD_Socket
31
{
32
public
:
33
EGD_Socket(
const
std::string& path);
34
35
void
close();
36
size_t
read(
byte
outbuf[],
size_t
length);
37
private
:
38
static
int
open_socket(
const
std::string& path);
39
40
std::string socket_path;
41
int
m_fd;
// cached fd
42
};
43
44
std::vector<EGD_Socket> sockets;
45
};
46
47
}
48
49
#endif
Botan::EGD_EntropySource::EGD_EntropySource
EGD_EntropySource(const std::vector< std::string > &)
Definition:
es_egd.cpp:122
Botan::EGD_EntropySource::poll
void poll(Entropy_Accumulator &accum)
Definition:
es_egd.cpp:138
Botan::EntropySource
Definition:
entropy_src.h:122
Botan::byte
unsigned char byte
Definition:
types.h:22
Botan::EGD_EntropySource::~EGD_EntropySource
~EGD_EntropySource()
Definition:
es_egd.cpp:128
Botan
Definition:
algo_base.h:14
Botan::EGD_EntropySource::name
std::string name() const
Definition:
es_egd.h:23
Botan::EGD_EntropySource
Definition:
es_egd.h:20
Botan::Entropy_Accumulator
Definition:
entropy_src.h:19
Generated on Sat Aug 20 2016 08:18:47 for Botan by
1.8.9.1