aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/ofb
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/stream/ofb')
-rw-r--r--src/lib/stream/ofb/ofb.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/stream/ofb/ofb.cpp b/src/lib/stream/ofb/ofb.cpp
index 1e6615fc0..e8cb463db 100644
--- a/src/lib/stream/ofb/ofb.cpp
+++ b/src/lib/stream/ofb/ofb.cpp
@@ -6,7 +6,6 @@
*/
#include <botan/ofb.h>
-#include <botan/lookup.h>
namespace Botan {
@@ -14,8 +13,8 @@ OFB* OFB::make(const Spec& spec)
{
if(spec.algo_name() == "OFB" && spec.arg_count() == 1)
{
- if(BlockCipher* c = get_block_cipher(spec.arg(0)))
- return new OFB(c);
+ if(auto c = BlockCipher::create(spec.arg(0)))
+ return new OFB(c.release());
}
return nullptr;
}