Running this under Java 1.5 gives a stack trace of
java.security.NoSuchAlgorithmException: Cannot find any provider
Caused by: java.security.NoSuchAlgorithmException: can't support mode NONE
... 2 more
Note that the stack trace implies that it is indeed the bouncycastle
provider that is rejecting the mode. However, if I specify
Cipher encrypt2=Cipher.getInstance("RSA/NONE/PKCS1Padding", "BC");
Everything works just fine. It's a library that I don't have control of
which is making this call, so I can't just add the BC hint.
This library worked fine until I upgraded to 1.5. I would welcome any
hint that can tell me where I'm going wrong. Thanks in advance.