I am getting an java.lang.SecurityException: Unsupported keysize or algorithm parameters. What gives?
One reason may be that you’re using incorrect parameters for the algorithm, mode or cipher. Check the above-mentioned list of algorithms for what is available. Another reason may be that you don’t have the unlimited jurisdiction policy files installed; these can be downloaded from the same place you download the J2SE JDK.
Related Questions
- Why do I get "java.lang.SecurityException: Unsupported keysize or algorithm parameters" or "java.security.InvalidKeyException: Illegal key size" when I try using the Bouncy Castle Provider?
- I am getting an java.lang.SecurityException: Unsupported keysize or algorithm parameters. What gives?
- What are the genetic algorithm parameters, and how do I know how to choose them?