Debian Codegraph @

utils/lzma/SRC/7zip/Archive/7z_C/7zCrc.h

raw
1 /* 7zCrc.h */
2
3 #ifndef __7Z_CRC_H
4 #define __7Z_CRC_H
5
6 #include <stddef.h>
7
8 #include "7zTypes.h"
9
10 extern UInt32 g_CrcTable[256];
11 void InitCrcTable();
12
13 void CrcInit(UInt32 *crc);
14 UInt32 CrcGetDigest(UInt32 *crc);
15 void CrcUpdateByte(UInt32 *crc, Byte v);
16 void CrcUpdateUInt16(UInt32 *crc, UInt16 v);
17 void CrcUpdateUInt32(UInt32 *crc, UInt32 v);
18 void CrcUpdateUInt64(UInt32 *crc, UInt64 v);
19 void CrcUpdate(UInt32 *crc, const void *data, size_t size);
20
21 UInt32 CrcCalculateDigest(const void *data, size_t size);
22 int CrcVerifyDigest(UInt32 digest, const void *data, size_t size);
23
24 #endif