aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/ofb
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-11 13:00:57 -0400
committerJack Lloyd <[email protected]>2016-10-21 16:53:16 -0400
commit558808900bffc3c48da5e6d79ba602e88e619154 (patch)
treefd76ee2d009c2b707d888683cbd767351c4ff6b3 /src/lib/stream/ofb
parent6aa855bba613c7b6fedfbe71d15930964acb1633 (diff)
Remove Algo_Registry
I repent my use of global constructors. I repent my use of global locks. Hopefully I will never touch this code again. :)
Diffstat (limited to 'src/lib/stream/ofb')
-rw-r--r--src/lib/stream/ofb/ofb.cpp10
-rw-r--r--src/lib/stream/ofb/ofb.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/stream/ofb/ofb.cpp b/src/lib/stream/ofb/ofb.cpp
index 3337a0c14..0c23188d5 100644
--- a/src/lib/stream/ofb/ofb.cpp
+++ b/src/lib/stream/ofb/ofb.cpp
@@ -9,16 +9,6 @@
namespace Botan {
-OFB* OFB::make(const Spec& spec)
- {
- if(spec.algo_name() == "OFB" && spec.arg_count() == 1)
- {
- if(auto c = BlockCipher::create(spec.arg(0)))
- return new OFB(c.release());
- }
- return nullptr;
- }
-
OFB::OFB(BlockCipher* cipher) :
m_cipher(cipher),
m_buffer(m_cipher->block_size()),
diff --git a/src/lib/stream/ofb/ofb.h b/src/lib/stream/ofb/ofb.h
index 7d77bae7a..f8beb4956 100644
--- a/src/lib/stream/ofb/ofb.h
+++ b/src/lib/stream/ofb/ofb.h
@@ -38,8 +38,6 @@ class BOTAN_DLL OFB final : public StreamCipher
void clear() override;
- static OFB* make(const Spec& spec);
-
/**
* @param cipher the block cipher to use
*/