diff options
Diffstat (limited to 'src/lib/hash/hash.cpp')
-rw-r--r-- | src/lib/hash/hash.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/hash/hash.cpp b/src/lib/hash/hash.cpp index 112554127..186811b64 100644 --- a/src/lib/hash/hash.cpp +++ b/src/lib/hash/hash.cpp @@ -251,10 +251,18 @@ 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) |