shishi_crc3
Api function
Usage
#include <shishi.h>
int shishi_crc(Shishi * handle, const char * in, size_t inlen, char * out[4]);
Arguments
Shishi * handle
|
shishi handle as allocated by |
|---|---|
const char * in
|
input character array of data to checksum. |
size_t inlen
|
length of input character array of data to checksum. |
char * out[4]
|
newly allocated character array with checksum of data. |
Overview
Compute checksum of data using CRC32 modified according to RFC 1510. The out buffer must be deallocated by the caller.
The modifications compared to standard CRC32 is that no initial and final XOR is performed, and that the output is returned in LSB-first order.
Return value
Returns SHISHI_OK iff successful.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.