Contact Us Forum Customers Area

DidiSoft Ltd.

Archive for the 'Java PGP' Category

Unknown KeySpec type ElGamalPrivateKeySpec

October 21st, 2011

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    [...]

unknown object in stream 9

September 26th, 2011

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 [...]

McAfee EBusiness Server 7.1 error -11391

August 15th, 2011

If you encrypt data for recipients that use McAfee EBusiness Server 7.1 you may receive complaints that they cannot decrypt the file. Below is a common log if the other party uses info level VERBOSE (with command line parameter –info VERBOSE or in the pgp.cfg file): Enter pass phrase: event 23: Decryption symmetric cipher used: [...]

Deploy OpenPGP Library for Java executable JAR

July 29th, 2011

If you wish to deploy a single executable JAR application that embeds DidiSoft OpenPGP Library for Java (and the BouncyCastle jars as well) the only solution is to embed (package) the three jars of the library within the final executable JAR application. The reason for this is that the BouncyCastle java security provider must be [...]

unknown object in stream SymmetricKeyEncrypted

July 26th, 2011

Sometimes if you try to decrypt an OpenPGP encrypted file you may encounter an IO exception with message “ unknown object in stream SymmetricKeyEncrypted“. After an investigation, we found that such an exception is thrown when we try to decrypt a password based encrypted file (also known as conventional encrypted or PBE) created with PGP version [...]

Sign files for PGP 6.5 and below

July 22nd, 2011

The default methods for OpenPGP signing and one pass sign and encrypt provided byDidiSoft OpenPGP Library for Java and OpenPGP Library for  .NET produce version 4 OpenPGP digital signatures (for more information, please refer to the OpenPGP specification RFC 4880 ). Unfortunately PGP version 6.5 and below recognize only version 3 digital signatures. In order [...]