10 #define CRYPTOPP_RNG_H 26 void GenerateBlock(byte *output,
size_t size);
28 word32 GetSeed() {
return seed;}
33 static const word32 m;
34 static const word32 q;
35 static const word16 a;
36 static const word16 r;
71 SecByteBlock randseed, m_lastBlock, m_deterministicTimeVector;
85 size_t Put2(
const byte *inString,
size_t length,
int messageEnd,
bool blocking);
91 unsigned int BytesNeeded()
const {
return n >= (Q+K) ? 0 : Q+K-n;}
95 double GetTestValue()
const;
98 enum {L=8, V=256, Q=2000, K=2000};
unsigned int BytesNeeded() const
Provides the number of bytes of input is needed by the test.
Linear Congruential Generator (LCG)
Abstract base classes that provide a uniform interface to this library.
Classes for automatic resource management.
Interface for random number generators.
SecByteBlock is a SecBlock<byte> typedef.
Maurer's Universal Statistical Test for Random Bit Generators.
Implementation of BufferedTransformation's attachment interface in cryptlib.h.
Crypto++ library namespace.
Ensures an object is not copyable.
virtual void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword length)
Generate random bytes into a BufferedTransformation.
Base class for bufferless filters.