From 34d5da54da524018580935da11525bd72b5a560e Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 27 Jun 2008 14:29:33 +0000 Subject: 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. --- src/elgamal.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/elgamal.cpp') diff --git a/src/elgamal.cpp b/src/elgamal.cpp index d97a365e7..ea0d581b0 100644 --- a/src/elgamal.cpp +++ b/src/elgamal.cpp @@ -7,7 +7,6 @@ #include #include #include -#include namespace Botan { @@ -18,16 +17,15 @@ ElGamal_PublicKey::ElGamal_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 ElGamal_PublicKey::X509_load_hook(RandomNumberGenerator& rng) +void ElGamal_PublicKey::X509_load_hook() { - core = ELG_Core(rng, group, y); - load_check(rng); + core = ELG_Core(group, y); } /************************************************* -- cgit v1.2.3