Botan
1.10.9
|
#include <es_unix.h>
Public Member Functions | |
void | add_sources (const Unix_Program[], size_t) |
std::string | name () const |
void | poll (Entropy_Accumulator &accum) |
Unix_EntropySource (const std::vector< std::string > &path) | |
Botan::Unix_EntropySource::Unix_EntropySource | ( | const std::vector< std::string > & | path | ) |
Unix_EntropySource Constructor
Definition at line 38 of file es_unix.cpp.
References add_sources().
void Botan::Unix_EntropySource::add_sources | ( | const Unix_Program | srcs[], |
size_t | count | ||
) |
Add sources to the list
Definition at line 48 of file es_unix.cpp.
Referenced by Unix_EntropySource().
|
inlinevirtual |
Implements Botan::EntropySource.
|
virtual |
Poll for entropy on a generic Unix system, first by grabbing various statistics (stat on common files, getrusage, etc), and then, if more is required, by exec'ing various programs like uname and rpcinfo and reading the output.
Implements Botan::EntropySource.
Definition at line 60 of file es_unix.cpp.
References Botan::Entropy_Accumulator::add(), Botan::clear_mem(), Botan::DataSource_Command::end_of_data(), Botan::Entropy_Accumulator::get_io_buffer(), Botan::Entropy_Accumulator::polling_goal_achieved(), Botan::DataSource_Command::read(), and Botan::MemoryRegion< T >::size().