aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-05 13:04:23 +0000
committerlloyd <[email protected]>2008-05-05 13:04:23 +0000
commitc3ed799d0916a202cfa3ed3e8500d47464998a5b (patch)
tree461ecb97bcfaa1685437e193d3ee63cdc7635834 /misc
parent6ad077129096982e3c58cd4c1ffc61ec71aef228 (diff)
Update to not use Global_RNG
Diffstat (limited to 'misc')
-rw-r--r--misc/cms/cms_algo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/cms/cms_algo.cpp b/misc/cms/cms_algo.cpp
index 500355bee..2473e8885 100644
--- a/misc/cms/cms_algo.cpp
+++ b/misc/cms/cms_algo.cpp
@@ -7,7 +7,7 @@
#include <botan/der_enc.h>
#include <botan/lookup.h>
#include <botan/filters.h>
-#include <botan/rng.h>
+#include <botan/libstate.h>
#include <botan/rc2.h>
namespace Botan {
@@ -82,7 +82,7 @@ SecureVector<byte> CMS_Encoder::wrap_key(const std::string& cipher,
lcekpad.append((byte)cek.length());
lcekpad.append(cek.bits_of());
while(lcekpad.size() % 8)
- lcekpad.append(Global_RNG::random());
+ lcekpad.append(global_state().random());
return do_rfc3217_wrap(cipher, kek, lcekpad);
}
else