AUG_CCITT

fun AUG_CCITT(data: ByteArray, offset: Int, length: Int): Int

Calculates CRC AUG-CCITT over given range of bytes from the block of data. It is using the 0x1021 polynomial and 0x1D0F initial value.

See: http://reveng.sourceforge.net/crc-catalogue/16.htm#crc.cat.crc-16-aug-ccitt See: http://srecord.sourceforge.net/crc16-ccitt.html

Return

the CRC-16 AUG-CCITT.

Parameters

data

The input data block for computation.

offset

Offset from where the range starts.

length

Length of the range in bytes.