aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/par_hash/par_hash.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-28 06:20:39 +0000
committerlloyd <[email protected]>2015-01-28 06:20:39 +0000
commit710229be83cdbc061949c61942896b5af9e134d8 (patch)
tree5a28c6d2cd456a5a686a332b7466ed9f326cc5f8 /src/lib/hash/par_hash/par_hash.h
parent7b56f1bd570dc684ffd7c945dee0d9b5480354ff (diff)
Use Algo_Registry also for hashes.
Diffstat (limited to 'src/lib/hash/par_hash/par_hash.h')
-rw-r--r--src/lib/hash/par_hash/par_hash.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/hash/par_hash/par_hash.h b/src/lib/hash/par_hash/par_hash.h
index 189a67437..f67587d16 100644
--- a/src/lib/hash/par_hash/par_hash.h
+++ b/src/lib/hash/par_hash/par_hash.h
@@ -29,11 +29,15 @@ class BOTAN_DLL Parallel : public HashFunction
* @param hashes a set of hashes to compute in parallel
*/
Parallel(const std::vector<HashFunction*>& hashes);
- ~Parallel();
+
+ static Parallel* make(const Spec& spec);
private:
+ Parallel() {}
+
void add_data(const byte[], size_t);
void final_result(byte[]);
- std::vector<HashFunction*> hashes;
+
+ std::vector<std::unique_ptr<HashFunction>> hashes;
};
}