CRC32Plugin > Security
Description
CRC32 functionality for the bootloader.
Macros |
|
#define | BTL_CRC32_START 0xFFFFFFFFUL |
CRC32 start value.
|
|
#define | BTL_CRC32_END 0xDEBB20E3UL |
CRC32 end value.
|
|
Functions |
|
uint32_t | btl_crc32Stream (const uint8_t *buffer, size_t length, uint32_t prevResult) |
Function Documentation
uint32_t btl_crc32Stream | ( | const uint8_t * |
buffer,
|
size_t |
length,
|
||
uint32_t |
prevResult
|
||
) |
Calculate CRC32 on input buffer.
- Parameters
-
buffer
Buffer containing bytes to append to CRC32 calculation length
Size of the buffer in bytes prevResult
Previous output from the CRC algorithm. Polynomial if starting a new calculation
- Returns
- Result of the CRC32 operation