diff options
Diffstat (limited to 'src/rsa.cpp')
-rw-r--r-- | src/rsa.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rsa.cpp b/src/rsa.cpp index c11733aa3..1176b3a68 100644 --- a/src/rsa.cpp +++ b/src/rsa.cpp @@ -64,8 +64,7 @@ RSA_PrivateKey::RSA_PrivateKey(u32bit bits, u32bit exp) q = random_prime(bits - p.bits(), e); d = inverse_mod(e, lcm(p - 1, q - 1)); - PKCS8_load_hook(); - check_generated_private(); + PKCS8_load_hook(true); if(n.bits() != bits) throw Self_Test_Failure(algo_name() + " private key generation failed"); @@ -88,7 +87,6 @@ RSA_PrivateKey::RSA_PrivateKey(const BigInt& prime1, const BigInt& prime2, d = inverse_mod(e, lcm(p - 1, q - 1)); PKCS8_load_hook(); - check_loaded_private(); } /************************************************* |