aboutsummaryrefslogtreecommitdiffstats
path: root/src/dl_algo.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-20 10:38:08 +0000
committerlloyd <[email protected]>2008-06-20 10:38:08 +0000
commit4331395edf8e68b46e61fc00ddb5518fef8b36b5 (patch)
tree9307d278abe6065720359df390faef327a9a3d4f /src/dl_algo.cpp
parent3b28d92a8a90f27f3da55db7afb47ea23e02cfc4 (diff)
Pass a RandomNumberGenerator& to the PK_Core constructors and the various
public key object loading hooks.
Diffstat (limited to 'src/dl_algo.cpp')
-rw-r--r--src/dl_algo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dl_algo.cpp b/src/dl_algo.cpp
index e1de143a0..ade50e28d 100644
--- a/src/dl_algo.cpp
+++ b/src/dl_algo.cpp
@@ -7,6 +7,7 @@
#include <botan/numthry.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
+#include <botan/libstate.h>
namespace Botan {
@@ -56,7 +57,7 @@ X509_Decoder* DL_Scheme_PublicKey::x509_decoder()
void key_bits(const MemoryRegion<byte>& bits)
{
BER_Decoder(bits).decode(key->y);
- key->X509_load_hook();
+ key->X509_load_hook(global_state().prng_reference());
}
DL_Scheme_Decoder(DL_Scheme_PublicKey* k) : key(k) {}
@@ -113,7 +114,7 @@ PKCS8_Decoder* DL_Scheme_PrivateKey::pkcs8_decoder()
void key_bits(const MemoryRegion<byte>& bits)
{
BER_Decoder(bits).decode(key->x);
- key->PKCS8_load_hook();
+ key->PKCS8_load_hook(global_state().prng_reference());
}
DL_Scheme_Decoder(DL_Scheme_PrivateKey* k) : key(k) {}