Turnstone Operating System
|
CRC32 implementation. More...
#include <crc.h>
Functions | |
MODULE ("turnstone.lib") | |
void | crc32_init_table (void) |
initialize crc32 tables for fast calculation | |
uint32_t | crc32_sum (const void *p, uint32_t bytelength, uint32_t init) |
calculates crc32 sum More... | |
static uint32_t | crc32c_u8 (uint32_t crc, uint8_t data) |
static uint32_t | crc32c_u32 (uint32_t crc, uint32_t data) |
uint32_t | crc32c_sum (const void *data, uint64_t size, uint32_t init) |
calculates crc32c sum More... | |
uint32_t | adler32_sum (const void *data, uint64_t size, uint32_t init) |
calculates adler32 sum More... | |
Variables | |
uint32_t | crc32_table [256] = {} |
CRC32 implementation.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
calculates adler32 sum
[in] | data | input data |
[in] | size | input length |
[in] | init | seed/previous sum |
calculates crc32 sum
[in] | p | input data |
[in] | bytelength | input length |
[in] | init | CRC32_SEED or previous sum |
calculates crc32c sum
[in] | data | input data |
[in] | size | input length |
[in] | init | CRC32_SEED or previous sum |