diff options
author | lloyd <[email protected]> | 2010-03-05 17:40:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-05 17:40:45 +0000 |
commit | be9d7d1031bba2cd4f415d114389a1f50c61d44b (patch) | |
tree | c6714d8c40ac685c98e4b8bfbacdd14d99d64a63 /src/pubkey/rw | |
parent | cdd1a1509ffc74c74bd902d55a7a85ab9e2afe78 (diff) |
Remove IF_Core
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() {} |