diff options
author | lloyd <[email protected]> | 2009-11-17 05:03:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-17 05:03:06 +0000 |
commit | 0d27bc0f8763cb6dd6307dbab7713058dee18b2c (patch) | |
tree | 5cb428e1c4475ca24f1e4a84dfdc07c7a9e91393 /src/rng/x931_rng | |
parent | 0753d6e2c478430d8cd1a0df8d21f68a05260300 (diff) |
Rename/remove some secmem member variables for better matching with STL
containers (specifically vector).
Rename is_empty to empty
Remove has_items
Rename create to resize
Diffstat (limited to 'src/rng/x931_rng')
-rw-r--r-- | src/rng/x931_rng/x931_rng.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rng/x931_rng/x931_rng.cpp b/src/rng/x931_rng/x931_rng.cpp index 64d57ac1c..bd66d22bf 100644 --- a/src/rng/x931_rng/x931_rng.cpp +++ b/src/rng/x931_rng/x931_rng.cpp @@ -64,7 +64,7 @@ void ANSI_X931_RNG::rekey() cipher->set_key(key, key.size()); if(V.size() != cipher->BLOCK_SIZE) - V.create(cipher->BLOCK_SIZE); + V.resize(cipher->BLOCK_SIZE); prng->randomize(V, V.size()); update_buffer(); @@ -102,7 +102,7 @@ void ANSI_X931_RNG::add_entropy(const byte input[], u32bit length) */ bool ANSI_X931_RNG::is_seeded() const { - return V.has_items(); + return (V.size() > 0); } /** @@ -138,7 +138,7 @@ ANSI_X931_RNG::ANSI_X931_RNG(BlockCipher* cipher_in, cipher = cipher_in; prng = prng_in; - R.create(cipher->BLOCK_SIZE); + R.resize(cipher->BLOCK_SIZE); position = 0; } |