aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/engine/engine.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 02:53:24 +0000
committerlloyd <[email protected]>2008-11-10 02:53:24 +0000
commitcabd8859a0cd87cf78ef1a48a8d59bf4a6fae81c (patch)
treecb9a786f4129e4861bd63b7c5152981304e945bf /src/libstate/engine/engine.h
parentba1271baf1ccbc0302971e7300229d0dec0405ab (diff)
Remove support for block cipher padding methods in engine. Like S2K,
they were not used at all outside of the core library implementations. One change is that now get_bc_pad returns a new object, instead of a pointer to a const shared padding method. This does imply a bit more dynamic memory overhead, but the modes are pretty light (stateless, for the most part), so this doesn't seem like a big deal. So modify ECB and CBC classes to add destructors to delete the padding object.
Diffstat (limited to 'src/libstate/engine/engine.h')
-rw-r--r--src/libstate/engine/engine.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstate/engine/engine.h b/src/libstate/engine/engine.h
index 584219045..9e83ce97f 100644
--- a/src/libstate/engine/engine.h
+++ b/src/libstate/engine/engine.h
@@ -119,8 +119,6 @@ class BOTAN_DLL Engine
const StreamCipher* stream_cipher(const std::string&) const;
const HashFunction* hash(const std::string&) const;
const MessageAuthenticationCode* mac(const std::string&) const;
- const class BlockCipherModePaddingMethod*
- bc_pad(const std::string&) const;
virtual bool can_add_algorithms() { return false; }
@@ -128,7 +126,6 @@ class BOTAN_DLL Engine
void add_algorithm(StreamCipher*) const;
void add_algorithm(HashFunction*) const;
void add_algorithm(MessageAuthenticationCode*) const;
- void add_algorithm(class BlockCipherModePaddingMethod*) const;
Engine();
virtual ~Engine();
@@ -145,10 +142,6 @@ class BOTAN_DLL Engine
virtual MessageAuthenticationCode* find_mac(const std::string&) const
{ return 0; }
- virtual class BlockCipherModePaddingMethod*
- find_bc_pad(const std::string&) const
- { return 0; }
-
template<typename T>
const T* lookup_algo(const Algorithm_Cache<T>* cache,
const std::string& name,
@@ -169,7 +162,6 @@ class BOTAN_DLL Engine
Algorithm_Cache<StreamCipher>* cache_of_sc;
Algorithm_Cache<HashFunction>* cache_of_hf;
Algorithm_Cache<MessageAuthenticationCode>* cache_of_mac;
- Algorithm_Cache<BlockCipherModePaddingMethod>* cache_of_bc_pad;
};
namespace Engine_Core {