~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to rng.h

  • Committer: weidai
  • Date: 2005-01-20 04:19:35 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:195
changes done for FIPS-140 lab code drop

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
{
36
36
public:
37
37
        // cipher will be deleted by destructor, deterministicTimeVector = 0 means obtain time vector from system
38
 
        X917RNG(BlockTransformation *cipher, const byte *seed, unsigned long deterministicTimeVector = 0);
 
38
        X917RNG(BlockTransformation *cipher, const byte *seed, const byte *deterministicTimeVector = 0);
39
39
 
40
40
        byte GenerateByte();
41
41
 
43
43
        member_ptr<BlockTransformation> cipher;
44
44
        const int S;                    // blocksize of cipher
45
45
        SecByteBlock dtbuf;     // buffer for enciphered timestamp
46
 
        SecByteBlock randseed, randbuf;
 
46
        SecByteBlock randseed, randbuf, m_deterministicTimeVector;
47
47
        int randbuf_counter;    // # of unused bytes left in randbuf
48
 
        unsigned long m_deterministicTimeVector;
49
48
};
50
49
 
51
50
/** This class implements Maurer's Universal Statistical Test for Random Bit Generators