aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_algo.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 19:06:45 +0000
committerlloyd <[email protected]>2008-05-24 19:06:45 +0000
commit117ee205ea987df26945e28373a66716fee06876 (patch)
treea3a61a34cbab8f7b9f129a4b51c8fa6a7d4f706b /src/if_algo.cpp
parentdf8691c753ad17d364c868f9b34a56a1f52bb9cf (diff)
Pass an RNG reference to IF_Core
Diffstat (limited to 'src/if_algo.cpp')
-rw-r--r--src/if_algo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/if_algo.cpp b/src/if_algo.cpp
index 4e64e82ae..209c51c46 100644
--- a/src/if_algo.cpp
+++ b/src/if_algo.cpp
@@ -158,7 +158,7 @@ PKCS8_Decoder* IF_Scheme_PrivateKey::pkcs8_decoder()
*************************************************/
void IF_Scheme_PublicKey::X509_load_hook()
{
- core = IF_Core(e, n);
+ core = IF_Core(global_state().prng_reference(), e, n);
load_check(global_state().prng_reference());
}
@@ -172,7 +172,8 @@ void IF_Scheme_PrivateKey::PKCS8_load_hook(bool generated)
if(d2 == 0) d2 = d % (q - 1);
if(c == 0) c = inverse_mod(q, p);
- core = IF_Core(e, n, d, p, q, d1, d2, c);
+ core = IF_Core(global_state().prng_reference(),
+ e, n, d, p, q, d1, d2, c);
if(generated)
gen_check(global_state().prng_reference());