Botan
1.10.9
|
#include <entropy_src.h>
Public Member Functions | |
void | add (const void *bytes, size_t length, double entropy_bits_per_byte) |
template<typename T > | |
void | add (const T &v, double entropy_bits_per_byte) |
size_t | bits_collected () const |
size_t | desired_remaining_bits () const |
Entropy_Accumulator (size_t goal) | |
MemoryRegion< byte > & | get_io_buffer (size_t size) |
bool | polling_goal_achieved () const |
virtual | ~Entropy_Accumulator () |
Class used to accumulate the poll results of EntropySources
Definition at line 19 of file entropy_src.h.
|
inline |
Initialize an Entropy_Accumulator
goal | is how many bits we would like to collect |
Definition at line 26 of file entropy_src.h.
|
inlinevirtual |
Definition at line 29 of file entropy_src.h.
|
inline |
Add entropy to the accumulator
bytes | the input bytes |
length | specifies how many bytes the input is |
entropy_bits_per_byte | is a best guess at how much entropy per byte is in this input |
Definition at line 70 of file entropy_src.h.
Referenced by Botan::Win32_EntropySource::poll(), Botan::FTW_EntropySource::poll(), Botan::Intel_Rdrand::poll(), Botan::Win32_CAPI_EntropySource::poll(), Botan::Device_EntropySource::poll(), Botan::High_Resolution_Timestamp::poll(), Botan::Unix_EntropySource::poll(), and Botan::EGD_EntropySource::poll().
|
inline |
Add entropy to the accumulator
v | is some value |
entropy_bits_per_byte | is a best guess at how much entropy per byte is in this input |
Definition at line 83 of file entropy_src.h.
|
inline |
Definition at line 44 of file entropy_src.h.
Referenced by Botan::Randpool::reseed(), and Botan::HMAC_RNG::reseed().
|
inline |
Definition at line 56 of file entropy_src.h.
Referenced by Botan::Device_EntropySource::poll(), and Botan::EGD_EntropySource::poll().
|
inline |
Get a cached I/O buffer (purely for minimizing allocation overhead to polls)
size | requested size for the I/O buffer |
Definition at line 38 of file entropy_src.h.
References Botan::MemoryRegion< T >::resize().
Referenced by Botan::FTW_EntropySource::poll(), Botan::Win32_CAPI_EntropySource::poll(), Botan::Device_EntropySource::poll(), Botan::EGD_EntropySource::poll(), and Botan::Unix_EntropySource::poll().
|
inline |
Definition at line 50 of file entropy_src.h.
Referenced by Botan::Win32_EntropySource::poll(), Botan::FTW_EntropySource::poll(), Botan::Unix_EntropySource::poll(), Botan::Randpool::reseed(), and Botan::HMAC_RNG::reseed().