Crypto++
8.3
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
10 #define CRYPTOPP_RNG_H
30 void GenerateBlock(
byte *output,
size_t size);
32 word32 GetSeed() {
return seed;}
37 static const word32 m;
38 static const word32 q;
39 static const word16 a;
40 static const word16 r;
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};
virtual void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword length)
Generate random bytes into a BufferedTransformation.
Classes for automatic resource management.
unsigned int BytesNeeded() const
Provides the number of bytes of input is needed by the test.
Implementation of BufferedTransformation's attachment interface.
Interface for random number generators.
MaurerRandomnessTest()
Construct a MaurerRandomnessTest.
Ensures an object is not copyable.
LC_RNG(word32 init_seed)
Construct a Linear Congruential Generator (LCG)
Base class for bufferless filters.
Maurer's Universal Statistical Test for Random Bit Generators.
Linear Congruential Generator (LCG)
size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking)
Input multiple bytes for processing.
Crypto++ library namespace.
Abstract base classes that provide a uniform interface to this library.