-
Notifications
You must be signed in to change notification settings - Fork 460
/
hashing.h
19 lines (15 loc) · 933 Bytes
/
hashing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef HASHSING
#define HASHSING
int sha256(const unsigned char *data, size_t length, unsigned char *digest);
int rmd160(const unsigned char *data, size_t length, unsigned char *digest);
int keccak(const unsigned char *data, size_t length, unsigned char *digest);
bool sha256_file(const char* file_name, unsigned char * checksum);
int rmd160_4(size_t length, const unsigned char *data0, const unsigned char *data1,
const unsigned char *data2, const unsigned char *data3,
unsigned char *digest0, unsigned char *digest1,
unsigned char *digest2, unsigned char *digest3);
int sha256_4(size_t length, const unsigned char *data0, const unsigned char *data1,
const unsigned char *data2, const unsigned char *data3,
unsigned char *digest0, unsigned char *digest1,
unsigned char *digest2, unsigned char *digest3);
#endif // HASHSING