34 #include "bootloader_common.h" 44 typedef struct Crc32Data
void crc32_init(crc32_data_t *crc32Config)
Initializes the parameters of the crc function, must be called first.
Definition: crc32.c:153
void crc32_finalize(crc32_data_t *crc32Config, uint32_t *hash)
Calculates the final crc value, padding with zeros if necessary, must be called last.
Definition: crc32.c:177
uint32_t byteCountCrc
Number of bytes processed.
Definition: crc32.h:47
State information for the CRC32 algorithm.
Definition: crc32.h:44
void crc32_update(crc32_data_t *crc32Config, const uint8_t *src, uint32_t lengthInBytes)
A "running" crc calculator that updates the crc value after each call.
Definition: crc32.c:161
uint32_t currentCrc
Current CRC value.
Definition: crc32.h:46