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.

