00001
00007 #ifndef INC_CRC32_H
00008 #define INC_CRC32_H
00009 #include <stdint.h>
00010 #include <stdlib.h>
00011
00015 #define CRC32_POLYNOMINAL 0x04c11db7
00016
00021 void crc32_init_seed(const uint32_t polynominal);
00022
00026 #define crc32_init() crc32_init_seed(CRC32_POLYNOMINAL);
00027
00034 uint32_t crc32(const char *data, const size_t size);
00035
00041 uint32_t crc32_file(const char *path);
00042
00048 uint32_t strcrc32(const char *data);
00049
00050 #endif
00051