classpathx-crypto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-crypto] Problem/Bug in gnu-crypto-1.0.0


From: Stefan Prelle
Subject: [Classpathx-crypto] Problem/Bug in gnu-crypto-1.0.0
Date: Tue, 5 Nov 2002 23:29:27 +0100

Hi,

I just encountered the following exception while playing around
with gnu-crypto-1.0.0:

The gnu.crypto library and the JDK disagree on whether 
0xde09f1902cf484f232fee5d27262372d1c6072d7 is a probable prime or not.
While this library claims it is, the JDK claims the opposite.
Please contact the maintainer of this library, and provide this message for 
further investigation. TIA
Exception in thread "main" java.lang.ArithmeticException: Negative exponent
        at java.math.BigInteger.pow(BigInteger.java:1257)
        at 
gnu.crypto.sig.dss.DSSKeyPairGenerator.generateParameters(DSSKeyPairGenerator.java:362)
        at 
gnu.crypto.sig.dss.DSSKeyPairGenerator.generate(DSSKeyPairGenerator.java:245)

The conflicting source code was:
      public LocalPeerGenerator() throws NoSuchAlgorithmException {
        IKeyPairGenerator keyGen = 
KeyPairGeneratorFactory.getInstance(KeyPairGeneratorFactory.DSS_KPG);
        KeyPair pair = keyGen.generate();
      }


Am I too stupid to use the library or did I find a bug?

Bye,
  Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]