summaryrefslogtreecommitdiffstats
path: root/old/botan/build/botan/par_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/build/botan/par_hash.h')
-rw-r--r--old/botan/build/botan/par_hash.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/old/botan/build/botan/par_hash.h b/old/botan/build/botan/par_hash.h
new file mode 100644
index 0000000..7e75c27
--- /dev/null
+++ b/old/botan/build/botan/par_hash.h
@@ -0,0 +1,36 @@
+/*
+* Parallel Hash
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_PARALLEL_HASH_H__
+#define BOTAN_PARALLEL_HASH_H__
+
+#include <botan/hash.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<HashFunction*>&);
+ ~Parallel();
+ private:
+ void add_data(const byte[], u32bit);
+ void final_result(byte[]);
+ std::vector<HashFunction*> hashes;
+ };
+
+}
+
+#endif