MiniSmart II
56
l <Modulus Length>: <LenL> <LenH> Indicated the length of
the next field.
l <Modulus>: This is the modulus field of the public key. Its
length is specified in the field above.
Note:
If CA Key RID does not exist, response 15 F2 05
If CA Key Index does not exist, response 15 F2 06
Remove CA Public Key
Command Body is 72 46 04 02 <5 bytes RID> <1 byte Index>.
Response Body is 06
Note:
If CA Key RID does not exist, response 15 F2 05
If CA Key Index does not exist, response 15 F2 06
CA Key
existed:10
CA Key RID
does not
exist: 6
Set CA Public Key
Command Body is 72 46 04 03 <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)
l <Modulus Length>: <LenL> < LenH> Indicated the length of
the next field.
l <Modulus>: This is the modulus field of the public key. Its
length is specified in the field above.
Response Body is 06
Note:
Per <RID> has 6 CA Public Key.
Supported CA public key Max number is 16.
If key has full, response 15 F2 07
If CA Key Hash Data is error, response 15 F2 08
If <Hash Algorithm> and <Encryption Algorithm> are not is
0x01, response 15 F2 0E.
18
Remove All CA Public Key
List
Command Body is 72 46 04 04.
Response Body is 06
no CA public
Key: 6
CA public
Key exist: 14
Retrieve CA Public Key
List
Command Body is 72 46 04 05.
Response Body is 06 <LenL> <LenH> <5Bytes RID1> <1 byte
RID1 Index><5Bytes RID2> <1 byte RID2 Index>….. <5Bytes
RIDN> <1 byte RIDN Index>.
Note:
If any CA Key does not exist, response 15 F2 04
CA Key
existed:25
CA Key does
not exist:5.9
Start Transaction
Command Body is:
72 46 05 01- <FallBack><TimeOut1> <TimeOut2> <App
Data>.
Where:
<FallBack> (1byte). 0x01 indicates it supports FallBack to
First return:6
Expired Visa
T = 1: 3.5sc
Amex
Retailer
Terminal Test