33 #include "../Crypto/sha1.h"
34 #include "../Crypto/md5.h"
35 #include "../Crypto/sha224.h"
36 #include "../Crypto/sha256.h"
37 #include "../Crypto/sha384.h"
38 #include "../Crypto/sha512.h"
39 #include "../Crypto/sha512_224.h"
40 #include "../Crypto/sha512_256.h"
49 static uint32_t
crc32(
const void *data,
int size, uint32_t running_crc = 0);
52 static uint32_t
adler32(
const void *data,
int size, uint32_t running_adler32 = 0);
55 static std::string sha1(
const void *data,
int size,
bool uppercase =
false);
78 static void sha1(
const void *data,
int size,
unsigned char out_hash[20]);
93 static std::string md5(
const void *data,
int size,
bool uppercase =
false);
116 static void md5(
const void *data,
int size,
unsigned char out_hash[16]);
122 static void md5(
const std::string &data,
unsigned char out_hash[16]);
154 static void sha224(
const void *data,
int size,
unsigned char out_hash[28]);
193 static void sha256(
const void *data,
int size,
unsigned char out_hash[32]);
231 static void sha384(
const void *data,
int size,
unsigned char out_hash[48]);
269 static void sha512(
const void *data,
int size,
unsigned char out_hash[64]);
307 static void sha512_224(
const void *data,
int size,
unsigned char out_hash[28]);
346 static void sha512_256(
const void *data,
int size,
unsigned char out_hash[32]);
static std::string sha1(const void *data, int size, bool uppercase=false)
Generate SHA-1 hash from data.
static std::string sha512(const void *data, int size, bool uppercase=false)
Generate SHA-512 hash from data.
static std::string sha384(const void *data, int size, bool uppercase=false)
Generate SHA-384 hash from data.
static std::string sha224(const void *data, int size, bool uppercase=false)
Generate SHA-224 hash from data.
static std::string md5(const void *data, int size, bool uppercase=false)
Generate SHA-1 hash from data.
A Collection of checksum functions.
Definition: hash_functions.h:45
static uint32_t crc32(const void *data, int size, uint32_t running_crc=0)
Calculate a CRC32 checksum on the data.
std::shared_ptr< DataBuffer > DataBufferPtr
Definition: databuffer.h:66
static std::string sha512_224(const void *data, int size, bool uppercase=false)
Generate SHA-512_224 hash from data.
static std::string sha512_256(const void *data, int size, bool uppercase=false)
Generate SHA-512_256 hash from data.
Definition: Application/application.h:35
static std::string sha256(const void *data, int size, bool uppercase=false)
Generate SHA-256 hash from data.
static uint32_t adler32(const void *data, int size, uint32_t running_adler32=0)
Calculate a CRC32 checksum on the data.