File: hasher.h

package info (click to toggle)
entropybroker 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,600 kB
  • sloc: cpp: 14,386; sh: 934; makefile: 188; java: 148; perl: 12
file content (13 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
class hasher
{
public:
	hasher();
	virtual ~hasher();

	virtual std::string get_name() = 0;

	static hasher *select_hasher(std::string type);

	virtual int get_hash_size() const = 0;
	virtual void do_hash(unsigned char *in, int in_size, unsigned char *dest) = 0;
};