javabouncycastleibm-jdk

Exceptions while integrating : java.security.InvalidKeyException: Illegal key size


I am integrating payment gateway integration and I do have bouncy castle jar deployed with an entry in java.security file security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider

At run time, I do have the below mentioned exceptions; how can I resolve the issue? java version is 1.7.0 (IBM J9 VM)

java.security.InvalidKeyException: Illegal key size
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.a(Unknown Source)
    at javax.crypto.Cipher.init(Unknown Source)
    at javax.crypto.Cipher.init(Unknown Source)

Solution

  • You may try the unlimited strength key policy files here