BouncyCastle: java.lang.SecurityException: Unsupported keysize or algorithm

Hi All

I am getting this exception preparing to decrypt a file that is AES encrypted by the JCE. I am using bouncycastle do decrypt it.

java.lang.SecurityException: Unsupported keysize or algorithm parameters

Following the bc docs I installed the unlimited strength policy file jars but I am still getting the error. Is this error thrown if something else is wrong? or is it only thrown when the the install does not offer unlimited strength. BTW this is a 128 aek key.

The code thorws on the init:

Cipher cipher = Cipher.getInstance("AES");

cipher.init(Cipher.DECRYPT_MODE, key);

Thanks for any pointers.

[655 byte] By [db0101a] at [2007-10-3 2:44:45]
# 1
If you are using Windows then make sure you install the "unlimited strength policy file jars" in the JRE lib/security directory (normally something like "Program Files/Java") as well as the JDK/jre/lib/security directory.
sabre150a at 2007-7-14 20:33:16 > top of Java-index,Security,Cryptography...