| Botan
    1.10.16
    | 
#include <x931_rng.h>
 
  
 | Public Member Functions | |
| void | add_entropy (const byte[], size_t) | 
| void | add_entropy_source (EntropySource *) | 
| ANSI_X931_RNG (BlockCipher *cipher, RandomNumberGenerator *rng) | |
| void | clear () | 
| bool | is_seeded () const | 
| std::string | name () const | 
| byte | next_byte () | 
| SecureVector< byte > | random_vec (size_t bytes) | 
| void | randomize (byte[], size_t) | 
| void | reseed (size_t poll_bits) | 
| ~ANSI_X931_RNG () | |
| Static Public Member Functions | |
| static RandomNumberGenerator * | make_rng () | 
ANSI X9.31 RNG
Definition at line 19 of file x931_rng.h.
| Botan::ANSI_X931_RNG::ANSI_X931_RNG | ( | BlockCipher * | cipher, | 
| RandomNumberGenerator * | rng | ||
| ) | 
| cipher | the block cipher to use in this PRNG | 
| rng | the underlying PRNG for generating inputs (eg, an HMAC_RNG) | 
Definition at line 132 of file x931_rng.cpp.
References Botan::BlockCipher::block_size(), and Botan::MemoryRegion< T >::resize().
| Botan::ANSI_X931_RNG::~ANSI_X931_RNG | ( | ) | 
Definition at line 148 of file x931_rng.cpp.
| 
 | virtual | 
Add entropy to this RNG.
| in | a byte array containg the entropy to be added | 
| length | the length of the byte array in | 
Implements Botan::RandomNumberGenerator.
Definition at line 94 of file x931_rng.cpp.
References Botan::RandomNumberGenerator::add_entropy().
| 
 | virtual | 
Add this entropy source to the RNG object
| source | the entropy source which will be retained and used by RNG | 
Implements Botan::RandomNumberGenerator.
Definition at line 86 of file x931_rng.cpp.
References Botan::RandomNumberGenerator::add_entropy_source().
| 
 | virtual | 
Clear all internally held values of this RNG.
Implements Botan::RandomNumberGenerator.
Definition at line 111 of file x931_rng.cpp.
References Botan::Algorithm::clear(), Botan::RandomNumberGenerator::clear(), Botan::MemoryRegion< T >::clear(), and Botan::zeroise().
| 
 | virtual | 
Check whether this RNG is seeded.
Reimplemented from Botan::RandomNumberGenerator.
Definition at line 103 of file x931_rng.cpp.
References Botan::MemoryRegion< T >::size().
Referenced by randomize().
| 
 | staticinherited | 
| 
 | virtual | 
Return the name of this object
Implements Botan::RandomNumberGenerator.
Definition at line 124 of file x931_rng.cpp.
References Botan::Algorithm::name().
Referenced by randomize().
| 
 | inherited | 
Return a random byte
Definition at line 19 of file rng.cpp.
References Botan::RandomNumberGenerator::randomize().
| 
 | inlineinherited | 
Return a random vector
| bytes | number of bytes in the result | 
Definition at line 40 of file rng.h.
References Botan::MemoryRegion< T >::size().
Referenced by randomize().
| 
 | virtual | 
Randomize a byte array.
| output | the byte array to hold the random output. | 
| length | the length of the byte array output. | 
Implements Botan::RandomNumberGenerator.
Definition at line 17 of file x931_rng.cpp.
References Botan::BlockCipher::block_size(), Botan::copy_mem(), Botan::BlockCipher::encrypt(), is_seeded(), Botan::RandomNumberGenerator::is_seeded(), Botan::SymmetricAlgorithm::maximum_keylength(), name(), Botan::RandomNumberGenerator::random_vec(), Botan::RandomNumberGenerator::randomize(), Botan::MemoryRegion< T >::resize(), Botan::SymmetricAlgorithm::set_key(), Botan::MemoryRegion< T >::size(), and Botan::xor_buf().
| 
 | virtual | 
Seed this RNG using the entropy sources it contains.
| bits_to_collect | is the number of bits of entropy to attempt to gather from the entropy sources | 
Implements Botan::RandomNumberGenerator.
Definition at line 77 of file x931_rng.cpp.
References Botan::RandomNumberGenerator::reseed().
 1.8.13
 1.8.13