Botan
1.10.9
|
#include <dev_random.h>
Public Member Functions | |
Device_EntropySource (const std::vector< std::string > &fsnames) | |
std::string | name () const |
void | poll (Entropy_Accumulator &accum) |
~Device_EntropySource () | |
Entropy source reading from kernel devices like /dev/random
Definition at line 20 of file dev_random.h.
Botan::Device_EntropySource::Device_EntropySource | ( | const std::vector< std::string > & | fsnames | ) |
Device_EntropySource constructor Open a file descriptor to each (available) device in fsnames
Definition at line 41 of file dev_random.cpp.
Botan::Device_EntropySource::~Device_EntropySource | ( | ) |
Device_EntropySource destructor: close all open devices
Definition at line 54 of file dev_random.cpp.
|
inlinevirtual |
Implements Botan::EntropySource.
Definition at line 23 of file dev_random.h.
|
virtual |
Gather entropy from a RNG device
Implements Botan::EntropySource.
Definition at line 63 of file dev_random.cpp.
References Botan::Entropy_Accumulator::add(), Botan::Entropy_Accumulator::desired_remaining_bits(), Botan::Entropy_Accumulator::get_io_buffer(), and Botan::MemoryRegion< T >::size().