file
shcrc_8h
[ ]
define
shcrc32
(uint32_t)(shcrc((_data), (_data_len)) & 0xFFFFFFFF)
Converts a memory segment into a 32bit checksum.
define
shcrc16
(uint16_t)(shcrc((_data), (_data_len)) & 0xFFFF)
Converts a memory segment into a 16bit checksum.
function
uint64_t shcrc
(void *data, size_t data_len)
Converts a memory segment into a checksum 64bit number hash code.
Param
data
The location of the data in physical memory.
len
The length of the data in bytes.
Return Value
The hash code generated from the data content.
function
char* shcrcstr
(uint64_t crc)
Prints the checksum in a custom 56bit ascii code.
function
uint64_t shcrcgen
(char *str)
Generate a checksum from a shcrcstr() 56bit ascii code.