diff options
Diffstat (limited to 'src/lib/misc/pbes2/pbes2.cpp')
-rw-r--r-- | src/lib/misc/pbes2/pbes2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/misc/pbes2/pbes2.cpp b/src/lib/misc/pbes2/pbes2.cpp index 435caaab1..89af01e9d 100644 --- a/src/lib/misc/pbes2/pbes2.cpp +++ b/src/lib/misc/pbes2/pbes2.cpp @@ -89,7 +89,7 @@ pbes2_encrypt(const secure_vector<byte>& key_bits, secure_vector<byte> iv = rng.random_vec(enc->default_nonce_length()); - enc->set_key(pbkdf->derive_key(key_length, passphrase, &salt[0], salt.size(), + enc->set_key(pbkdf->derive_key(key_length, passphrase, salt.data(), salt.size(), msec, iterations).bits_of()); enc->start(iv); @@ -159,7 +159,7 @@ pbes2_decrypt(const secure_vector<byte>& key_bits, if(key_length == 0) key_length = dec->key_spec().maximum_keylength(); - dec->set_key(pbkdf->pbkdf_iterations(key_length, passphrase, &salt[0], salt.size(), iterations)); + dec->set_key(pbkdf->pbkdf_iterations(key_length, passphrase, salt.data(), salt.size(), iterations)); dec->start(iv); |