From a6f3801debb5239505ec2c9523a7fec5a9bbb070 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 28 Sep 2008 23:23:51 +0000 Subject: Move allocator code to secalloc/allocators module Move paralle hash construction to par_hash module in hash directory --- src/hash/par_hash/par_hash.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/hash/par_hash/par_hash.h (limited to 'src/hash/par_hash/par_hash.h') diff --git a/src/hash/par_hash/par_hash.h b/src/hash/par_hash/par_hash.h new file mode 100644 index 000000000..844a6fb50 --- /dev/null +++ b/src/hash/par_hash/par_hash.h @@ -0,0 +1,33 @@ +/************************************************* +* Parallel Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_PAR_HASH_H__ +#define BOTAN_PAR_HASH_H__ + +#include +#include + +namespace Botan { + +/************************************************* +* Parallel * +*************************************************/ +class BOTAN_DLL Parallel : public HashFunction + { + public: + void clear() throw(); + std::string name() const; + HashFunction* clone() const; + Parallel(const std::vector&); + ~Parallel(); + private: + void add_data(const byte[], u32bit); + void final_result(byte[]); + std::vector hashes; + }; + +} + +#endif -- cgit v1.2.3