Botan
2.1.0
Crypto and TLS for C++11
|
#include <entropy_src.h>
Public Member Functions | |
void | add_source (std::unique_ptr< Entropy_Source > src) |
std::vector< std::string > | enabled_sources () const |
Entropy_Sources () | |
Entropy_Sources (const std::vector< std::string > &sources) | |
size_t | poll (RandomNumberGenerator &rng, size_t bits, std::chrono::milliseconds timeout) |
size_t | poll_just (RandomNumberGenerator &rng, const std::string &src) |
~Entropy_Sources () | |
Static Public Member Functions | |
static Entropy_Sources & | global_sources () |
Definition at line 51 of file entropy_src.h.
|
inline |
Definition at line 69 of file entropy_src.h.
|
explicit |
Definition at line 160 of file entropy_srcs.cpp.
References add_source(), and Botan::Entropy_Source::create().
Botan::Entropy_Sources::~Entropy_Sources | ( | ) |
Definition at line 168 of file entropy_srcs.cpp.
void Botan::Entropy_Sources::add_source | ( | std::unique_ptr< Entropy_Source > | src | ) |
Definition at line 108 of file entropy_srcs.cpp.
Referenced by Entropy_Sources().
std::vector< std::string > Botan::Entropy_Sources::enabled_sources | ( | ) | const |
Definition at line 116 of file entropy_srcs.cpp.
|
static |
Definition at line 178 of file entropy_srcs.cpp.
size_t Botan::Entropy_Sources::poll | ( | RandomNumberGenerator & | rng, |
size_t | bits, | ||
std::chrono::milliseconds | timeout | ||
) |
Definition at line 126 of file entropy_srcs.cpp.
Referenced by Botan::RandomNumberGenerator::reseed().
size_t Botan::Entropy_Sources::poll_just | ( | RandomNumberGenerator & | rng, |
const std::string & | src | ||
) |
Poll just a single named source. Ordinally only used for testing
Definition at line 147 of file entropy_srcs.cpp.