diff options
author | lloyd <[email protected]> | 2008-05-24 18:47:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 18:47:11 +0000 |
commit | c4bad5476b30811ad51b1edd3bd873864d423c07 (patch) | |
tree | 94679d6cee3a38da1d64b8f5f671986566ac8a18 /src/elgamal.cpp | |
parent | ebc67ae27481549a152858f24fff4a7a82ad4e51 (diff) |
Avoid using the global RNG in check_key, instead pass a reference.
Update the examples
Diffstat (limited to 'src/elgamal.cpp')
-rw-r--r-- | src/elgamal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elgamal.cpp b/src/elgamal.cpp index bcb8a6cc0..95062cc53 100644 --- a/src/elgamal.cpp +++ b/src/elgamal.cpp @@ -104,9 +104,9 @@ SecureVector<byte> ElGamal_PrivateKey::decrypt(const byte in[], /************************************************* * Check Private ElGamal Parameters * *************************************************/ -bool ElGamal_PrivateKey::check_key(bool strong) const +bool ElGamal_PrivateKey::check_key(RandomNumberGenerator& rng, bool strong) const { - if(!DL_Scheme_PrivateKey::check_key(strong)) + if(!DL_Scheme_PrivateKey::check_key(rng, strong)) return false; if(!strong) |