Thanks for reply.
When I am creating the following cipher object it is running successfully.
Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding");
I have to do RSA OAEP encryption which of the cipher object should be used.
Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding");(runing in SunJCE version 5.0)
Cipher.getInstance("RSA/None/OAEPWithSHA1AndMGF1Padding");
Please don't start a new thread for the same topic.
You have one cipher suite that works and another that doesn't. At present you don't even have a choice, you have to use the one that works. I would always prefer a cipher that does block chaining to one that doesn't. If that isn't a consideration, go get the Bouncy Castle provider.
You've been told this before.