aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_algo.cpp
diff options
context:
space:
mode:
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());