2024-02-21 19:16:31 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//----------------------------------------------------------
|
|
|
|
|
2024-04-17 22:16:29 +08:00
|
|
|
unsigned int CalcCRC32(unsigned int crc, const void *buf, size_t size);
|
|
|
|
unsigned int CalcFileCRC32(char *filename);
|
|
|
|
|
|
|
|
void CalcFileSHA1(char *filename, unsigned int *digest);
|
2024-04-17 21:56:04 +08:00
|
|
|
void CalcSHA1(char *data, unsigned int len, unsigned int *digest);
|
2024-04-17 22:16:29 +08:00
|
|
|
char *GetSHA1Result(unsigned int *digest, char *buf);
|
2024-02-21 19:16:31 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------------
|