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/rw.cpp | |
parent | ebc67ae27481549a152858f24fff4a7a82ad4e51 (diff) |
Avoid using the global RNG in check_key, instead pass a reference.
Update the examples
Diffstat (limited to 'src/rw.cpp')
-rw-r--r-- | src/rw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rw.cpp b/src/rw.cpp index 425ab83b3..35e3bbf8d 100644 --- a/src/rw.cpp +++ b/src/rw.cpp @@ -115,9 +115,9 @@ SecureVector<byte> RW_PrivateKey::sign(const byte in[], u32bit len) const /************************************************* * Check Private Rabin-Williams Parameters * *************************************************/ -bool RW_PrivateKey::check_key(bool strong) const +bool RW_PrivateKey::check_key(RandomNumberGenerator& rng, bool strong) const { - if(!IF_Scheme_PrivateKey::check_key(strong)) + if(!IF_Scheme_PrivateKey::check_key(rng, strong)) return false; if(!strong) |