From 558808900bffc3c48da5e6d79ba602e88e619154 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 11 Oct 2016 13:00:57 -0400 Subject: 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. :) --- src/lib/stream/ofb/ofb.cpp | 10 ---------- src/lib/stream/ofb/ofb.h | 2 -- 2 files changed, 12 deletions(-) (limited to 'src/lib/stream/ofb') 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 */ -- cgit v1.2.3