aboutsummaryrefslogtreecommitdiffstats
path: root/include/rw.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-27 14:29:33 +0000
committerlloyd <[email protected]>2008-06-27 14:29:33 +0000
commit34d5da54da524018580935da11525bd72b5a560e (patch)
tree398e07f035b4e72bf7a315f0d9f1e6e55b46795f /include/rw.h
parentd1bc1ae91003bc10b46b0d1e38f0ac64080b4c81 (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/rw.h')
-rw-r--r--include/rw.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rw.h b/include/rw.h
index 2cc2fb6a4..d9f95eaa9 100644
--- a/include/rw.h
+++ b/include/rw.h
@@ -41,9 +41,12 @@ class BOTAN_DLL RW_PrivateKey : public RW_PublicKey,
bool check_key(RandomNumberGenerator& rng, bool) const;
RW_PrivateKey() {}
- RW_PrivateKey(const BigInt&, const BigInt&, const BigInt&,
+
+ RW_PrivateKey(RandomNumberGenerator&,
+ const BigInt&, const BigInt&, const BigInt&,
const BigInt& = 0, const BigInt& = 0);
- RW_PrivateKey(u32bit, RandomNumberGenerator& rng, u32bit = 2);
+
+ RW_PrivateKey(RandomNumberGenerator& rng, u32bit bits, u32bit = 2);
};
}