diff options
Diffstat (limited to 'src/hash/par_hash/par_hash.h')
-rw-r--r-- | src/hash/par_hash/par_hash.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 <botan/base.h> +#include <vector> + +namespace Botan { + +/************************************************* +* Parallel * +*************************************************/ +class BOTAN_DLL Parallel : public HashFunction + { + public: + void clear() throw(); + std::string name() const; + HashFunction* clone() const; + Parallel(const std::vector<std::string>&); + ~Parallel(); + private: + void add_data(const byte[], u32bit); + void final_result(byte[]); + std::vector<HashFunction*> hashes; + }; + +} + +#endif |