CRC32#

CRC32 functionality for the bootloader.

Functions#

uint32_t
btl_crc32Stream(const uint8_t *buffer, size_t length, uint32_t prevResult)

Calculate CRC32 on input buffer.

Macros#

#define
BTL_CRC32_START 0xFFFFFFFFUL

CRC32 start value.

#define
BTL_CRC32_END 0xDEBB20E3UL

CRC32 end value.

Function Documentation#

btl_crc32Stream#

uint32_t btl_crc32Stream (const uint8_t *buffer, size_t length, uint32_t prevResult)

Calculate CRC32 on input buffer.

Parameters
N/Abuffer

Buffer containing bytes to append to CRC32 calculation

N/Alength

Size of the buffer in bytes

N/AprevResult

Previous output from the CRC algorithm. Polynomial if starting a new calculation

Returns

  • Result of the CRC32 operation


Definition at line 48 of file platform/bootloader/security/btl_crc32.h

Macro Definition Documentation#

BTL_CRC32_START#

#define BTL_CRC32_START
Value:
0xFFFFFFFFUL

CRC32 start value.


Definition at line 35 of file platform/bootloader/security/btl_crc32.h

BTL_CRC32_END#

#define BTL_CRC32_END
Value:
0xDEBB20E3UL

CRC32 end value.


Definition at line 37 of file platform/bootloader/security/btl_crc32.h