indentSelect indent level

parsingData parsing available for authorised users.
APDU parser support two variants of smatcard log traces:
- SmartSpy Level 1 files by ICC Solutions / FIME;
- Basic script with ATR and APDU Command Request/Response;


1) SmartSpy Level 1 lines example
---==============================
*level 1 trace
*File name : [filename]
*Date : [datetime]
*Start of log file
Acquisition 1
ATR - 3B 6F 00 00 80 31 E0 6B 05 12 05
***** 02 87 55 55 55 55 55 55
IFD - 00 A4 04 00 0E
ICC - A4
IFD - 31 50 41 59 2E 53 59 53 2E 44 44 46 30 31
ICC - 61 17
...
*End of log file
*Checksum: [checksum]
---

Supported lines:
- 'ATR -' - ATR hexadecimal data.
- 'IFD -' - Device Request hexadecimal data.
- 'ICC -' - Smartcard Response hexadecimal data.
- '*****' - continue previous data block.

The rest of lines be excluded.


2) GPShell script log example
---==========================
enable_trace
establish_context
card_connect 
select -AID A0000000040000
Command --> 00A4040007A0000000040000
Wrapped command --> 00A4040007A0000000040000
Response <-- 6F658408A000000004000000A559734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029F6E061981220201009F6501FF9000
send_apdu -APDU 80CA9F7F00
Command --> 80CA9F7F00
Wrapped command --> 80CA9F7F00
Response <-- 9F7F2A409077941981220201003222027B384D01091002322241933222419432220000C11900000000000000009000
send_APDU() returns 0x80209000 (9000: Success. No error.)
card_disconnect
release_context
---

Supported lines:
- 'card_connect' - New session with card.
- 'Command -->' - APDU Request hexadecimal string.
- 'Response <--' - APDU Response hexadecimal string.

The rest of lines be excluded.

Spaces withing Hexadecimal string will be excluded.
Unsupported APDU Instructions (INS) will not be processed and will be excluded too.


3) APDU script lines example
---=========================
? 3B6F00008031E06B0512050287555555555555

> 00A404000E
> 315041592E5359532E4444463031
< 6117
...
---

Supported lines:
- '?' - ATR hexadecimal string.
- '>' - APDU Request hexadecimal string.
- '<' - APDU Response hexadecimal string.

The rest of lines be excluded.

Spaces withing Hexadecimal string will be excluded.
Unsupported APDU Instructions (INS) will not be processed and will be excluded too.

Good luck.
Supported instructions (INS):
  04: ISO 7816-9, Deactivate File
  0E: ISO 7816-4, Erase Binary
  20: ISO 7816-4, Verify
  22: ISO 7816-4, Manage Security Environment
  24: ISO 7816-4, Change Reference Data
  26: ISO 7816-4, Disable Verification Requirement
  28: ISO 7816-4, Enable Verification Requirement
  2A: ISO 7816-8, Perform Security Operation (ToDo)
  2C: ISO 7816-4, Reset Retry Counter
  44: ISO 7816-9, Activate File
  46: ISO 7816-8, Generate Asymmetric Key Pair (ToDo)
  70: ISO 7816-4, Manage Channel
  82: ISO 7816-4, External/Mutual Authenticate
  84: ISO 7816-4, Get Challenge
  86: ISO 7816-4, General Authenticate
  88: ISO 7816-4, Internal Authenticate
  A0: ISO 7816-4, Search Binary
  A2: ISO 7816-4, Search Record
  A4: ISO 7816-4, Select
  B0: ISO 7816-4, Read Binary
  B2: ISO 7816-4, Read Record(s)
  C0: ISO 7816-4, Get Response
  C2: ISO 7816-4, Envelope
  CA: ISO 7816-4, Get Data
  D0: ISO 7816-4, Write Binary
  D2: ISO 7816-4, Write Record
  D6: ISO 7816-4, Update Binary
  DA: ISO 7816-4, Put Data
  DC: ISO 7816-4, Update Record
  E0: ISO 7816-9, Create File
  E2: ISO 7816-4, Append Record
  E4: ISO 7816-9, Delete File
  E6: ISO 7816-9, Terminate DF
  E8: ISO 7816-9, Terminate EF
  FE: ISO 7816-9, Terminate Card Usage
  XX: Undefined Command/Response