aboutsummaryrefslogtreecommitdiffstats
path: root/src/elgamal.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 18:52:52 +0000
committerlloyd <[email protected]>2008-05-24 18:52:52 +0000
commitf8078f5904fce5cbfd69516b175872496bdc2267 (patch)
treef2fb2ef681947328a64a13feddc3c256da6c4305 /src/elgamal.cpp
parentc4bad5476b30811ad51b1edd3bd873864d423c07 (diff)
Pass a RNG reference to load_check and gen_check functions
Diffstat (limited to 'src/elgamal.cpp')
-rw-r--r--src/elgamal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elgamal.cpp b/src/elgamal.cpp
index 95062cc53..133fdae68 100644
--- a/src/elgamal.cpp
+++ b/src/elgamal.cpp
@@ -27,7 +27,7 @@ ElGamal_PublicKey::ElGamal_PublicKey(const DL_Group& grp, const BigInt& y1)
void ElGamal_PublicKey::X509_load_hook()
{
core = ELG_Core(group, y);
- load_check();
+ load_check(global_state().prng_reference());
}
/*************************************************
@@ -87,9 +87,9 @@ void ElGamal_PrivateKey::PKCS8_load_hook(bool generated)
core = ELG_Core(group, y, x);
if(generated)
- gen_check();
+ gen_check(global_state().prng_reference());
else
- load_check();
+ load_check(global_state().prng_reference());
}
/*************************************************