monotone

monotone Mtn Source Tree

Root/botan/par_hash.h

1/*************************************************
2* Parallel Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_PAR_HASH_H__
7#define BOTAN_PAR_HASH_H__
8
9#include <botan/base.h>
10#include <vector>
11
12namespace Botan {
13
14/*************************************************
15* Parallel *
16*************************************************/
17class Parallel : public HashFunction
18 {
19 public:
20 void clear() throw();
21 std::string name() const;
22 HashFunction* clone() const;
23 Parallel(const std::vector<std::string>&);
24 ~Parallel();
25 private:
26 void add_data(const byte[], u32bit);
27 void final_result(byte[]);
28 std::vector<HashFunction*> hashes;
29 };
30
31}
32
33#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status