00001 #ifndef CRC32_H
00002 #define CRC32_H
00003
00004 #define QUOTIENT 0x04c11db7
00005
00006 extern unsigned int crctab[];
00007
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011
00012 unsigned int crc32_initial(unsigned char *data, int len);
00013 unsigned int crc32_update(unsigned char *data, int len, unsigned int previous);
00014
00015 unsigned int checksum_initial(unsigned char *data, int len);
00016 unsigned int checksum_update(unsigned char *data, int len, unsigned int previous);
00017
00018 #ifdef __cplusplus
00019 }
00020 #endif
00021
00022 #endif