The unified diff between revisions [853c4385..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'checks/dolook2.cpp'
#
#
# patch "checks/dolook2.cpp"
# from [5f2057722be6e53c804f60134931d7374add2a95]
# to [6e047326952c5f224d647e9e9407209728bc0627]
#
============================================================
--- checks/dolook2.cpp 5f2057722be6e53c804f60134931d7374add2a95
+++ checks/dolook2.cpp 6e047326952c5f224d647e9e9407209728bc0627
@@ -8,7 +8,7 @@
#include <botan/filters.h>
#include <botan/randpool.h>
#include <botan/x931_rng.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
using namespace Botan;
/* A weird little hack to fit S2K algorithms into the validation suite
@@ -49,7 +49,7 @@ class RNG_Filter : public Filter
void write(const byte[], u32bit);
RNG_Filter(RandomNumberGenerator* r) : rng(r), buffer(1024)
{
- Global_RNG::randomize(buffer, buffer.size());
+ global_state().randomize(buffer, buffer.size());
rng->add_entropy(buffer, buffer.size());
}
~RNG_Filter() { delete rng; }
@@ -62,7 +62,7 @@ class KDF_Filter : public Filter
{
public:
void write(const byte in[], u32bit len)
- { secret.push_back(in, len); }
+ { secret.append(in, len); }
void end_msg()
{
SymmetricKey x = kdf->derive_key(outlen,