diff options
author | lloyd <[email protected]> | 2010-10-12 20:23:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 20:23:47 +0000 |
commit | 6385602fcccfd9c561b1c097095ddd2edf1a2357 (patch) | |
tree | 63374ebafd20b09ff4ad77d624a4b27c87b1062c /src/rng/randpool/randpool.h | |
parent | ab1f661083053df745daf1e1b8f4859f5a92065d (diff) |
Use size_t instead of u32bit in entropy and rng
Diffstat (limited to 'src/rng/randpool/randpool.h')
-rw-r--r-- | src/rng/randpool/randpool.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rng/randpool/randpool.h b/src/rng/randpool/randpool.h index 471bb791a..ed224221c 100644 --- a/src/rng/randpool/randpool.h +++ b/src/rng/randpool/randpool.h @@ -21,14 +21,14 @@ namespace Botan { class BOTAN_DLL Randpool : public RandomNumberGenerator { public: - void randomize(byte[], u32bit); + void randomize(byte[], size_t); bool is_seeded() const { return seeded; } void clear(); std::string name() const; - void reseed(u32bit bits_to_collect); + void reseed(size_t bits_to_collect); void add_entropy_source(EntropySource* es); - void add_entropy(const byte input[], u32bit length); + void add_entropy(const byte input[], size_t length); /** * @param cipher a block cipher to use @@ -39,15 +39,15 @@ class BOTAN_DLL Randpool : public RandomNumberGenerator */ Randpool(BlockCipher* cipher, MessageAuthenticationCode* mac, - u32bit pool_blocks = 32, - u32bit iterations_before_reseed = 128); + size_t pool_blocks = 32, + size_t iterations_before_reseed = 128); ~Randpool(); private: void update_buffer(); void mix_pool(); - u32bit ITERATIONS_BEFORE_RESEED, POOL_BLOCKS; + size_t ITERATIONS_BEFORE_RESEED, POOL_BLOCKS; BlockCipher* cipher; MessageAuthenticationCode* mac; |