InvocationTargetException in WebMethods

If you are using DidiSoft OpenPGP Library for Java in a  Software AG WebMethods project you may encounter strange exceptions like: java.lang.reflect.InvocationTargetException:org.bouncycastle.util.Arrays.constantTimeAreEqual The reason for such exceptions is that WebMethods ships with an older version of the BouncyCastle jar files and a class loading mismatch occurs. The resolution is to remove the default BouncyCastle jar files […]

Continue reading


WPF and Silverlight support

Windows Presentation Framework (WPF) DidiSoft OpenPGP Library for .NET works without problems in WPF (Windows Presentation Framework) applications. The Library DLL files that you should reference are located under the /Bin folder located in the library installation folder. Silverlight For Silverlight applications you have to reference the DLL files located under the /Bin/Silverlight folder located in the library […]

Continue reading


64 bit support

DidiSoft OpenPGP Library for .NET is written completely in managed code and it runs with no modification on 32 bit and 64 bit platforms including Itanium. The library Intermediate language (IL) code is compiled to native code by the Microsoft .NET Framework JIT (Just in time) compiler at runtime. It will run as 64-bit on […]

Continue reading


Unknown object in stream 21

We have received recently an email from one of our customers that have encountered an exception with message “Unknown object in stream 21“. The scenario when this exception occurred was: she tried to encrypt with an ASCII armored public key received from a partner with different operating system. The reason for the above exception was […]

Continue reading


Unknown KeySpec type ElGamalPrivateKeySpec

Some customers that have deployed DidiSoft OpenPGP Library for Java as part of a web application, have noticed that the exception below is thrown when they perform a hot deploy on the application server: org.bouncycastle.openpgp.PGPException: Exception constructing key    at org.bouncycastle.openpgp.PGPSecretKey.extractPrivateKey(Unknown Source)    at org.bouncycastle.openpgp.PGPSecretKey.extractPrivateKey(Unknown Source) … Caused by: java.security.spec.InvalidKeySpecException: Unknown KeySpec type: org.bouncycastle.jce.spec.ElGamalPrivateKeySpec    […]

Continue reading


unknown object in stream 9

This exception is equivalent to unknown object in stream SymmetricKeyEncrypted. Usually occurs when we try to decrypt a conventionally OpenPGP encrypted file (also known as password encrypted or PBE) that was created with PGP 2.x or McAfee E-Business Server 7.x. This issue has been addressed in OpenPGP Library for Java version 2.5.6 and upper and […]

Continue reading