Page 2 of 2

Re: The ALgorithm of DES Sample Code

Posted: Fri Jul 24, 2020 3:23 pm
by newbietech
Thank you so much for the help :idea:

Re: The ALgorithm of DES Sample Code

Posted: Thu Sep 10, 2020 7:08 pm
by andromeda92
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.

Re: The ALgorithm of DES Sample Code

Posted: Fri Sep 11, 2020 6:35 am
by kuafu
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

Re: The ALgorithm of DES Sample Code

Posted: Fri Sep 11, 2020 6:57 am
by andromeda92
I see the post but i can't select JAVACOS, it's grayed to CREF.

Re: The ALgorithm of DES Sample Code

Posted: Fri Sep 11, 2020 7:01 am
by kuafu
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.

Re: The ALgorithm of DES Sample Code

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

https://imgur.com/Pa9Wttj

Re: The ALgorithm of DES Sample Code

Posted: Fri Sep 11, 2020 7:38 am
by kuafu
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.

Re: The ALgorithm of DES Sample Code

Posted: Fri Sep 11, 2020 7:43 am
by andromeda92
ok it work now,
thank you very much.

Re: The ALgorithm of DES Sample Code

Posted: Wed Sep 16, 2020 7:51 am
by andromeda92
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 ?