Crypto
crypto.crc8
Calculates CRC8 for the given data using a specified polynomial.
Parameters:
Name Type Description var data The integer value. var data The bit position to set. var polynomial The polynomial used for CRC calculation. var init_value Initial CRC value. Methods:
crypto.crc8(data, size, polynomial, init_value)
crypto.crc16
Calculates CRC16 for the given data using a specified polynomial.
Parameters:
Name Type Description var data The integer value. var data The bit position to set. var polynomial The polynomial used for CRC calculation. var init_value Initial CRC value. Methods:
crypto.crc16(data, size, polynomial, init_value)
crypto.crc24
Calculates CRC24 for the given data using a specified polynomial.
Parameters:
Name Type Description var data The integer value. var data The bit position to set. var polynomial The polynomial used for CRC calculation. var init_value Initial CRC value. Methods:
crypto.crc24(data, size, polynomial, init_value)
crypto.crc32
Calculates CRC32 for the given data using a specified polynomial.
Parameters:
Name Type Description var data The integer value. var data The bit position to set. var polynomial The polynomial used for CRC calculation. var init_value Initial CRC value. Methods:
crypto.crc32(data, size, polynomial)
crypto.crc64
Calculates CRC64 for the given data using a specified polynomial.
Parameters:
Name Type Description var data The integer value. var data The bit position to set. var polynomial The polynomial used for CRC calculation. var init_value Initial CRC value. Methods:
crypto.crc64(data, size, polynomial, init_value)