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 /src/dh.cpp | |
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 'src/dh.cpp')
-rw-r--r-- | src/dh.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dh.cpp b/src/dh.cpp index 159eb0629..8d2059936 100644 --- a/src/dh.cpp +++ b/src/dh.cpp @@ -5,7 +5,6 @@ #include <botan/dh.h> #include <botan/numthry.h> -#include <botan/libstate.h> #include <botan/util.h> namespace Botan { @@ -17,15 +16,14 @@ DH_PublicKey::DH_PublicKey(const DL_Group& grp, const BigInt& y1) { group = grp; y = y1; - X509_load_hook(global_state().prng_reference()); + X509_load_hook(); } /************************************************* * Algorithm Specific X.509 Initialization Code * *************************************************/ -void DH_PublicKey::X509_load_hook(RandomNumberGenerator& rng) +void DH_PublicKey::X509_load_hook() { - load_check(rng); } /************************************************* |