the given message and this CRC is returned as two bytes (low byte
first).
- (This is the slow version without precomputed table.)
+ (This is the "slow" version without precomputed table.)
>>> crc_slow(bytes([0x08, 0x01, 0x00, 0x06, 0x00, 0x06])).hex()
'5c90'
the given message and this CRC is returned as two bytes (low byte
first).
+ (This is the "fast" version with precomputed table.)
+
>>> crc(bytes([0x08, 0x01, 0x00, 0x06, 0x00, 0x06])).hex()
'5c90'
>>> crc(bytes([0x08, 0x01, 0x01, 0x17])).hex()