diff options
author | lloyd <[email protected]> | 2008-05-24 19:06:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 19:06:45 +0000 |
commit | 117ee205ea987df26945e28373a66716fee06876 (patch) | |
tree | a3a61a34cbab8f7b9f129a4b51c8fa6a7d4f706b /src/if_algo.cpp | |
parent | df8691c753ad17d364c868f9b34a56a1f52bb9cf (diff) |
Pass an RNG reference to IF_Core
Diffstat (limited to 'src/if_algo.cpp')
-rw-r--r-- | src/if_algo.cpp | 5 |
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()); |