c++ - Using qchecksum instead of boost crc16 -


i want take crc16 on packet using qchecksum instead of boost crc cannot take same results. how can take crc16 checksum boost crc in qt?

boost::crc<16, 0x1040, 0, 0, false, false>(packet, 4) 

there many crc-16 polynomials , parameter sets. qchecksum implementation of 1 of them. no, can't make qchecksum match arbitrary boost checksum. can adjust boost checksum parameters match qchecksum if option.

looking @ qchecksum source (and playing parameters) seems one:

boost::crc<16, 0x1021, 0xffff, 0xffff, true, true> 

Comments