diff options
Diffstat (limited to 'src/pbe/pbes2/pbes2.cpp')
-rw-r--r-- | src/pbe/pbes2/pbes2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pbe/pbes2/pbes2.cpp b/src/pbe/pbes2/pbes2.cpp index b7e2589d0..bd24c449b 100644 --- a/src/pbe/pbes2/pbes2.cpp +++ b/src/pbe/pbes2/pbes2.cpp @@ -100,10 +100,10 @@ void PBE_PKCS5v20::new_params(RandomNumberGenerator& rng) iterations = 2048; key_length = block_cipher->MAXIMUM_KEYLENGTH; - salt.create(8); + salt.resize(8); rng.randomize(salt, salt.size()); - iv.create(block_cipher->BLOCK_SIZE); + iv.resize(block_cipher->BLOCK_SIZE); rng.randomize(iv, iv.size()); } |