The unified diff between revisions [6afe2db1..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/pbes2.cpp'
#
#
# patch "src/pbes2.cpp"
# from [d25db9a10db0db03145b7c4b681ef39e6ac3ee9f]
# to [3f302e265f72dbf7081b62e777febdf4d5b468aa]
#
============================================================
--- src/pbes2.cpp d25db9a10db0db03145b7c4b681ef39e6ac3ee9f
+++ src/pbes2.cpp 3f302e265f72dbf7081b62e777febdf4d5b468aa
@@ -8,7 +8,7 @@
#include <botan/ber_dec.h>
#include <botan/parsing.h>
#include <botan/lookup.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
#include <botan/asn1_obj.h>
#include <botan/oids.h>
#include <algorithm>
@@ -87,8 +87,8 @@ void PBE_PKCS5v20::new_params()
key_length = max_keylength_of(cipher_algo);
salt.create(8);
iv.create(block_size_of(cipher_algo));
- Global_RNG::randomize(salt, salt.size());
- Global_RNG::randomize(iv, iv.size());
+ global_state().randomize(salt, salt.size());
+ global_state().randomize(iv, iv.size());
}
/*************************************************