diff options
Diffstat (limited to 'src/pbe/pbes2')
-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 e74609467..85afe6ffe 100644 --- a/src/pbe/pbes2/pbes2.cpp +++ b/src/pbe/pbes2/pbes2.cpp @@ -98,7 +98,7 @@ void PBE_PKCS5v20::set_key(const std::string& passphrase) void PBE_PKCS5v20::new_params(RandomNumberGenerator& rng) { iterations = 10000; - key_length = block_cipher->MAXIMUM_KEYLENGTH; + key_length = block_cipher->maximum_keylength(); salt = rng.random_vec(12); iv = rng.random_vec(block_cipher->block_size()); @@ -178,7 +178,7 @@ void PBE_PKCS5v20::decode_params(DataSource& source) hash_function = af.make_hash_function("SHA-160"); if(key_length == 0) - key_length = block_cipher->MAXIMUM_KEYLENGTH; + key_length = block_cipher->maximum_keylength(); if(salt.size() < 8) throw Decoding_Error("PBE-PKCS5 v2.0: Encoded salt is too small"); |