From 9ec64ce60cad6c825b7cf40306a359d019e2c13c Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 7 Apr 2008 14:08:27 +0000 Subject: Remove the Global_RNG namespace, along with rng.h and rng.cpp. This was essentially a facade for the RNG object living in the global library state. Rewrite all callers to directly invoke the global state object: this makes it more clear what functions are actually accessing mutable state outside of the normal reference graph (and thus, which functions will have to be altered in order to remove this dependency). Other facades remain in place for the configuration object and the memory allocator factory. --- src/eme_pkcs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eme_pkcs.cpp') diff --git a/src/eme_pkcs.cpp b/src/eme_pkcs.cpp index 043d955c2..55ceeea99 100644 --- a/src/eme_pkcs.cpp +++ b/src/eme_pkcs.cpp @@ -4,7 +4,7 @@ *************************************************/ #include -#include +#include namespace Botan { @@ -26,7 +26,7 @@ SecureVector EME_PKCS1v15::pad(const byte in[], u32bit inlen, 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; -- cgit v1.2.3