Inheritance diagram for KDF2_RNG:

Definition at line 3225 of file integer.cpp.
Public Member Functions | |
| KDF2_RNG (const byte *seed, size_t seedSize) | |
| byte | GenerateByte () |
| generate new random byte and return it | |
| void | GenerateBlock (byte *output, size_t size) |
| generate random array of bytes | |
| 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 | DiscardBytes (size_t 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 std::string | AlgorithmName () const |
| returns name of this algorithm, not universally implemented yet | |
| virtual Clonable * | Clone () const |
| this is not implemented by most classes yet | |
| void KDF2_RNG::GenerateBlock | ( | byte * | output, | |
| size_t | size | |||
| ) | [inline, virtual] |
generate random array of bytes
Default implementation is to call GenerateByte() size times.
Reimplemented from RandomNumberGenerator.
Definition at line 3241 of file integer.cpp.
References P1363_KDF2< H >::DeriveKey(), and SecBlock< T, A >::size().
Referenced by GenerateByte().
| unsigned int RandomNumberGenerator::GenerateBit | ( | ) | [virtual, inherited] |
generate new random bit and return it
Default implementation is to call GenerateByte() and return its parity.
Reimplemented in PublicBlumBlumShub.
Definition at line 117 of file cryptlib.cpp.
References RandomNumberGenerator::GenerateByte().
Referenced by XTR_FindPrimesAndGenerator().
| void RandomNumberGenerator::DiscardBytes | ( | size_t | n | ) | [virtual, inherited] |
generate and discard n bytes
Default implementation is to call GenerateByte() n times.
Reimplemented in ARC4_Base.
Definition at line 148 of file cryptlib.cpp.
References RandomNumberGenerator::GenerateByte().
1.5.1-p1