Dear Kervin,
The problem comes from the Unlimited Java Cryptography Extensions
(JCE) files.
In order to verify this, we have switched our Unlimited files with the
default ones and the exception is:
--------------------
Exception in thread "main" org.bouncycastle.openpgp.PGPException:
exception encrypting session key
...
Caused by: java.security.InvalidKeyException: Illegal key size or
default parameters
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at org.bouncycastle.openpgp.PGPEncryptedDataGenerator
$PubMethod.addSessionInfo(Unknown Source)
... 6 more
-----------------
Please verify that you have replaced the files local_policy.jar and
US_export_policy.jar with the versions from the Unlimited JCE ZIP
package. Detailed instructions on the correct place where the files
are located and must be replaced can be found in section
"Installation" in the README.txt file that is included in the
Unlimited JCE ZIP package.
This is a little cumbersome task and a lot of our customers have
problems with it.
In short you have two cases:
1) Only JRE is installed on the target machine
then the files should be replaced in <jre-home>/lib/security
2) Both JRE and JDK are installed on the computer
then the files should be replaced in <jdk-home>/jre/lib/security
The above instructions assume that you have only one version of Java
on the target machine.
If you have more than one version you have to know for sure which one
is the one that runs your application.
Note that test applications started from the Eclipse IDE are run
through the JRE.
Please send us what is the operating system and what JRE's and JDK's
are installed on that machine,
at
sup...@didisoft.com so we can assist you further.
Kind Regards,
Peter Kalef
DidiSoft Support