aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsa.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-06 19:48:09 +0000
committerlloyd <[email protected]>2006-09-06 19:48:09 +0000
commite00227828d80f9c9a17ef236586211faa01e4193 (patch)
tree2573533839150184038b18d7789eaef1ee5dd904 /src/rsa.cpp
parent7f176fd2259fcb395ca03751f19790eac15bd9ce (diff)
Split PK_Key into Public_Key and Private_Key; these new classes merge in
the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
Diffstat (limited to 'src/rsa.cpp')
-rw-r--r--src/rsa.cpp4
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();
}
/*************************************************