|
Botan
1.11.4
|
#include <rng.h>
Public Member Functions | |
| void | add_entropy (const byte[], size_t) |
| void | add_entropy_source (EntropySource *es) |
| void | clear () |
| bool | is_seeded () const |
| std::string | name () const |
| byte | next_byte () |
| secure_vector< byte > | random_vec (size_t bytes) |
| void | randomize (byte[], size_t) |
| void | reseed (size_t) |
Static Public Member Functions | |
| static RandomNumberGenerator * | make_rng () |
|
inlinevirtual |
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.
|
inlinevirtual |
Add this entropy source to the RNG object
| source | the entropy source which will be retained and used by RNG |
Implements Botan::RandomNumberGenerator.
|
inlinevirtual |
Clear all internally held values of this RNG.
Implements Botan::RandomNumberGenerator.
|
inlinevirtual |
Check whether this RNG is seeded.
Reimplemented from Botan::RandomNumberGenerator.
|
staticinherited |
|
inlinevirtual |
Return the name of this object
Implements Botan::RandomNumberGenerator.
|
inherited |
Return a random byte
Definition at line 19 of file rng.cpp.
References Botan::RandomNumberGenerator::randomize().
Referenced by Botan::random_prime().
|
inlineinherited |
Return a random vector
| bytes | number of bytes in the result |
Definition at line 40 of file rng.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::CryptoBox::encrypt(), Botan::KeyPair::encryption_consistency_check(), Botan::generate_bcrypt(), Botan::OctetString::OctetString(), Botan::BigInt::randomize(), Botan::TLS::Session_Manager_SQLite::Session_Manager_SQLite(), and Botan::KeyPair::signature_consistency_check().
|
inlinevirtual |
Randomize a byte array.
| output | the byte array to hold the random output. |
| length | the length of the byte array output. |
Implements Botan::RandomNumberGenerator.
|
inlinevirtual |
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.
1.8.3.1