9 #ifndef CRYPTOPP_IMPORTS 20 : m_pCipher(new
AES::Encryption), m_keySet(false)
22 memset(m_key, 0, m_key.SizeInBytes());
23 memset(m_seed, 0, m_seed.SizeInBytes());
30 hash.
Update(input, length);
49 time_t t = time(NULL);
59 *((
volatile word64*)&tt1) = 0;
60 *((
volatile word64*)&tt2) = 0;
void IncorporateEntropy(const byte *input, size_t length)
Update RNG state with additional unpredictable values.
Randomness Pool based on AES-256.
virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs)
Sets or reset the key of this object.
Class file for Randomness Pool.
#define NAMESPACE_BEGIN(x)
void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword size)
Generate random bytes into a BufferedTransformation.
void Update(const byte *input, size_t length)
Updates a hash with additional input.
FixedSizeAlignedSecBlock< byte, 32 > m_key
TimerWord GetCurrentTimerValue()
#define CRYPTOPP_COMPILE_ASSERT(assertion)
Class file for the AES cipher (Rijndael)
A::pointer data()
Provides a pointer to the first element in the memory block.
FixedSizeAlignedSecBlock< byte, 16, true > m_seed
const T1 UnsignedMin(const T1 &a, const T2 &b)
Safe comparison of values that could be neagtive and incorrectly promoted.
unsigned long long word64
AES block cipher (Rijndael)
Classes for SHA-1 and SHA-2 family of message digests.
uint8_t const size_t const size
void * memcpy(void *a, const void *b, size_t c)
member_ptr< BlockCipher > m_pCipher