title: How to calculate CRC_B in C#
body: <p>How to calculate CRC_B encoding in C# as described in ISO 14443?
  Here is some background info:</p>
  
  <blockquote>
    <p>CRC_B encoding
    This annex is provided for explanatory purposes and indicates the bit patterns that will 
    exist in the physical layer. It is included for the purpose of checking an ISO/IEC 
    14443-3 Type B implementation of CRC_B encoding. Refer to ISO/IEC 3309 and CCITT X.25 
    2.2.7 and V.42 8.1.1.6.1 for further details. Initial Value = 'FFFF'</p>
  </blockquote>
  
  <ul>
  <li>Example 1: for 0x00 0x00 0x00 you should end up with CRC_B of 0xCC 0xC6</li>
  <li>Example 2: for 0x0F 0xAA 0xFF you should end up with CRC_B of 0xFC 0xD1</li>
  </ul>
  
  <p>I tried some random CRC16 libraries but they aren't giving me the same results. I didn't get the same results from online checks either like in <a href="http://www.lammertbies.nl/comm/info/crc-calculation.html" rel="nofollow noreferrer">here</a>.</p>