File: hasher_whirlpool.cpp

package info (click to toggle)
entropybroker 2.9-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,700 kB
  • sloc: cpp: 14,387; sh: 934; makefile: 188; java: 148; perl: 12
file content (27 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <string>

#include "hasher.h"
#include "hasher_whirlpool.h"

hasher_whirlpool::hasher_whirlpool()
{
}

hasher_whirlpool::~hasher_whirlpool()
{
}

std::string hasher_whirlpool::get_name()
{
	return "whirlpool";
}

int hasher_whirlpool::get_hash_size() const
{
	return CryptoPP::Whirlpool::DIGESTSIZE;
}

void hasher_whirlpool::do_hash(unsigned char *in, int in_size, unsigned char *dest)
{
	CryptoPP::Whirlpool().CalculateDigest(dest, in, in_size);
}