Command: INIT-UPDATE

USAGE init-update [key-set [scp]]
DESCRIPTION Execute the INITIALIZE UPDATE command to begin authentication to the CardManager (includes a flush operation).
Note: Not all possible Secure Channel types are supported by a special card or simulation.
The reply to this command contains the supported SCP (for more info see "Global Platform Specification").

The data field of the response message contains the concatenation (without delimiters) of the following data elements:

NameLengthDescription
Key diversification data 10 bytes The key diversification data is data typically used by a backend system to derive the card static keys.
Key information 2 bytes The key information includes the Key Version Number and the Secure Channel Protocol identifier, here '01', used in initiating the Secure Channel Session.
Card challenge 8 bytes The card challenge is an internally generated random number.
Card cryptogram 8 bytes The card cryptogram is an authentication cryptogram.

PARAMETER
NameDescriptionRequired
key-set Key set version to be used. Zero is default and means that the card dictates, which key set to be used. No
scp Global Platform 2.1.1 Secure Channel Protocol to be used. Valid values:
  • SCP_UNDEFINED
  • SCP_01_05
  • SCP_01_15
  • SCP_02_04
  • SCP_02_05
  • SCP_02_0A
  • SCP_02_0B
  • SCP_02_14
  • SCP_02_15
  • SCP_02_1A
  • SCP_02_1B

SCP_UNDEFINED is the default value and means that SCP_02_15 will be used if the card indicates that it supports SCP02. Otherwise, SCP_01_05 will be used.

No
EXAMPLE
>  /card
resetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32    ;....1.EJCOP41V2
    32 A7                                              2.
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"

cm>  init-update 255
 => 80 50 00 00 08 B4 D7 39 77 7B 6A EF 67 00          .P.....9w{j.g.
 (100980 usec)
 <= 00 00 74 74 6E 6E 6E 62 62 62 FF 02 00 EF A2 39    ..ttnnnbbb.....9
    0C BD A4 7D 2B C2 DE E9 6A 81 1C 81 90 00          ...}+...j.....
Status: No Error

cm>  init-update 255 SCP_02_04
 => 80 50 00 00 08 EF AB F0 C2 30 66 11 F1 00          .P.......0f...
 (98177 usec)
 <= 00 00 74 74 6E 6E 6E 62 62 62 FF 02 00 EF A2 39    ..ttnnnbbb.....9
    0C BD A4 7D CF D9 73 B4 09 E7 9A BA 90 00          ...}..s.......
Status: No Error
  		
CONDITIONS The appropriate keys must be set via the set-key command.