From 242d67fb17619670d9b757c442dcf2e26d8478a1 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Jan 2005 04:19:35 +0000 Subject: changes done for FIPS-140 lab code drop git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@195 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rng.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rng.h') diff --git a/rng.h b/rng.h index 097cae7..6b9e55e 100644 --- a/rng.h +++ b/rng.h @@ -35,7 +35,7 @@ class CRYPTOPP_DLL X917RNG : public RandomNumberGenerator, public NotCopyable { public: // cipher will be deleted by destructor, deterministicTimeVector = 0 means obtain time vector from system - X917RNG(BlockTransformation *cipher, const byte *seed, unsigned long deterministicTimeVector = 0); + X917RNG(BlockTransformation *cipher, const byte *seed, const byte *deterministicTimeVector = 0); byte GenerateByte(); @@ -43,9 +43,8 @@ private: member_ptr cipher; const int S; // blocksize of cipher SecByteBlock dtbuf; // buffer for enciphered timestamp - SecByteBlock randseed, randbuf; + SecByteBlock randseed, randbuf, m_deterministicTimeVector; 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 -- cgit v1.2.1