aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-07 16:40:36 +0000
committerlloyd <[email protected]>2010-01-07 16:40:36 +0000
commit667738924ba1fde5bf219d963b433594d53d63b9 (patch)
tree8507488454c3e4f03e21505bfe8d788f7c649e15 /src/algo_factory
parent79faa71984b4e00f4f69dbc3e08325d1a9b4150d (diff)
Doxygen comments
Diffstat (limited to 'src/algo_factory')
-rw-r--r--src/algo_factory/algo_factory.h77
1 files changed, 63 insertions, 14 deletions
diff --git a/src/algo_factory/algo_factory.h b/src/algo_factory/algo_factory.h
index ac985b72b..3b479c2d7 100644
--- a/src/algo_factory/algo_factory.h
+++ b/src/algo_factory/algo_factory.h
@@ -46,61 +46,110 @@ class BOTAN_DLL Algorithm_Factory
*/
~Algorithm_Factory();
- /*
- * Provider management
+ /**
+ * @param algo_spec the algorithm we are querying
+ * @returns list of providers of this algorithm
*/
std::vector<std::string> providers_of(const std::string& algo_spec);
+ /**
+ * @param algo_spec the algorithm we are setting a provider for
+ * @param provider the provider we would like to use
+ */
void set_preferred_provider(const std::string& algo_spec,
const std::string& provider);
- /*
- * Block cipher operations
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to const prototype object, readiny for clone(), or NULL
*/
const BlockCipher*
prototype_block_cipher(const std::string& algo_spec,
const std::string& provider = "");
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to freshly created instance of the request algorithm
+ */
BlockCipher* make_block_cipher(const std::string& algo_spec,
const std::string& provider = "");
- void add_block_cipher(BlockCipher* hash, const std::string& provider);
+ /**
+ * @param algo the algorithm to add
+ * @param provider the provider of this algorithm
+ */
+ void add_block_cipher(BlockCipher* algo, const std::string& provider);
- /*
- * Stream cipher operations
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to const prototype object, readiny for clone(), or NULL
*/
const StreamCipher*
prototype_stream_cipher(const std::string& algo_spec,
const std::string& provider = "");
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to freshly created instance of the request algorithm
+ */
StreamCipher* make_stream_cipher(const std::string& algo_spec,
const std::string& provider = "");
- void add_stream_cipher(StreamCipher* hash, const std::string& provider);
+ /**
+ * @param algo the algorithm to add
+ * @param provider the provider of this algorithm
+ */
+ void add_stream_cipher(StreamCipher* algo, const std::string& provider);
- /*
- * Hash function operations
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to const prototype object, readiny for clone(), or NULL
*/
const HashFunction*
prototype_hash_function(const std::string& algo_spec,
const std::string& provider = "");
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to freshly created instance of the request algorithm
+ */
HashFunction* make_hash_function(const std::string& algo_spec,
const std::string& provider = "");
- void add_hash_function(HashFunction* hash, const std::string& provider);
+ /**
+ * @param algo the algorithm to add
+ * @param provider the provider of this algorithm
+ */
+ void add_hash_function(HashFunction* algo, const std::string& provider);
- /*
- * MAC operations
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to const prototype object, readiny for clone(), or NULL
*/
const MessageAuthenticationCode*
prototype_mac(const std::string& algo_spec,
const std::string& provider = "");
+ /**
+ * @param algo_spec the algorithm we want
+ * @param provider the provider we would like to use
+ * @returns pointer to freshly created instance of the request algorithm
+ */
MessageAuthenticationCode* make_mac(const std::string& algo_spec,
const std::string& provider = "");
- void add_mac(MessageAuthenticationCode* mac,
+ /**
+ * @param algo the algorithm to add
+ * @param provider the provider of this algorithm
+ */
+ void add_mac(MessageAuthenticationCode* algo,
const std::string& provider);
/*