title: Convert generator polynomial to binary number
body: <p>I have a the generator polynomial which has to be converted to binary number to use in my CRC code.Like for example these are the one's that are converted correctly, I want to know how they are done.</p>
  
  <p>These are used for ROHC CRC computation:</p>
  
  <p>The polynomial to be used for the 3 bit CRC is:
  C(x) = 1 + x + x^3</p>
  
  <p>this is 0x06
  The polynomial to be used for the 7 bit CRC is:
  C(x) = 1 + x + x^2 + x^3 + x^6 + x^7</p>
  
  <p>this is 0x79</p>
  
  <p>want to know how 0x06 and 0x79 are derived from those equations.</p>