aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/def_engine/lookup_hash.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/engine/def_engine/lookup_hash.cpp b/src/engine/def_engine/lookup_hash.cpp
index 3c509ba42..10cc86785 100644
--- a/src/engine/def_engine/lookup_hash.cpp
+++ b/src/engine/def_engine/lookup_hash.cpp
@@ -200,8 +200,13 @@ Default_Engine::find_hash(const std::string& algo_spec) const
{
if(name.size() < 2)
throw Invalid_Algorithm_Name(algo_spec);
- name.erase(name.begin());
- return new Parallel(name);
+
+ std::vector<HashFunction*> hashes;
+
+ for(u32bit i = 1; i != name.size(); ++i)
+ hashes.push_back(get_hash(name[i]));
+
+ return new Parallel(hashes);
}
#endif