Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

JCIDE related questions and answers.

Moderators: product, kuafu

kosullivan
Posts: 25
Joined: Mon Jun 29, 2015 9:03 pm
Points: 354
Contact:

Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 628
Joined: Thu May 21, 2015 4:05 am
Points: 2975
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 25
Joined: Mon Jun 29, 2015 9:03 pm
Points: 354
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 257
Joined: Thu Apr 30, 2015 12:00 pm
Points: 2253
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 25
Joined: Mon Jun 29, 2015 9:03 pm
Points: 354
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 257
Joined: Thu Apr 30, 2015 12:00 pm
Points: 2253
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 257
Joined: Thu Apr 30, 2015 12:00 pm
Points: 2253
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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: 25
Joined: Mon Jun 29, 2015 9:03 pm
Points: 354
Contact:

Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger

Postby 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!


Return to “Questions & Answers”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer