In order to thank you for all members' support of our website, we are holding new events - Getting Free Samples by Paying Freight only.
Want to get free samples? Please check this post for more details.

Search found 228 matches

by mabel
Wed Aug 08, 2018 1:52 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

Case 4S TPDU: CLA INS P1 P2 Lc DATA Le (1)SW1=6X, and SW1̸=61,62,63 CLA INS P1 P2 Lc <- Smart Card Reader Card-> 6X SW2 (2)61XX CLA INS P1 P2 Lc <- Smart Card Reader Card -> INS DATA <- Smart Card Reader Card -> 61 Nx CLA C0 P1 P2 P3=min(Le, Nx) <- Smart Card Reader Card -> DATA SW1 SW2 java code: ...
by mabel
Wed Aug 08, 2018 1:49 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

Case 3S

TPDU: CLA INS P1 P2 Lc
CLA INS P1 P2 Lc <- Smart Card Reader
Card-> SW1 SW2
java code:
case (byte)0x30:
le = apdu.setIncomingAndReceive();
break;
t0-parsing-fig14.jpg
t0-parsing-fig15.jpg
by mabel
Wed Aug 08, 2018 1:45 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

Another example of Case2S:
Java code:
case (byte)0x21:
for(i = 1; i <= 6; i++)
{
buf[(short)(i - 1)] = (byte)i;
}
apdu.setOutgoingAndSend((short)0, (short)6);
break;
When needing 6C00:
t0-parsing-fig12.jpg
t0-parsing-fig13.jpg
by mabel
Wed Aug 08, 2018 1:42 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

When Case2S Le doesn’t meet the expectation:
t0-parsing-fig10.jpg
t0-parsing-fig11.jpg
by mabel
Wed Aug 08, 2018 1:41 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

Case2S TPDU: CLA INS P1 P2 Le (1)Le is in line with expectation. CLA INS P1 P2 Le <- Smart Card Reader Card-> DATA SW1 SW2 (2)Le does not meet expectations and does not prompt for data length as well. CLA INS P1 P2 Le <- Smart Card Reader Card -> 67 00 (3)Le does not meet expectations, but prompts ...
by mabel
Wed Aug 08, 2018 1:27 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

6. APDU formats There are 4 kinds of APDU formats Case1: CLA INS P1 P2 Case2: CLA INS P1 P2 Le Case3: CLA INS P1 P2 Lc Data Case4: CLA INS P1 P2 Lc Data Le Case1 TPDU:CLA INS P1 P2 00 CLA INS P1 P2 00 <- Smart Card Reader Card-> SW1 SW2 java code: Case (byte)0x11: break; t0-parsing-fig6.jpg t0-pars...
by mabel
Wed Aug 08, 2018 1:22 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

5. Basic principles of T0 protocol (1) The communication protocol is opened after PPS is completed. (2) The interface device sends a 5-byte command header to the card (3) The card sends process byte. (4) Transfer data in one direction under the control of the process byte Note: Under T0 protocol, b...
by mabel
Thu Jul 26, 2018 2:00 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

Re: T0 Parsing

3. Introduction to PPS PPS consists of 4 parts: |PPSS|PPS0|PPS1,PPS2,PPS3|PCK| PPSS: 0xFF PPS0(format byte): indicate whether the following PPSx exists and specify the protocol type PPS1 PPS2 PPS3: Communications parameters and so on PCK: check character 4. Basic concept in T0 Character frame in T0...
by mabel
Thu Jul 26, 2018 1:12 am
Forum: Questions & Answers
Topic: T0 Parsing
Replies: 9
Views: 85

T0 Parsing

Just want to write something about T0, welcome any comments. 1. Introduction to JavaCard power-on process The following figure shows the data captured during the JavaCard power-on process. It sent 3B firstly, then ATR value. t0-parsing-fig1.jpg After the JavaCard is powered on, it will be converted ...
by mabel
Sun Feb 25, 2018 8:29 pm
Forum: Questions & Answers
Topic: About the card asymmetric authentication
Replies: 1
Views: 179

Re: About the card asymmetric authentication

If your card supports SCP10, the card manager handles this and is implemented by the card vendor. SCP10 is the only asymmetric authentication protocol in GP.
JavaCard OS : Disclaimer