- Deleted 11 obsolete debug/isolation test files - Restored test_pkt_normalizer.c from git repository - Added test_ecc_encrypt and test_routing to Makefile (2 new functional tests) - Removed settings.o from PN_OBJS (settings.c deleted) - Added crc32.o to SC_LIB_OBJS and ETCP_OBJS to fix linker errors - Removed unused routing_get_stats() function (undefined routing_stats_t type) - Updated changelog with detailed cleanup summary Current test count: 16 tests in Makefile (14 original + 2 new)Active test files in tests/: 25 files (was 35)test_ecc_encrypt: PASStest_routing: Compilation OK
19 lines
479 B
C
19 lines
479 B
C
#ifndef CRC32_H
|
|
#define CRC32_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
// Initialize CRC32 table (called automatically on first use)
|
|
void crc32_init(void);
|
|
|
|
// Calculate CRC32 checksum
|
|
uint32_t crc32_calc(const uint8_t *data, size_t len);
|
|
|
|
// Calculate CRC32 with initial value
|
|
uint32_t crc32_calc_ex(const uint8_t *data, size_t len, uint32_t initial_crc);
|
|
|
|
// Update CRC32 incrementally
|
|
uint32_t crc32_update(uint32_t crc, const uint8_t *data, size_t len);
|
|
|
|
#endif // CRC32_H
|