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/s2k | |
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/s2k')
-rw-r--r-- | src/s2k/s2k.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2k/s2k.cpp b/src/s2k/s2k.cpp index b8a8ef719..42064529d 100644 --- a/src/s2k/s2k.cpp +++ b/src/s2k/s2k.cpp @@ -48,7 +48,7 @@ void S2K::change_salt(const MemoryRegion<byte>& new_salt) void S2K::new_random_salt(RandomNumberGenerator& rng, u32bit length) { - salt.create(length); + salt.resize(length); rng.randomize(salt, length); } |