All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

CRC32 checksum algorithm implementation according to IEEE standards More...

Detailed Description

CRC32 checksum algorithm implementation according to IEEE standards

Files

file  crc32.h
 

Functions

uint32_t crc32 (const void *buf, size_t size)
 CRC-32 checksum.
 

Function Documentation

◆ crc32()

uint32_t crc32 ( const void * buf,
size_t size )

CRC-32 checksum.

Uses the 0xedb88320 polynomial

Note
enable the crc32_fast module for a look-up table based implementation that trades code size for speed.
Parameters
[in]bufThe data to checksum
[in]sizeLength of the data in bytes
Returns
32 bit sized hash in the interval [0..2^32]