diff options
author | lloyd <[email protected]> | 2008-06-27 14:29:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 14:29:33 +0000 |
commit | 34d5da54da524018580935da11525bd72b5a560e (patch) | |
tree | 398e07f035b4e72bf7a315f0d9f1e6e55b46795f /include/rsa.h | |
parent | d1bc1ae91003bc10b46b0d1e38f0ac64080b4c81 (diff) |
Remove load checking, as it requires an RNG (at least at the moment).
Probably some variation of it will be added back in later, at least
to do basic checks like that primes are really odd (and we can do
basic primality checks, etc, even with an RNG).
Alternative: call check_key() manually on public keys you load with an
RNG object.
Diffstat (limited to 'include/rsa.h')
-rw-r--r-- | include/rsa.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/rsa.h b/include/rsa.h index 7ca8068f9..445902a6f 100644 --- a/include/rsa.h +++ b/include/rsa.h @@ -1,6 +1,6 @@ /************************************************* * RSA Header File * -* (C) 1999-2007 Jack Lloyd * +* (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RSA_H__ @@ -48,9 +48,12 @@ class BOTAN_DLL RSA_PrivateKey : public RSA_PublicKey, bool check_key(RandomNumberGenerator& rng, bool) const; RSA_PrivateKey() {} - RSA_PrivateKey(const BigInt&, const BigInt&, const BigInt&, - const BigInt& = 0, const BigInt& = 0); - RSA_PrivateKey(u32bit, RandomNumberGenerator&, u32bit = 65537); + + RSA_PrivateKey(RandomNumberGenerator&, + const BigInt& p, const BigInt& q, const BigInt& e, + const BigInt& d = 0, const BigInt& n = 0); + + RSA_PrivateKey(RandomNumberGenerator&, u32bit bits, u32bit = 65537); private: BigInt private_op(const byte[], u32bit) const; }; |