diff --git a/src/bit_util.c b/src/bit_util.c index a29f6ee69..2951f40fb 100644 --- a/src/bit_util.c +++ b/src/bit_util.c @@ -561,8 +561,8 @@ int main(void) { fprintf(stderr, "util:: test (%u/%u) passed, (%u) failed.\n", passed, passed + failed, failed); fprintf(stderr, "util::ccitt_whitening():\n"); - uint8_t buf[16] = {0}; - uint8_t chk[16] = {0xff, 0x87, 0xb8, 0x59, 0xb7, 0xa1, 0xcc, 0x24, 0x57, 0x5e, 0x4b, 0x9c, 0x0e, 0xe9, 0xea, 0x50}; + uint8_t buf[16] = {0xde, 0x78, 0xdb, 0x58, 0xb8, 0xf7, 0xf8, 0x36, 0x57, 0x5b, 0xd3, 0x94, 0x0e, 0x71, 0xed, 0x26, 0x36, 0x42, 0x5a, 0x2b, 0xb7, 0xb0, 0x5c, 0xf1, 0xe7, 0x9a, 0xeb, 0x45, 0xfd, 0x2d, 0x53}; + uint8_t chk[16] = {0x21, 0xff, 0x63, 0x01, 0x0f, 0x56, 0x34, 0x12, 0x00, 0x05, 0x98, 0x08, 0x00, 0x98, 0x07, 0x76, 0x1c, 0xfc, 0xee, 0x30, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00}; ccitt_whitening(buf, sizeof(buf)) ; ASSERT_MATCH(buf, chk, sizeof(buf));