diffie-hellman problem

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

 



hello Christian,

On Tuesday 27 June 2006 08:25, Christian Thalinger wrote:
> Hi!
>
> I'm trying to run an application which uses a lot of crypto stuff and
> I ran into some problems.  A friend of mine told me to try some
> tests, like this one:
>
> http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.ht
>ml#DH2Ex
>
> And actually it does not work with GNU Classpath. I get:
>
> $ cacao DHKeyAgreement2
> Using SKIP Diffie-Hellman parameters
> ALICE: Generate DH keypair ...
> ALICE: Initialization ...
> java.security.spec.InvalidKeySpecException
>    at
> gnu.javax.crypto.jce.sig.DHKeyFactory.engineGeneratePublic(DHKeyFacto
>ry.java:94) at
> java.security.KeyFactory.generatePublic(KeyFactory.java:219) at
> DHKeyAgreement2.run(DHKeyAgreement2.java:107)
>    at DHKeyAgreement2.main(DHKeyAgreement2.java:54)
> Caused by: java.lang.NumberFormatException
>    at java.math.BigInteger.<init>(BigInteger.java:156)
>    at
> gnu.java.security.der.DERReader.readUniversal(DERReader.java:226) at
> gnu.java.security.der.DERReader.read(DERReader.java:165) at
> gnu.javax.crypto.key.dh.DHKeyPairX509Codec.decodePublicKey(DHKeyPairX
>509Codec.java:212) at
> gnu.javax.crypto.jce.sig.DHKeyFactory.engineGeneratePublic(DHKeyFacto
>ry.java:89) ...3 more
>
> Any ideas?

i'll have a closer look at it and will let you know.

btw.  i presume you're using the CVS HEAD?


cheers;
rsn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath/attachments/20060627/d3178466/attachment.pgp

[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux