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 /include/if_algo.h | |
parent | ebc67ae27481549a152858f24fff4a7a82ad4e51 (diff) |
Avoid using the global RNG in check_key, instead pass a reference.
Update the examples
Diffstat (limited to 'include/if_algo.h')
-rw-r--r-- | include/if_algo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/if_algo.h b/include/if_algo.h index aa336a067..5f5fa4ce2 100644 --- a/include/if_algo.h +++ b/include/if_algo.h @@ -18,7 +18,7 @@ namespace Botan { class BOTAN_DLL IF_Scheme_PublicKey : public virtual Public_Key { public: - bool check_key(bool) const; + bool check_key(RandomNumberGenerator& rng, bool) const; const BigInt& get_n() const { return n; } const BigInt& get_e() const { return e; } @@ -40,7 +40,7 @@ class BOTAN_DLL IF_Scheme_PrivateKey : public virtual IF_Scheme_PublicKey, public virtual Private_Key { public: - bool check_key(bool) const; + bool check_key(RandomNumberGenerator& rng, bool) const; const BigInt& get_p() const { return p; } const BigInt& get_q() const { return q; } |