allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / scripts / squashfs / lzma / C / 7zip / Archive / 7z_C / 7zCrc.h
blobbac26b14c5b3277a4c305a0680b748d4a5fbaf5a
1 /* 7zCrc.h */
3 #ifndef __7Z_CRC_H
4 #define __7Z_CRC_H
6 #include <stddef.h>
8 #include "7zTypes.h"
10 extern UInt32 g_CrcTable[256];
11 void InitCrcTable();
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);
21 UInt32 CrcCalculateDigest(const void *data, size_t size);
22 int CrcVerifyDigest(UInt32 digest, const void *data, size_t size);
24 #endif