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/pk_keys.h | |
parent | ebc67ae27481549a152858f24fff4a7a82ad4e51 (diff) |
Avoid using the global RNG in check_key, instead pass a reference.
Update the examples
Diffstat (limited to 'include/pk_keys.h')
-rw-r--r-- | include/pk_keys.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/pk_keys.h b/include/pk_keys.h index 36905e868..a44aa7c7c 100644 --- a/include/pk_keys.h +++ b/include/pk_keys.h @@ -20,7 +20,9 @@ class BOTAN_DLL Public_Key virtual std::string algo_name() const = 0; virtual OID get_oid() const; - virtual bool check_key(bool) const { return true; } + virtual bool check_key(RandomNumberGenerator&, bool) const + { return true; } + virtual u32bit message_parts() const { return 1; } virtual u32bit message_part_size() const { return 0; } virtual u32bit max_input_bits() const = 0; |