aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-25 11:51:03 -0500
committerJack Lloyd <[email protected]>2016-11-25 11:51:03 -0500
commitbee79188b1128edb12880366277ff5e9c5f02a08 (patch)
tree1c15959a9ccc65418773a507e3814620df6c0b36 /src
parentee01125c47fed991f5b6403383ccf4bdc753c02b (diff)
Avoid unneeded code - previous conditionals handle these cases
Diffstat (limited to 'src')
-rw-r--r--src/lib/hash/hash.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/hash/hash.cpp b/src/lib/hash/hash.cpp
index 186811b64..112554127 100644
--- a/src/lib/hash/hash.cpp
+++ b/src/lib/hash/hash.cpp
@@ -251,18 +251,10 @@ std::unique_ptr<HashFunction> HashFunction::create(const std::string& algo_spec,
{
return std::unique_ptr<HashFunction>(new SHAKE_128(req.arg_as_integer(0, 128)));
}
- if(req.algo_name() == "SHAKE-128(256)")
- {
- return std::unique_ptr<HashFunction>(new SHAKE_128(req.arg_as_integer(0, 256)));
- }
if(req.algo_name() == "SHAKE-256")
{
return std::unique_ptr<HashFunction>(new SHAKE_256(req.arg_as_integer(0, 256)));
}
- if(req.algo_name() == "SHAKE-256(512)")
- {
- return std::unique_ptr<HashFunction>(new SHAKE_256(req.arg_as_integer(0, 512)));
- }
#endif
#if defined(BOTAN_HAS_WHIRLPOOL)