![]() |
CRYPTO-C v1.1.3
C/C++ Documentation
|
Go to the source code of this file.
#include "utildev.h"
CRC16 hash function support.
Param | Value |
---|---|
Alias | "XMODEM", "ZMODEM", "CRC-16/ACORN" |
Check | 0x31c3 (crc16 of "123456789") |
Poly | 0x1021 |
Init | 0x0000 |
RefIn | false |
RefOut | false |
XorOut | 0x0000 |
Macros | |
#define | CRC16LEN 2 |
16-bit CRC16 digest length in bytes | |
Functions | |
uint16_t | crc16 (void *in, size_t inlen) |
Compute CRC16 on inlen bytes of in. More... | |
uint16_t crc16 | ( | void * | in, |
size_t | inlen | ||
) |
Compute CRC16 on inlen bytes of in.
in | Pointer to data to hash |
inlen | Length in bytes of in data |
16-bit CRC table