File: hasher_sha512.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-- 426 bytes parent folder | download | duplicates (3)
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_sha512.h"

hasher_sha512::hasher_sha512()
{
}

hasher_sha512::~hasher_sha512()
{
}

std::string hasher_sha512::get_name()
{
	return "sha512";
}

int hasher_sha512::get_hash_size() const
{
	return CryptoPP::SHA512::DIGESTSIZE;
}

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