Problem with DSAElGamalKeyRingGenerator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem with DSAElGamalKeyRingGenerator

Christoph Kutzinski
Hi,

I cannot generate a Keypair using DSAElGamalKeyRingGenerator.

C:\>C:\Compiler\jdk1.5\bin\java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

C:\>C:\Compiler\jdk1.5\bin\java -classpath
bcpg-jdk15.jar;bcprov-jdk15.jar
org.bouncycastle.openpgp.examples.DSAElGamalKeyRingGenerator -a Ich
fdsasdfdasdfa
Exception in thread "main" org.bouncycastle.openpgp.PGPException:
Exception encrypting key
        at
org.bouncycastle.openpgp.PGPSecretKey.<init>(PGPSecretKey.java:268)
        at
org.bouncycastle.openpgp.PGPSecretKey.<init>(PGPSecretKey.java:286)
        at
org.bouncycastle.openpgp.PGPKeyRingGenerator.<init>(PGPKeyRingGenerator.java:66)
        at
org.bouncycastle.openpgp.examples.DSAElGamalKeyRingGenerator.exportKeyPair(DSAElGamalKeyRingGenerator.java:59)
        at
org.bouncycastle.openpgp.examples.DSAElGamalKeyRingGenerator.main(DSAElGamalKeyRingGenerator.java:124)


Am I doing anything wrong?

thanx in advance,
Christoph