createCrc8(polynomial: number): (data: Uint8Array) => number
Creates a CRC8 function for the given polynomial.
Uses init=0x00 and xor=0x00 (common for CRC8 variants like Maxim/Dallas).
(data: Uint8Array) => number
A function that calculates CRC8 for given data