title: how to parse 3 byte length BER-TLV TAG
body: <p>I am working with some EMV tags which most of them have a length of <strong>1</strong> or <strong>2</strong> bytes for example
  <code>9F02, 81,..</code> I understand that there is a certain bit configuration to know how I can determine the tag length for determine if a tags is 2 byte length or larger, Im using:</p>
  
  <pre><code>unsigned char tags[]={0x9F,0x02};
  if((tags[0]&amp;0x1F)==0x1F){
    ...
  }
  </code></pre>
  
  <p>but I dont know to do when I have some tag larger than this.</p>
  
  <p>Im working with EMV Data, Im testing with certification card , I'm receiving <code>these tags are: DF8111, DF8119, DF811E, DF812C</code> they are relate to CVM.</p>