diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-10-17 16:32:28 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-10-17 16:32:28 +0000 |
commit | 68bd19cb320b2023aa892c2de15b419edf3f3086 (patch) | |
tree | e508ea100a61e22b1f3d56c3aa2b4479e93da51e /rng.h | |
parent | 9242d66857d0199765f58148ea33821438f864e2 (diff) | |
download | cryptopp-68bd19cb320b2023aa892c2de15b419edf3f3086.tar.gz |
bug fixes and KAT for X9.17 RNG
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@11 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'rng.h')
-rw-r--r-- | rng.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -32,8 +32,8 @@ private: class X917RNG : public RandomNumberGenerator { public: - // cipher will be deleted by destructor - X917RNG(BlockTransformation *cipher, const byte *seed); + // cipher will be deleted by destructor, deterministicTimeVector = 0 means obtain time vector from system + X917RNG(BlockTransformation *cipher, const byte *seed, unsigned long deterministicTimeVector = 0); byte GenerateByte(); @@ -43,6 +43,7 @@ private: SecByteBlock dtbuf; // buffer for enciphered timestamp SecByteBlock randseed, randbuf; int randbuf_counter; // # of unused bytes left in randbuf + unsigned long m_deterministicTimeVector; }; /** This class implements Maurer's Universal Statistical Test for Random Bit Generators |