diff options
author | lloyd <[email protected]> | 2010-06-16 00:25:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-06-16 00:25:34 +0000 |
commit | b1405ff3191a4343d098c513af157d831723b92d (patch) | |
tree | 0d32527cabf7301c7a25cbe14040ab8d2d7bab3a /src/pubkey | |
parent | ee412caaa1b7ef69fd6dfeb0d2c474fe0ddf4737 (diff) |
Doxygen comments
Diffstat (limited to 'src/pubkey')
-rw-r--r-- | src/pubkey/pk_keys.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/pubkey/pk_keys.h b/src/pubkey/pk_keys.h index 781c8e70f..e90fcf51a 100644 --- a/src/pubkey/pk_keys.h +++ b/src/pubkey/pk_keys.h @@ -73,7 +73,11 @@ class BOTAN_DLL Public_Key virtual ~Public_Key() {} protected: - virtual void load_check(RandomNumberGenerator&) const; + /** + * Self-test after loading a key + * @param rng a random number generator + */ + virtual void load_check(RandomNumberGenerator& rng) const; }; /** @@ -95,8 +99,17 @@ class BOTAN_DLL Private_Key : public virtual Public_Key { return algorithm_identifier(); } protected: - void load_check(RandomNumberGenerator&) const; - void gen_check(RandomNumberGenerator&) const; + /** + * Self-test after loading a key + * @param rng a random number generator + */ + void load_check(RandomNumberGenerator& rng) const; + + /** + * Self-test after generating a key + * @param rng a random number generator + */ + void gen_check(RandomNumberGenerator& rng) const; }; /** @@ -105,6 +118,9 @@ class BOTAN_DLL Private_Key : public virtual Public_Key class BOTAN_DLL PK_Key_Agreement_Key : public virtual Private_Key { public: + /* + * @return public component of this key + */ virtual MemoryVector<byte> public_value() const = 0; virtual ~PK_Key_Agreement_Key() {} |