Inheritance diagram for ClassNullRNG:
Definition at line 149 of file cryptlib.cpp.
Public Member Functions | |
std::string | AlgorithmName () const |
returns name of this algorithm, not universally implemented yet | |
byte | GenerateByte () |
generate new random byte and return it | |
virtual unsigned int | GenerateBit () |
generate new random bit and return it | |
virtual word32 | GenerateWord32 (word32 a=0, word32 b=0xffffffffL) |
generate a random 32 bit word in the range min to max, inclusive | |
virtual void | GenerateBlock (byte *output, unsigned int size) |
generate random array of bytes | |
virtual void | DiscardBytes (unsigned int n) |
generate and discard n bytes | |
template<class IT> | |
void | Shuffle (IT begin, IT end) |
randomly shuffle the specified array, resulting permutation is uniformly distributed | |
virtual Clonable * | Clone () const |
this is not implemented by most classes yet |
|
generate new random bit and return it Default implementation is to call GenerateByte() and return its parity. Reimplemented in PublicBlumBlumShub. Definition at line 111 of file cryptlib.cpp. References RandomNumberGenerator::GenerateByte(). |
|
generate random array of bytes Default implementation is to call GenerateByte() size times. Reimplemented in KDF2_RNG, NonblockingRng, BlockingRng, and RandomPool. Definition at line 116 of file cryptlib.cpp. References RandomNumberGenerator::GenerateByte(). Referenced by PSSR_MEM_Base::ComputeMessageRepresentative(), DL_GroupParameters_DSA::GenerateRandom(), OAEP_Base::Pad(), Integer::Randomize(), PolynomialMod2::Randomize(), and ElGamalBase::SymmetricEncrypt(). |
|
generate and discard n bytes Default implementation is to call GenerateByte() n times. Reimplemented in ARC4_Base. Definition at line 142 of file cryptlib.cpp. References RandomNumberGenerator::GenerateByte(). |