CRYPTO-C v1.1.3
C/C++ Documentation
crc32.h File Reference

Go to the source code of this file.

#include "utildev.h"

Detailed Description

CRC32 hash function support.

Param Value
Alias "CRC-32"
Check 0xCBF43926 (crc32 of "123456789")
Poly 0x04C11DB7
Init 0xffffffff
RefIn true
RefOut true
XorOut 0xffffffff

Macros

#define CRC32LEN   4
 CRC32 message digest length, in bytes.
 

Functions

uint32_t crc32 (void *in, size_t inlen)
 Compute CRC32 on inlen bytes of in. More...
 

Function Documentation

◆ crc32()

uint32_t crc32 ( void *  in,
size_t  inlen 
)

Compute CRC32 on inlen bytes of in.

Parameters
inPointer to data to hash
inlenLength in bytes of in data
Returns
32-bit unsigned integer result of CRC32 hash.

32-bit CRC table