The unified diff between revisions [92f17752..] and [4e40e885..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/emsa4.cpp'

#
#
# patch "src/emsa4.cpp"
#  from [37c2f6432f8c13d345aedd7e5155aa3f4fb75e39]
#    to [dc0f0dbfdaed2ec2ae85bbeed3ff0303013c58fc]
#
============================================================
--- src/emsa4.cpp	37c2f6432f8c13d345aedd7e5155aa3f4fb75e39
+++ src/emsa4.cpp	dc0f0dbfdaed2ec2ae85bbeed3ff0303013c58fc
@@ -1,13 +1,13 @@
 /*************************************************
 * EMSA4 Source File                              *
-* (C) 1999-2006 The Botan Project                *
+* (C) 1999-2007 Jack Lloyd                       *
 *************************************************/

 #include <botan/emsa.h>
 #include <botan/lookup.h>
 #include <botan/look_pk.h>
 #include <botan/bit_ops.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>

 namespace Botan {

@@ -43,7 +43,7 @@ SecureVector<byte> EMSA4::encoding_of(co
    const u32bit output_length = (output_bits + 7) / 8;

    SecureVector<byte> salt(SALT_SIZE);
-   Global_RNG::randomize(salt, SALT_SIZE);
+   global_state().randomize(salt, SALT_SIZE);

    for(u32bit j = 0; j != 8; ++j)
       hash->update(0);