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/eme_pkcs.cpp'

#
#
# patch "src/eme_pkcs.cpp"
#  from [b6d2dcbe4674c075e759ada4d4f8a3ff8759977e]
#    to [957e51a698ddf990fec5d003064ff4eb4a28607a]
#
============================================================
--- src/eme_pkcs.cpp	b6d2dcbe4674c075e759ada4d4f8a3ff8759977e
+++ src/eme_pkcs.cpp	957e51a698ddf990fec5d003064ff4eb4a28607a
@@ -1,10 +1,10 @@
 /*************************************************
 * PKCS1 EME Source File                          *
-* (C) 1999-2006 The Botan Project                *
+* (C) 1999-2007 Jack Lloyd                       *
 *************************************************/

 #include <botan/eme.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>

 namespace Botan {

@@ -26,7 +26,7 @@ SecureVector<byte> EME_PKCS1v15::pad(con
    out[0] = 0x02;
    for(u32bit j = 1; j != olen - inlen - 1; ++j)
       while(out[j] == 0)
-         out[j] = Global_RNG::random();
+         out[j] = global_state().random();
    out.copy(olen - inlen, in, inlen);

    return out;