The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

Search found 237 matches

by mabel
Wed Jul 19, 2017 5:51 am
Forum: Questions & Answers
Topic: What is APDU to read ATR ?
Replies: 12
Views: 4163

Re: What is APDU to read ATR ?

Just use pyApduTool to connect your card. ATR value will be directly displayed.

pyapdutool_ATR.png
by mabel
Wed Jul 19, 2017 3:07 am
Forum: Applets Development Guide
Topic: Change Carrier Applet
Replies: 3
Views: 738

Re: Change Carrier Applet

Now I don't have any good idea to achieve your goal. You may await for the experts in this forum to help.

Sorry for not being helpful to you.
by mabel
Tue Jul 18, 2017 3:13 am
Forum: Questions & Answers
Topic: CLA byte of the select APDU command
Replies: 2
Views: 802

Re: CLA byte of the select APDU command

SELECT APDU command 00 A4 04 00 is a standard APDU defined in ISO 7816-4 spec.

Regarding CLA bytes, you can check ISO 7816-4 spec to learn which values can be used as CLA.
by mabel
Tue Jul 18, 2017 2:56 am
Forum: Applets Development Guide
Topic: Change Carrier Applet
Replies: 3
Views: 738

Re: Change Carrier Applet

What does "Carrier" mean?

if there is an applet that simulate a sim card that can have 2 different carriers.


Do you mean you want to write an applet to simulate a sim card, right?
by mabel
Thu Jul 13, 2017 12:05 am
Forum: Questions & Answers
Topic: Problem in sending extended APDU
Replies: 2
Views: 739

Re: Problem in sending extended APDU

Refer to this code section: short readCount = apdu.setIncomingAndReceive(); while ( bytesLeft > 0){ // process bytes in buffer[5] to buffer[readCount+4]; bytesLeft -= readCount; readCount = apdu.receiveBytes ( ISO7816.OFFSET_CDATA ); } You need to call receiveBytes to receive the left bytes.
by mabel
Wed Jul 12, 2017 3:36 am
Forum: Questions & Answers
Topic: The meaning of output command
Replies: 2
Views: 867

Re: The meaning of output command

Select Card Manager <<00 A4 04 00 00 >>6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 01 FF 90 00 init-update <<80 50 00 00 08 04 CE 7B 37 AE 39 9C 40 1C >>00 00 00 00 00 00 00 00 00 00 FF 02 00 AE 17 80 CA 58 64 E9 8C B3 17 CC 11 71 83 66 90 00 ext-auth <<84 82 00 00 10 64 B1 17 85 20 34 F1 71 54...
by mabel
Wed Jul 05, 2017 11:00 pm
Forum: Questions & Answers
Topic: Secure Messaging
Replies: 3
Views: 777

Re: Secure Messaging

The problem is your SELECT command is terminating the secure channel. So perform the select before the secure channel.
by mabel
Thu Jun 29, 2017 4:11 am
Forum: Questions & Answers
Topic: javax.crypto.BadPaddingException
Replies: 4
Views: 1247

Re: javax.crypto.BadPaddingException

Try to replace the following code

Code: Select all

byte[] p = new byte[64];
 
// Encrypt with the public key
cipher.doFinal(s, 0, s.length, p, 0);


with

Code: Select all

// Encrypt with the public key
byte[] p = cipher.doFinal(s);
by mabel
Wed Jun 21, 2017 12:02 am
Forum: Questions & Answers
Topic: How to use a smart card to send encrypted mail?
Replies: 2
Views: 622

Re: How to use a smart card to send encrypted mail?

FYI,

Pls refer to this article, which may be helpful to you.
JavaCard OS : Disclaimer