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.

3DES

JavaCard Applet Development Related Questions and Answers.
deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES

Post by deepanshsinghal » Fri Jun 02, 2017 2:12 am

UNKNwYSHSA wrote:00000000103E45556BE812C4422518A81A556ACEE8;


Used those commands

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: 3DES

Post by UNKNwYSHSA » Fri Jun 02, 2017 2:16 am

deepanshsinghal wrote:
UNKNwYSHSA wrote:00000000103E45556BE812C4422518A81A556ACEE8;


Used those commands


Yes.

Code: Select all

// Set key: 3E45556BE812C4422518A81A556ACEE8;
00000000103E45556BE812C4422518A81A556ACEE8;
// Generate AC with data: 00000000031400000000000003560420008000035616080200549E74AD22000000000000000000003F000210000001;
000100002F00000000031400000000000003560420008000035616080200549E74AD22000000000000000000003F000210000001;
sense and simplicity

deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES

Post by deepanshsinghal » Fri Jun 02, 2017 2:18 am

UNKNwYSHSA wrote:
deepanshsinghal wrote:
UNKNwYSHSA wrote:00000000103E45556BE812C4422518A81A556ACEE8;


Used those commands


Yes.

Code: Select all

// Set key: 3E45556BE812C4422518A81A556ACEE8;
00000000103E45556BE812C4422518A81A556ACEE8;
// Generate AC with data: 00000000031400000000000003560420008000035616080200549E74AD22000000000000000000003F000210000001;
000100002F00000000031400000000000003560420008000035616080200549E74AD22000000000000000000003F000210000001;


Code: Select all

>> /select 112233445500
>> 00 A4 04 00 06 11 22 33 44 55 00 00
<< 90 00

>> /send 00000000103E45556BE812C4422518A81A556ACEE8
>> 00 00 00 00 10 3E 45 55 6B E8 12 C4 42 25 18 A8 1A 55 6A CE E8
<< 90 00

>> /send 000100002F00000000031400000000000003560420008000035616080200549E74AD22000000000000000000003F000210000001
>> 00 01 00 00 2F 00 00 00 00 03 14 00 00 00 00 00 00 03 56 04 20 00 80 00 03 56 16 08 02 00 54 9E 74 AD 22 00 00 00 00 00 00 00 00 00 00 3F 00 02 10 00 00 01
<< 38 1E EE C6 76 4E 5D D8 90 00



As you can see output is way different from your output

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: 3DES

Post by UNKNwYSHSA » Fri Jun 02, 2017 2:23 am

Which simulator are you using?
sense and simplicity

deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES

Post by deepanshsinghal » Fri Jun 02, 2017 2:29 am

UNKNwYSHSA wrote:Which simulator are you using?

"Simulator:Default" i am using

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: 3DES

Post by UNKNwYSHSA » Fri Jun 02, 2017 2:34 am

What the version of your JCIDE?
This is mine:
You do not have the required permissions to view the files attached to this post. Please login first.
sense and simplicity

deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES

Post by deepanshsinghal » Fri Jun 02, 2017 2:45 am

UNKNwYSHSA wrote:What the version of your JCIDE?
This is mine:
You do not have the required permissions to view the files attached to this post. Please login first.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: 3DES

Post by UNKNwYSHSA » Fri Jun 02, 2017 2:54 am

What's happened!?
sense and simplicity

deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES

Post by deepanshsinghal » Fri Jun 02, 2017 2:55 am

UNKNwYSHSA wrote:What's happened!?

Same response
Don't know what the problem
That's my JC_Version:

But i tested with all the JC_versions output is same

Share me yours
You do not have the required permissions to view the files attached to this post. Please login first.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: 3DES

Post by UNKNwYSHSA » Fri Jun 02, 2017 2:58 am

deepanshsinghal wrote:
UNKNwYSHSA wrote:What the version of your JCIDE?
This is mine:


Are you using protocol T=0?

There's wrong with my applet source code.
The code for INS 0x00 shall be:

Code: Select all

      case (byte) 0x00:
         apdu.setIncomingAndReceive();
         key.setKey(buf, ISO7816.OFFSET_CDATA);
         break;

And all will be OK.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 43 guests

JavaCard OS : Disclaimer