diff options
Diffstat (limited to 'src/lib/hash/par_hash/par_hash.h')
-rw-r--r-- | src/lib/hash/par_hash/par_hash.h | 8 |
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; }; } |