aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/rsa/rsa.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-04 17:38:59 +0000
committerlloyd <[email protected]>2010-03-04 17:38:59 +0000
commit788e524d35d01d90c56c825dbf63a96c3c42a32c (patch)
tree0147300f6b0f6dd2fd1f16e4e8b5b4e55c35c473 /src/pubkey/rsa/rsa.cpp
parente63bcc23c6121245c143b7b026127ebf0be55c22 (diff)
New IF constructors, simplifies RSA/RW
Diffstat (limited to 'src/pubkey/rsa/rsa.cpp')
-rw-r--r--src/pubkey/rsa/rsa.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/pubkey/rsa/rsa.cpp b/src/pubkey/rsa/rsa.cpp
index 33999f1cd..c606e5c53 100644
--- a/src/pubkey/rsa/rsa.cpp
+++ b/src/pubkey/rsa/rsa.cpp
@@ -14,16 +14,6 @@
namespace Botan {
/*
-* RSA_PublicKey Constructor
-*/
-RSA_PublicKey::RSA_PublicKey(const BigInt& mod, const BigInt& exp)
- {
- n = mod;
- e = exp;
- core = IF_Core(e, n);
- }
-
-/*
* RSA Public Operation
*/
BigInt RSA_PublicKey::public_op(const BigInt& i) const
@@ -76,26 +66,6 @@ RSA_PrivateKey::RSA_PrivateKey(RandomNumberGenerator& rng,
}
/*
-* RSA_PrivateKey Constructor
-*/
-RSA_PrivateKey::RSA_PrivateKey(RandomNumberGenerator& rng,
- const BigInt& prime1, const BigInt& prime2,
- const BigInt& exp, const BigInt& d_exp,
- const BigInt& mod)
- {
- p = prime1;
- q = prime2;
- e = exp;
- d = d_exp;
- n = mod;
-
- if(d == 0)
- d = inverse_mod(e, lcm(p - 1, q - 1));
-
- PKCS8_load_hook(rng);
- }
-
-/*
* RSA Private Operation
*/
BigInt RSA_PrivateKey::private_op(const byte in[], u32bit length) const