[JavaCard] APDU INSTALL Command 분석


표준문서에 나와있는 APDU Install Command Message 구조다. 아래 필드에서 P1, P2, Data필드에 어떤 내용이 들어가는지는 다른 문서를 참고해서 확인할 수 있다.


JavaCard 관련 문서는 항상 이런식이다.

P1(Parameter P1)

P1 내부에 들어갈 내용이다. 8비트 2진수 계산해서 넣으면 된다.


P2(Parameter P2)

P2에는 0x00, 0x01, 0x03의 값을 가질 수 있는데

  • 0x00
    • 추가적인 정보를 줄게 없을 때 사용된다.
  • 0x01
    • Load/Install/Make Selectable의 명령어 조합이 시작될 때(이 얘기는 아마도 P1 b8 = 1 )
  • 0x03
    • Load/Install/Make Selectable의 명령어 조합이 끝날 때(P1 b8 = 0)

Data

내부 테스트시 사용했던 설치 Command데이터

80E60C00??10A0000000090005FFFFFFFF8910DC000010A0000000090005FFFFFFFF892001000110A0000000090005FFFFFFFF8920010102010014EA1080080100000000000000810400010000 C900 00
  • 80E6 // Install 명령어
  • 0C // P1 : 00001100 -> Install/Selectable 설정
  • 00 // P2 : 추가적인 정보를 줄 게 없다.
  • ?? // Lc : 현재 사용하고 있는 툴에서 자동으로 계산해준다.
  • 10 // Executable Load File AID 길이
  • A0000000090005FFFFFFFF8910DC0021 // Executable Load File AID
  • 10 // Executable Module AID Length
  • A0000000090005FFFFFFFF8920010023 // Executable Module AID
  • 10 // Application AID Length
  • A0000000090005FFFFFFFF8920010124 // Application AID
  • 01 // Privileges 길이
  • 00
  • 14 // Install Parameters 길이
  • EA // TS 102.226 (UICC System Specific Paramsters)
  • 10
  • 80 // UICC Toolkit Application specific parameters field
  • 08 // UICC Toolkit Application specific parameters length
  • 01 // Priority level of toolkit application instance
  • 00 // Maximum number of timers allowed for this application instance
  • 00 // Maximum text length for a menu entry
  • 00 // Maximum number of menu entries allowed for this application instance
  • 00 // Maximum number of channels for this application instance
  • 00 // Length of Minimum Security Level field
  • 00 // Length of TAR Value(s) field
  • 00 // Maximum number of services for this application instance
  • 81
  • 04
  • 00 // Length of UICC file system AID
  • 01 // Length of Access Domain for UICC
  • 00
  • 00 // Length of Access Domain DAP
  • C9 // Application Specificparameter
  • 00 // Application Specificparameters
  • 00 // Le

참고자료