diff options
author | lloyd <[email protected]> | 2008-11-11 17:54:12 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 17:54:12 +0000 |
commit | a26685bf9feee9b9457bd1313b3943701aa37367 (patch) | |
tree | 8261fdba13ed07e4c06307773c654e73bcc316ae /src/libstate | |
parent | 37672b80907c35ab1b070f22127d3c6dbcb7385f (diff) |
Make Engine::find_XYZ public
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/engine/engine.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/libstate/engine/engine.h b/src/libstate/engine/engine.h index 3df973b0e..f25eb0c1d 100644 --- a/src/libstate/engine/engine.h +++ b/src/libstate/engine/engine.h @@ -136,21 +136,7 @@ class BOTAN_DLL Engine prototype_mac(const SCAN_Name& request, Algorithm_Factory& af) const; - // Add new algorithms - void add_algorithm(BlockCipher*) const; - void add_algorithm(StreamCipher*) const; - void add_algorithm(HashFunction*) const; - void add_algorithm(MessageAuthenticationCode*) const; - - // Engine information - virtual bool can_add_algorithms() { return false; } - virtual std::string provider_name() const = 0; - - void initialize(Mutex_Factory& mf); - - Engine(); - virtual ~Engine(); - private: + // Lookup functions virtual BlockCipher* find_block_cipher(const SCAN_Name&, Algorithm_Factory&) const { return 0; } @@ -167,6 +153,22 @@ class BOTAN_DLL Engine Algorithm_Factory&) const { return 0; } + // Add new algorithms + void add_algorithm(BlockCipher*) const; + void add_algorithm(StreamCipher*) const; + void add_algorithm(HashFunction*) const; + void add_algorithm(MessageAuthenticationCode*) const; + + // Engine information + virtual bool can_add_algorithms() { return false; } + virtual std::string provider_name() const = 0; + + void initialize(Mutex_Factory& mf); + + Engine(); + virtual ~Engine(); + + private: Algorithm_Cache<BlockCipher>* cache_of_bc; Algorithm_Cache<StreamCipher>* cache_of_sc; Algorithm_Cache<HashFunction>* cache_of_hf; |