Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

The ALgorithm of DES Sample Code

Applets Development Guide

Moderator: product

newbietech
Posts: 2
Joined: Thu Jul 23, 2020 6:22 pm
Points :28
Contact:

Re: The ALgorithm of DES Sample Code

Post by newbietech » Fri Jul 24, 2020 3:23 pm

Thank you so much for the help :idea:
"Tech career Success story of the week " https://dev.to/scaleracademy/experience ... shers-273i

andromeda92
Posts: 38
Joined: Tue Aug 18, 2020 6:08 pm
Points :320
Contact:

Re: The ALgorithm of DES Sample Code

Post by andromeda92 » Thu Sep 10, 2020 7:08 pm

when i launch debug i have this error. it compil well.

Code: Select all

Launch successfully
Connect APDU port faield.
Connect failed. Reason:connect  error: Cref connect failed. Addr: 127.0.0.1, Port: 9025

this sample code use java_card_kit-310b43 on property/Library Options

the problem only arises with your applet, all the other applets that I created work well in debug mode, I have a J2A040 card, does it not support the encryption code? or is this a bug of the example? yet PKIApplet works very well

on windows output from JCIDE, i have this:

Code: Select all

CREF I/O error; Protocol mismatch or first command is not PowerUp
Modify setting from JVM, now i hace this error on debug

Code: Select all

Install Applet failed. Reason:Install applet error Install Applet failed. Send: 80 B8 00 00 1C 0B 4A 61 76 61 43 61 72 64 4F 53 02 0F 0B 4A 61 76 61 43 61 72 64 4F 53 02 01 00 00 00, Recv: 64 44..
VReader:ack warn reset.
JCVM:connect fail.
Connect failed. Reason:connect  error: Cref connect failed. Addr: 127.0.0.1, Port: 9025
VReader:ack ATR .
JCVM:3BD01100C0FFB1209F1F07E8
client VReader disconnect.
Disconnect CB port

I think there is a bug on this code, but where ?

thanks for your help.

kuafu
Posts: 317
Joined: Thu Jun 25, 2015 2:09 am
Points :4551
Contact:

Re: The ALgorithm of DES Sample Code

Post by kuafu » Fri Sep 11, 2020 6:35 am

andromeda92 wrote:
Thu Sep 10, 2020 7:08 pm
when i launch debug i have this error. it compil well.

Code: Select all

Launch successfully
Connect APDU port faield.
Connect failed. Reason:connect  error: Cref connect failed. Addr: 127.0.0.1, Port: 9025

this sample code use java_card_kit-310b43 on property/Library Options

the problem only arises with your applet, all the other applets that I created work well in debug mode, I have a J2A040 card, does it not support the encryption code? or is this a bug of the example? yet PKIApplet works very well

on windows output from JCIDE, i have this:

Code: Select all

CREF I/O error; Protocol mismatch or first command is not PowerUp
Modify setting from JVM, now i hace this error on debug

Code: Select all

Install Applet failed. Reason:Install applet error Install Applet failed. Send: 80 B8 00 00 1C 0B 4A 61 76 61 43 61 72 64 4F 53 02 0F 0B 4A 61 76 61 43 61 72 64 4F 53 02 01 00 00 00, Recv: 64 44..
VReader:ack warn reset.
JCVM:connect fail.
Connect failed. Reason:connect  error: Cref connect failed. Addr: 127.0.0.1, Port: 9025
VReader:ack ATR .
JCVM:3BD01100C0FFB1209F1F07E8
client VReader disconnect.
Disconnect CB port

I think there is a bug on this code, but where ?

thanks for your help.
viewtopic.php?f=15&t=2252
well

andromeda92
Posts: 38
Joined: Tue Aug 18, 2020 6:08 pm
Points :320
Contact:

Re: The ALgorithm of DES Sample Code

Post by andromeda92 » Fri Sep 11, 2020 6:57 am

I see the post but i can't select JAVACOS, it's grayed to CREF.

kuafu
Posts: 317
Joined: Thu Jun 25, 2015 2:09 am
Points :4551
Contact:

Re: The ALgorithm of DES Sample Code

Post by kuafu » Fri Sep 11, 2020 7:01 am

andromeda92 wrote:
Fri Sep 11, 2020 6:57 am
I see the post but i can't select JAVACOS, it's grayed to CREF.
Select it. the it will show a combox . then select JAVACOS chippack.
well

andromeda92
Posts: 38
Joined: Tue Aug 18, 2020 6:08 pm
Points :320
Contact:

Re: The ALgorithm of DES Sample Code

Post by andromeda92 » Fri Sep 11, 2020 7:36 am

I can't select JAVACOS, the combobox is grayed, i can't select anything, see image.

https://imgur.com/Pa9Wttj

kuafu
Posts: 317
Joined: Thu Jun 25, 2015 2:09 am
Points :4551
Contact:

Re: The ALgorithm of DES Sample Code

Post by kuafu » Fri Sep 11, 2020 7:38 am

andromeda92 wrote:
Fri Sep 11, 2020 7:36 am
I can't select JAVACOS, the combobox is grayed, i can't select anything, see image.

https://imgur.com/Pa9Wttj
In debug config view
viewtopic.php?f=15&t=2252
No in properties view.
well

andromeda92
Posts: 38
Joined: Tue Aug 18, 2020 6:08 pm
Points :320
Contact:

Re: The ALgorithm of DES Sample Code

Post by andromeda92 » Fri Sep 11, 2020 7:43 am

ok it work now,
thank you very much.

andromeda92
Posts: 38
Joined: Tue Aug 18, 2020 6:08 pm
Points :320
Contact:

Re: The ALgorithm of DES Sample Code

Post by andromeda92 » Wed Sep 16, 2020 7:51 am

now it compil, but i can't download it to smart card J2A040 with pyApdutool:

Code: Select all

Download Cap begin...
Download Cap error: Download cap file failed. Send: 80 E8 00 00 F0 C4 82 03 02 01 00 15 DE CA FF ED 03 02 04 00 01 0A 4A 61 76 61 43 61 72 64 4F 53 00 02 00 25 00 15 00 25 00 0F 00 29 00 7A 00 17 01 A0 00 0A 00 3A 00 00 01 0D 05 DF 00 00 00 00 00 00 00 00 00 00 04 01 00 04 00 29 04 07 01 07 A0 00 00 00 62 01 01 07 01 07 A0 00 00 00 62 02 01 07 01 07 A0 00 00 00 62 01 02 00 01 07 A0 00 00 00 62 00 01 03 00 0F 01 0B 4A 61 76 61 43 61 72 64 4F 53 02 00 42 06 00 17 00 00 00 80 03 07 00 06 07 01 00 00 00 56 00 01 02 03 04 05 06 07 08 07 01 A0 00 04 10 18 8C 00 08 18 10 20 90 0B 87 00 18 10 08 90 0B 87 01 03 B6 02 18 08 03 8D 00 09 87 03 18 04 03 8D 00 09 87 04 18 05 11 00 80 03 8D 00 07 87 05 18 05 11 00 C0 03 8D 00 07 87 06 8D 00 0A 7A 05 30 8F 00 0B 3D 8C 00 0C 18 1D 04 41 18 1D, Recv: 6A 80.

Any idea ?
What is wrong ?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 5 guests

JavaCard OS : Disclaimer