diff options
Diffstat (limited to 'src/pubkey/rw')
-rw-r--r-- | src/pubkey/rw/rw.cpp | 2 | ||||
-rw-r--r-- | src/pubkey/rw/rw.h | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/pubkey/rw/rw.cpp b/src/pubkey/rw/rw.cpp index bf66898b2..7b87ce7df 100644 --- a/src/pubkey/rw/rw.cpp +++ b/src/pubkey/rw/rw.cpp @@ -40,8 +40,6 @@ RW_PrivateKey::RW_PrivateKey(RandomNumberGenerator& rng, d2 = d % (q - 1); c = inverse_mod(q, p); - core = IF_Core(rng, e, n, d, p, q, d1, d2, c); - gen_check(rng); } diff --git a/src/pubkey/rw/rw.h b/src/pubkey/rw/rw.h index 059ba7d48..7d614cf5a 100644 --- a/src/pubkey/rw/rw.h +++ b/src/pubkey/rw/rw.h @@ -9,6 +9,7 @@ #define BOTAN_RW_H__ #include <botan/if_algo.h> +#include <botan/reducer.h> namespace Botan { @@ -24,15 +25,11 @@ class BOTAN_DLL RW_PublicKey : public PK_Verifying_with_MR_Key, RW_PublicKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits) : IF_Scheme_PublicKey(alg_id, key_bits) - { - core = IF_Core(e, n); - } + {} RW_PublicKey(const BigInt& mod, const BigInt& exponent) : IF_Scheme_PublicKey(mod, exponent) - { - core = IF_Core(e, n); - } + {} protected: RW_PublicKey() {} |