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;
Search found 237 matches
- Wed Aug 08, 2018 1:49 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
- Wed Aug 08, 2018 1:45 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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:
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:
- Wed Aug 08, 2018 1:42 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
Re: T0 Parsing
When Case2S Le doesn’t meet the expectation:
- Wed Aug 08, 2018 1:41 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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 ...
- Wed Aug 08, 2018 1:27 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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...
- Wed Aug 08, 2018 1:22 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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...
- Thu Jul 26, 2018 2:00 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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...
- Thu Jul 26, 2018 1:12 am
- Forum: Questions & Answers
- Topic: T0 Parsing
- Replies: 9
- Views: 17651
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 ...
- Sun Feb 25, 2018 8:29 pm
- Forum: Questions & Answers
- Topic: About the card asymmetric authentication
- Replies: 1
- Views: 5777
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.
- Fri Feb 23, 2018 12:48 pm
- Forum: Questions & Answers
- Topic: How to start my first hello world applet in java card?
- Replies: 2
- Views: 7671
Re: How to start my first hello world applet in java card?
To learn Java Card, first of all you must need to learn Java Card related Specification,such as Java Card Runtime Environment Specification, Java Card Virtual Machine Specification and so on.