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.

Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

JCIDE related questions and answers.

Moderators: product, kuafu

kosullivan
Posts: 34
Joined: Mon Jun 29, 2015 9:03 pm
Points :616
Contact:

Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by kosullivan » Mon Mar 20, 2017 11:08 pm

Hi folks,

I've created a very simple applet that tests an RSA encrypt/decrypt of 128 random bytes using a generated KeyPair that uses a 2048-bit RSA key of type TYPE_RSA_CRT_PRIVATE.

http://pastebin.com/qRJYZgq7

I can load this onto a number of smartcards and execute without a problem, but when I run it in the JCIDE debugger I'm getting a CryptoException with reason ILLEGAL_VALUE on the decrypt operation.

Is it possible this is a bug in the debug JCRE, or is it a known unsupported protocol? If so is there a way around it so I can continue to use JCIDE to debug operations of this kind?

Thanks,
kos

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

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by UNKNwYSHSA » Wed Mar 22, 2017 2:51 am

Are you using lastest version of JCIDE?
This bug is mentioned before in this forum.
sense and simplicity

kosullivan
Posts: 34
Joined: Mon Jun 29, 2015 9:03 pm
Points :616
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by kosullivan » Wed Mar 22, 2017 10:28 am

I just downloaded the newest version to confirm and now it is not letting me register/logon!
I've put in my username/password (same one that works on the forum) and it says 'login error!'.

I've confirmed there is no firewall of any kind set up and all other internet access works. I've also attempted registering a new user but that cannot login either. Are the login servers down at the moment? Is there a way I can perform an off-line registration?

User avatar
JavaCardOS
Posts: 273
Joined: Thu Apr 30, 2015 12:00 pm
Points :2403
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by JavaCardOS » Thu Mar 23, 2017 1:43 am

kosullivan wrote:I just downloaded the newest version to confirm and now it is not letting me register/logon!
I've put in my username/password (same one that works on the forum) and it says 'login error!'.

I've confirmed there is no firewall of any kind set up and all other internet access works. I've also attempted registering a new user but that cannot login either. Are the login servers down at the moment? Is there a way I can perform an off-line registration?


Hi,

We were performing some maintenance on our server yesterday, so it may be not stable. But you can login JCIDE successfully now. Sorry for any inconvenience caused.

If you still can't login JCIDE, please let us know. Thanks.

Best regards,
JavaCardOS

kosullivan
Posts: 34
Joined: Mon Jun 29, 2015 9:03 pm
Points :616
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by kosullivan » Thu Mar 23, 2017 2:03 am

Registration issue is solved thanks.
Back to the topic issue, I have confirmed that the issue is still happening in the latest version (v1.0.5.39, which in JCIDE reports as 2.0.1.70).
If I switch the private key to TYPE_RSA_PRIVATE the code works perfectly. So it's specifically related to TYPE_RSA_CRT_PRIVATE.

User avatar
JavaCardOS
Posts: 273
Joined: Thu Apr 30, 2015 12:00 pm
Points :2403
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by JavaCardOS » Thu Mar 23, 2017 2:28 am

Please send your question back to javacardos@gmail.com , they will send you the corresponding solution.

User avatar
JavaCardOS
Posts: 273
Joined: Thu Apr 30, 2015 12:00 pm
Points :2403
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by JavaCardOS » Thu Mar 23, 2017 5:07 am

Please follow the steps below to solve your issue.
1. Go to the directory X:\JavaCardKit\SDK\Tools\JCIDE\simulators
2. Replace the existing jcvm_A40CR.exe and jcvm_Default.exe with the corresponding file attached to this post.

After this, if you still have any question, please feel free to contact with us.
You do not have the required permissions to view the files attached to this post. Please login first.

kosullivan
Posts: 34
Joined: Mon Jun 29, 2015 9:03 pm
Points :616
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Post by kosullivan » Thu Mar 23, 2017 7:26 am

Fixed! Thank you so much for the incredibly quick response :)
This really is an amazing tool and such fantastic support!

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 25 guests

JavaCard OS : Disclaimer