Botan
2.1.0
Crypto and TLS for C++11
|
#include <entropy_src.h>
Public Member Functions | |
virtual std::string | name () const =0 |
virtual size_t | poll (RandomNumberGenerator &rng)=0 |
virtual | ~Entropy_Source () |
Static Public Member Functions | |
static std::unique_ptr< Entropy_Source > | create (const std::string &type) |
Abstract interface to a source of entropy
Definition at line 25 of file entropy_src.h.
|
inlinevirtual |
Definition at line 48 of file entropy_src.h.
|
static |
Return a new entropy source of a particular type, or null Each entropy source may require substantial resources (eg, a file handle or socket instance), so try to share them among multiple RNGs, or just use the preconfigured global list accessed by Entropy_Sources::global_sources()
Definition at line 45 of file entropy_srcs.cpp.
Referenced by Botan::Entropy_Sources::Entropy_Sources().
|
pure virtual |
Implemented in Botan::ProcWalking_EntropySource, Botan::Device_EntropySource, Botan::Win32_CAPI_EntropySource, Botan::Getentropy, Botan::Intel_Rdrand, Botan::Intel_Rdseed, Botan::Darwin_SecRandom, and Botan::Win32_EntropySource.
|
pure virtual |
Perform an entropy gathering poll
rng | will be provided with entropy via calls to add_entropy |
Implemented in Botan::ProcWalking_EntropySource, Botan::Device_EntropySource, Botan::Win32_CAPI_EntropySource, Botan::Darwin_SecRandom, Botan::Getentropy, Botan::Intel_Rdrand, Botan::Intel_Rdseed, and Botan::Win32_EntropySource.