diff options
author | lloyd <[email protected]> | 2008-09-28 23:23:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 23:23:51 +0000 |
commit | a6f3801debb5239505ec2c9523a7fec5a9bbb070 (patch) | |
tree | 51adb7850c2fa18494743274b6767bd9abec957b /src/hash/par_hash/par_hash.h | |
parent | fda3e1b51fbb539e3689e23148be08783afe0e21 (diff) |
Move allocator code to secalloc/allocators module
Move paralle hash construction to par_hash module in hash directory
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 |