30 void GenerateBlock(
byte *output,
size_t size);
32 word32 GetSeed() {
return seed;}
74 const unsigned int m_size;
76 SecByteBlock m_randseed, m_lastBlock, m_deterministicTimeVector;
90 size_t Put2(
const byte *inString,
size_t length,
int messageEnd,
bool blocking);
96 unsigned int BytesNeeded()
const {
return n >= (Q+K) ? 0 : Q+K-n;}
100 double GetTestValue()
const;
103 enum {L=8, V=256, Q=2000, K=2000};
Base class for bufferless filters.
Linear Congruential Generator (LCG)
LC_RNG(word32 init_seed)
Construct a Linear Congruential Generator (LCG)
Maurer's Universal Statistical Test for Random Bit Generators.
MaurerRandomnessTest()
Construct a MaurerRandomnessTest.
unsigned int BytesNeeded() const
Provides the number of bytes of input is needed by the test.
size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking)
Input multiple bytes for processing.
Ensures an object is not copyable.
Interface for random number generators.
void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword size)
Generate random bytes into a BufferedTransformation.
X917RNG(BlockTransformation *cipher, const byte *seed, const byte *deterministicTimeVector=NULL)
Construct a X917RNG.
Pointer that overloads operator ->
unsigned int word32
32-bit unsigned datatype
unsigned short word16
16-bit unsigned datatype
word64 lword
Large word type.
Abstract base classes that provide a uniform interface to this library.
Implementation of BufferedTransformation's attachment interface.
Crypto++ library namespace.
Classes for automatic resource management.