crc16 top-level constant

CRC16 const crc16

A CRC or cyclic redundancy check is code commonly used for error detection and correction of digital data. This generates a 16-bit number as output.

This implementation uses IBM polynomial 0xA001.

WARNING: It should not be used for cryptographic purposes.

Implementation

const crc16 = CRC16(CRC16Params.ibm);