/ghost/crc32.h
http://ghostcb.googlecode.com/ · C Header · 18 lines · 14 code · 4 blank · 0 comment · 0 complexity · 691a61568f2306201cdb506adc4db48f MD5 · raw file
- #ifndef CRC32_H
- #define CRC32_H
-
- #define CRC32_POLYNOMIAL 0x04c11db7
-
- class CCRC32
- {
- public:
- void Initialize( );
- uint32_t FullCRC( unsigned char *sData, uint32_t ulLength );
- void PartialCRC( uint32_t *ulInCRC, unsigned char *sData, uint32_t ulLength );
-
- private:
- uint32_t Reflect( uint32_t ulReflect, char cChar );
- uint32_t ulTable[256];
- };
-
- #endif