The SELECT command is documented in the ISO 7816-4 specifications and is used to
select the application on the card, making it the active one. The data field is the AID of the application. The card serial ID can be read with the GET_MNFTR_CERT which provides the card certificate signed by the manufacturer. The card serial is the serial of the provided X509 certificate.
Table of Contents
Toggle
def select():
card.select()
# For example:
select()
Field | Description | Value |
CLA | This field specifies the class of the instruction. | 0x00 |
INS | This field specifies the particular command or operation that the smart card or secure element should execute. | 0xA4 |
P1 | First parameter of the instruction that specifies the details about the operation being requested. | 0x04 |
P2 | First parameter of the instruction that specifies additional details about the operation being requested. | 0x00 |
Data | Key data | the instance AID = 0xA0000010000112 |
The following table outlines the possible responses that you will receive:
Response data : 24 bytes :
Response Type | Description |
Cryptnox Applet Type | 1 byte , “B” = Basic |
Cryptnox Applet Version | 3 bytes for Major.Middle.Minor (ex 1.0.2) |
Status Bytes | 2 bytes short big-endian : bit 15 (first) = MSB, bit 0 (last) = LSB, 0 = not/false, 1 = yes/true
|
PubKey Flags | 2 bytes short big-endian : bit 15 (first) = MSB, bit 0 (last) = LSB, 0 = not/false, 1 = yes/true
|
Custom Bytes | 16 bytes
|