14 static inline uint8_t roll(uint8_t input_byte, uint8_t crc)
16 for(uint8_t i = 8; i; i--, input_byte >>= 1) {
17 uint8_t result = (crc ^ input_byte) & 0x01;
27 static inline uint8_t compute(
const uint8_t *input_byte, uint16_t length)
30 for(uint16_t b = 0; b < length; b++) {
31 crc = roll(input_byte[b], crc);