This content has been marked as final. Show 4 replies
It looks like you do not have the BouncyCastle provider installed correctly.
See the "Installing additional security providers" and "Installing the Sun Unlimited Strength Jurisdiction Policy Files" sections of the encryption TechNote at http://www.adobe.com/go/e546373d .
The most current BouncyCastle version for Java 1.4 is v1.34 in the file bcprov-jdk14-134.jar.
Thanks Tom, but we have followed those instructions carefully, added the bouncy jar to the ext directory, updated the jce policy jars to unlimited encryption from Sun, restarted / rebooted, made looked for other possible runtime environments being used... same problem. Has anyone successfully used the latest bouncy jar, bcprov-jdk14-134.jar? Thanks.
Did you modify the java.security file? You might also try the Security.getProviders() java function to list the providers java is seeing.
I can use your test code with BC 1.34 running CFMX 7.0.2 (build 142559 ) on Windows2000.
String " test", Password: " secret", Algorithm: " IDEA", Encoding: " HEX"
gives the result: " IDEA Encrypted: EF5083E0D33E8FFB".
re: Kabuto2's suggestion, the attached code should show whether the BouncyCastle provider is correctly loaded. The expected results are:
SUN version 1.42
SunJSSE version 1.42
SunRsaSign version 1.42
SunJCE version 1.42
SunJGSS version 1.0
BC version 1.34