title: CRC test vectors for CRC16 (CCITT)
body: <p>Does anyone know of some CRC test vectors for <a href="http://en.wikipedia.org/wiki/Cyclic_redundancy_check#Commonly_used_and_standardized_CRCs" rel="nofollow noreferrer">CRC16-CCITT</a>?</p>
  
  <p>I do not have a CRC implementation I can trust and either need to test someone's implementation or my own. (For CRC32, I use the <a href="http://www.w3.org/TR/PNG-CRCAppendix.html" rel="nofollow noreferrer">PNG code</a> as the gold standard, as it's a reputable reference implementation.)</p>
  
  <p>(<a href="http://zorc.breitbandkatze.de/crc.html" rel="nofollow noreferrer">this site's CRC calculator</a> looks useful but I need to verify correctness somehow)</p>
  
  <hr>
  
  <p>UPDATE: The above CRC calculator looks useful <s>but it takes only ascii, no way to enter hex.</s> --- it's very awkward to enter hex input, though. (ASCII <code>12</code> in hex can be entered as <code>%31%32</code>, so you can't just copy+paste a long string of hexadecimal bytes; also the <code>%</code> character doesn't seem to have an escape)</p>
  
  <p>I have verified <a href="http://www.lammertbies.nl/comm/info/crc-calculation.html" rel="nofollow noreferrer">this online calculator</a>, which takes hex inputs, against the Boost test vectors for CRC16, CRC16-CCITT, and CRC32.</p>