Not able to create Cipher object

Hi I am trying to create a cipher object in SunJCE version 1.5, but i am getting the following error when I am trying " Cannot find any provider supporting RSA/None/OAEPWithSha1AndMGF1Padding"Cipher cipher = Cipher.getInstance("RSA/None/OAEPWithSHA1AndMGF1Padding");
[280 byte] By [buddy_boya] at [2007-11-27 8:22:49]
# 1
I understand that this algorithm is not available in SunJCE provider but is available in BouncyCastle provider BUT I have not verified this. It must be worth 30 minutes of your time in experimentation.
sabre150a at 2007-7-12 20:11:37 > top of Java-index,Security,Cryptography...
# 2

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");

buddy_boya at 2007-7-12 20:11:37 > top of Java-index,Security,Cryptography...
# 3

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.

ejpa at 2007-7-12 20:11:37 > top of Java-index,Security,Cryptography...