File: hasher_ripemd160.cpp

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 (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_ripemd160.h"

hasher_ripemd160::hasher_ripemd160()
{
}

hasher_ripemd160::~hasher_ripemd160()
{
}

std::string hasher_ripemd160::get_name()
{
	return "ripemd160";
}

int hasher_ripemd160::get_hash_size() const
{
	return CryptoPP::RIPEMD160::DIGESTSIZE;
}

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