You can obtain version 1.9 from here, but I am afraid you have two issues with the usage of the new version:
get_s2k()
is getting obsolete, and you should useget_pbkdf()
instead.Instead of setting the iteration with the mutator method, you could pass the number of iterations to the derive_key in the version when using PBKDF instead of the deprecated S2k.
See the encrypt2 example of theirs for instance:
...
PKCS5_PBKDF2 pbkdf2(new HMAC(new SHA_160));
const u32bit PBKDF2_ITERATIONS = 8192;
SecureVector<byte> salt(8);
rng.randomize(&salt[0], salt.size());
SecureVector<byte> master_key = pbkdf2.derive_key(48, passphrase,
&salt[0], salt.size(),
PBKDF2_ITERATIONS).bits_of()
...
You could check out further examples for details in the doc/examples
folder once you fetch their release and unpack it.