CRC test vector of crc16 (ccitt)

Does anyone know some CRC test vectors of CRC16-CCITT?

I don’t have a trusted CRC implementation. I either need to test someone’s implementation or test my own implementation. (For CRC32, I use the PNG code as the gold standard because it is a A reference implementation of reputation.)

(This site’s CRC calculator looks useful, but I need to verify the correctness in some way)

Update: The above CRC calculator looks Very useful, but it only requires ascii and cannot enter hex. —But entering hexadecimal is very awkward. (ASCII 12 in hexadecimal can be entered as 12, so you can’t just copy and paste a long string of hexadecimals Byte; the% character does not seem to be escaped)

I have verified this online calculator, which uses hexadecimal input, Boost test vectors for CRC16, CRC16-CCITT and CRC32.

Boost has a good CRC implementation that you can test. As far as I know, it can be configured for CRC16.
http://www.boost.org/doc/libs/1_41_0/libs/crc/index.html

There seems to be a how to set it to simulate CCITT on this page Example: http://www.boost.org/doc/libs/1_41_0/libs/crc/crc.html

Does anyone know some CRC tests of CRC16-CCITT vector?

I don’t have a trusted CRC implementation. I either need to test someone’s implementation or test my own implementation. (For CRC32, I use the PNG code as the gold standard because it is a A reference implementation of reputation.)

(This site’s CRC calculator looks useful, but I need to verify the correctness in some way)

Update: The above CRC calculator looks Very useful, but it only requires ascii and cannot enter hex. —But entering hexadecimal is very awkward. (ASCII 12 in hexadecimal can be entered as 12, so you can’t just copy and paste a long string of hexadecimals Byte; the% character does not seem to be escaped)

I have verified this online calculator, which uses hexadecimal input, Boost test vectors for CRC16, CRC16-CCITT and CRC32.

Boost has a good CRC implementation that you can test. As far as I know, it can be configured for CRC16.
http://www.boost.org /doc/libs/1_41_0/libs/crc/index.html

There seems to be an example of how to set it to emulate CCITT on this page: http://www.boost.org/ doc/libs/1_41_0/libs/crc/crc.html

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5319 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.