title: Get Data APDU command different tags and response format
body: <p>As you may know, <a href="http://globalplatform.org/specificationscard.asp" rel="noreferrer">Gloabal Platform Card Specification</a> defines a command named <em>Get Data</em> to retrieve some information from the smart card. </p>
  
  <p><a href="https://github.com/martinpaljak/GlobalPlatformPro" rel="noreferrer"><em>GlobalPlatformPro</em></a> is one of the popular tools for communication with smart cards. When I <em>list</em> the installed applets on the card using this tool, I have the following output:</p>
  
  <pre><code>D:\3-TestTools\SmartCard&gt;GP -list -d -v -i
  //Useless Info Censored
  ATR: 3B6800000073C84012009000
  //Select APDU Command
  A&gt;&gt; T=0 (4+0000) 00A40400 00
  A&lt;&lt; (0018+2) (48ms) 6F108408A000000003000000A5049F6501FF 9000
  
  ***** Card info:
  A&gt;&gt; T=0 (4+0000) 80CA9F7F 00
  A&lt;&lt; (0045+2) (65ms) 9F7F2A4250010C425102902610116000099A5A0AF9425211694253117E00000000000000000000000000000000 9000
  Card CPLC:
  ICFabricator: 4250
  ICType: 010C
  OperatingSystemID: 4251
  OperatingSystemReleaseDate: 0290
  OperatingSystemReleaseLevel: 2610
  ICFabricationDate: 1160
  ICSerialNumber: 00099A5A
  ICBatchIdentifier: 0AF9
  ICModuleFabricator: 4252
  ICModulePackagingDate: 1169
  ICCManufacturer: 4253
  ICEmbeddingDate: 117E
  ICPrePersonalizer: 0000
  ICPrePersonalizationEquipmentDate: 0000
  ICPrePersonalizationEquipmentID: 00000000
  ICPersonalizer: 0000
  ICPersonalizationDate: 0000
  ICPersonalizationEquipmentID: 00000000
  
  ***** CARD DATA
  A&gt;&gt; T=0 (4+0000) 80CA0066 00
  A&lt;&lt; (0078+2) (95ms) 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B0609
  2B8510864864020103660C060A2B060104012A026E0102 9000
  GlobalPlatform card
  Version: 2.1.1
  TAG3: 1.2.840.114283.3
  SCP version: SCP_02_15
  TAG5: 1.3.656.840.100.2.1.3
  TAG6: 1.3.6.1.4.1.42.2.110.1.2
  
  ***** KEY INFO
  A&gt;&gt; T=0 (4+0000) 80CA00E0 00
  A&lt;&lt; (0020+2) (47ms) E012C00401018010C00402018010C00403018010 9000
  VER:1 ID:1 TYPE:DES3 LEN:16
  VER:1 ID:2 TYPE:DES3 LEN:16
  VER:1 ID:3 TYPE:DES3 LEN:16
  
  //Useless Info Censored
  </code></pre>
  
  <p>As you see above, the tool extracted <code>Card Info</code>, <code>Card Data</code> and <code>Key Info</code> from the card using following APDU commands:</p>
  
  <ul>
  <li>Card Info : <code>80 CA 9F 7F</code></li>
  <li>Card Data : <code>80 CA 00 66</code></li>
  <li>Key Info  : <code>80 CA 00 E0</code></li>
  </ul>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>Tags <code>E0</code> and <code>66</code> are mentioned in <em>Global Platform Card Specification</em>, but the tag <code>9F 7F</code> don't! Where is it specification?</p></li>
  <li><p>As it is mentioned in the Global Platform Specification, the format of <code>Card Data</code> (Tag <code>66</code>) is defined in <em>ISO/IEC 7816 Part 6</em>. But in this document there is only a table as below:</p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/YObYX.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/YObYX.jpg" alt="enter image description here"></a></p>
  
  <p>As you see above, the contents of this table is really different from the output that I can see in GPP tool output. How I can interpret the outputs (Get Data APDU command responses)? </p>