Please check some basic guide firstly. viewforum.php?f=31
And find samples code from https://javacardos.com/wiki/javacard-ap ... munication
Search found 237 matches
- Tue Aug 01, 2017 5:40 am
- Forum: Applets Development Guide
- Topic: Help to give me some example APDU for me to write data to java card
- Replies: 1
- Views: 7047
- Wed Jul 19, 2017 5:51 am
- Forum: Questions & Answers
- Topic: What is APDU to read ATR ?
- Replies: 12
- Views: 26958
Re: What is APDU to read ATR ?
Just use pyApduTool to connect your card. ATR value will be directly displayed.
- Wed Jul 19, 2017 3:07 am
- Forum: Applets Development Guide
- Topic: Change Carrier Applet
- Replies: 3
- Views: 9829
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.
Sorry for not being helpful to you.
- Tue Jul 18, 2017 3:13 am
- Forum: Questions & Answers
- Topic: CLA byte of the select APDU command
- Replies: 2
- Views: 7141
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.
Regarding CLA bytes, you can check ISO 7816-4 spec to learn which values can be used as CLA.
- Tue Jul 18, 2017 2:56 am
- Forum: Applets Development Guide
- Topic: Change Carrier Applet
- Replies: 3
- Views: 9829
Re: Change Carrier Applet
What does "Carrier" mean?
Do you mean you want to write an applet to simulate a sim card, right?
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?
- Thu Jul 13, 2017 12:05 am
- Forum: Questions & Answers
- Topic: Problem in sending extended APDU
- Replies: 2
- Views: 6386
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.
- Wed Jul 12, 2017 3:36 am
- Forum: Questions & Answers
- Topic: The meaning of output command
- Replies: 2
- Views: 6837
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...
- Wed Jul 05, 2017 11:00 pm
- Forum: Questions & Answers
- Topic: Secure Messaging
- Replies: 3
- Views: 7923
Re: Secure Messaging
The problem is your SELECT command is terminating the secure channel. So perform the select before the secure channel.
- Thu Jun 29, 2017 4:11 am
- Forum: Questions & Answers
- Topic: javax.crypto.BadPaddingException
- Replies: 4
- Views: 11247
Re: javax.crypto.BadPaddingException
Try to replace the following code
with
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);
- Wed Jun 21, 2017 12:02 am
- Forum: Questions & Answers
- Topic: How to use a smart card to send encrypted mail?
- Replies: 2
- Views: 6226