clamav/libclamunrar/crc.hpp

20 lines
445 B
C++
Raw Normal View History

#ifndef _RAR_CRC_
#define _RAR_CRC_
2023-11-26 15:01:19 -08:00
// This function is only to initialize external CRC tables. We do not need to
// call it before calculating CRC32.
void InitCRC32(uint *CRCTab);
uint CRC32(uint StartCRC,const void *Addr,size_t Size);
#ifndef SFX_MODULE
ushort Checksum14(ushort StartCRC,const void *Addr,size_t Size);
#endif
2023-08-22 10:26:55 -07:00
#if 0
void InitCRC64(uint64 *CRCTab);
uint64 CRC64(uint64 StartCRC,const void *Addr,size_t Size);
#endif
#endif