- changed status to resolved
Illegal key size exception in JUnit tests with AES/CBC
Issue #59
resolved
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1024)
at javax.crypto.Cipher.implInit(Cipher.java:790)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1348)
at javax.crypto.Cipher.init(Cipher.java:1282)
at com.nimbusds.jose.crypto.AESCBC.createAESCBCCipher(AESCBC.java:79)
... 28 more
JVM: Oracle
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)
Comments (1)
-
reporter - Log in to comment
Solved by installing JCE Unlimited Strength JAR and policy.