JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
-
- Posts: 34
- Joined: Mon Jun 29, 2015 9:03 pm
- Points :624
- Contact:
Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
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
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
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Are you using lastest version of JCIDE?
This bug is mentioned before in this forum.
This bug is mentioned before in this forum.
sense and simplicity
-
- Posts: 34
- Joined: Mon Jun 29, 2015 9:03 pm
- Points :624
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
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?
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?
- JavaCardOS
- Posts: 273
- Joined: Thu Apr 30, 2015 12:00 pm
- Points :2405
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
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
-
- Posts: 34
- Joined: Mon Jun 29, 2015 9:03 pm
- Points :624
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
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.
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.
- JavaCardOS
- Posts: 273
- Joined: Thu Apr 30, 2015 12:00 pm
- Points :2405
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Please send your question back to javacardos@gmail.com , they will send you the corresponding solution.
- JavaCardOS
- Posts: 273
- Joined: Thu Apr 30, 2015 12:00 pm
- Points :2405
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
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.
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.
-
- Posts: 34
- Joined: Mon Jun 29, 2015 9:03 pm
- Points :624
- Contact:
Re: Support for TYPE_RSA_CRT_PRIVATE in JCIDE debugger
Fixed! Thank you so much for the incredibly quick response 
This really is an amazing tool and such fantastic support!

This really is an amazing tool and such fantastic support!
Who is online
Users browsing this forum: No registered users and 28 guests