Botan
1.10.16
|
#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().
Referenced by name().
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 name(), and Unix_EntropySource().
|
inlinevirtual |
Implements Botan::EntropySource.
Definition at line 23 of file es_unix.h.
References add_sources(), poll(), and Unix_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(), and Botan::Entropy_Accumulator::get_io_buffer().
Referenced by name().