MiniSmart II
55
If a <TLV> format was error, response 15 - F2 02 -If AID List
has full (MAX is 16), response 15 F2 03
Remove All Application
Data
Command Body is 72 46 01 04
Response Body is 06
application
data existed:
58
no
application
data:6
Retrieve Terminal Data
Command Body is 72 46 02 01
Response Body is
06 <TagCounterL> <TagCounterH> <TLV1>
<TLV2>…<TLVn> or
15<ErrorCode>
Where:
<TagCounterL> <TagCounterH> is the number of <TLV>
If Terminal Data does not exist, response 15 F2 01
10
Remove Terminal Data
Command Body is 72 46 02 02
Response Body is
06
14
Set Terminal Data
Command Body is 72 46 02 03 <TagCounterL>
<TagCounterH> <TLV1> <TLV2>…<TLVn>.
Where:
<TagCounterL> <TagCounterH>: the Number of <TLV>.
Response Body is
06 or
15 <ErrorCode>
Note:
If a <TLV> format was error, response 15 F2 02
30
Retrieve AID List
Command Body is 72 46 03 01
Response Body is 06 <NumberL><NumberH> <AID Block 1>
<AID Block 2> … <AID Block N>.
Where:
<NumberL><NumberH> is Number of AID Blocks.
<AID Block> format is <LenL> <LenH> <Several bytes AID>.
Where:
<LenL> <LenH> is Length of AID
Note:
If AID List does not exist, response 15 F2 00
6
Retrieve CA Public Key
Command Body is 72 46 04 01<5 bytes RID> <1 byte Index>.
Response Body is 06 <5 bytes RID> <1 byte Index> <1 byte
Hash Algorithm> <1 byte Encryption Algorithm> <20 bytes
HashValue> <4 bytes Public Key Exponent> <2 bytes Modulus
Length> <Variable bytes Modulus>
Where:
l <Hash Algorithm>: The only algorithm supported is SHA-
1.The value is set to 0x01
l <Encryption Algorithm>: The encryption algorithm in which
this key is used. Currently support only one type: RSA. The
value is set to 0x01.
l <HashValue>: Which is calculated using SHA-1 over the
following fields: RID & Index & Modulus & Exponent
l <Public Key Exponent>: Actually, the real length of the
exponent is either one byte or 3 bytes. It can have two values:
3 (Format is 0x00 00 00 03), or 65537 (Format is 0x00 01 00
01)
5.9