aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/lion/lion.cpp
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/block/lion/lion.cpp
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/block/lion/lion.cpp')
-rw-r--r--src/lib/block/lion/lion.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/block/lion/lion.cpp b/src/lib/block/lion/lion.cpp
index 7ae620504..56aa55c2f 100644
--- a/src/lib/block/lion/lion.cpp
+++ b/src/lib/block/lion/lion.cpp
@@ -10,22 +10,6 @@
namespace Botan {
-Lion* Lion::make(const BlockCipher::Spec& spec)
- {
- if(spec.arg_count_between(2, 3))
- {
- std::unique_ptr<HashFunction> hash(HashFunction::create(spec.arg(0)));
- std::unique_ptr<StreamCipher> stream(StreamCipher::create(spec.arg(1)));
-
- if(hash && stream)
- {
- const size_t block_size = spec.arg_as_integer(2, 1024);
- return new Lion(hash.release(), stream.release(), block_size);
- }
- }
- return nullptr;
- }
-
/*
* Lion Encryption
*/