security files

Erik Poupaert erik.poupaert@freestyler-toolkit.org
Fri Sep 26 13:50:00 GMT 2003


Hi Mark

> You can also install security providers by doing the following at the
> start of your program:
> 
>     java.security.Provider crypto = new gnu.crypto.jce.GnuCrypto();
>     java.security.Security.addProvider(crypto);

Is it anyhow possible that GnuCrypto.java does not register keypair stuff for
Diffie-Hellman? In lines 115-120 I can admire the registration of keypair stuff for
DSS and RSA, but not for DH?

You know about the issues that led from SSH1 to SSH2, at the time, with the insidious
patent problems surrounding RSA (now apparently expired to some but further (by me)
unknown extent). The jsch guys have seemingly chosen to implement DH(in SSH2 fashion)
for public key stuff.

I can see some support for DH:

$ find | grep "DH"
./jce/javax/crypto/interfaces/DHPrivateKey.java
./jce/javax/crypto/interfaces/DHKey.java
./jce/javax/crypto/interfaces/DHPublicKey.java
./jce/javax/crypto/spec/DHParameterSpec.java
./jce/javax/crypto/spec/DHGenParameterSpec.java
./jce/javax/crypto/spec/DHPrivateKeySpec.java
./jce/javax/crypto/spec/DHPublicKeySpec.java

But I guess it's not anywhere enough to support jsch. I need more registration!

Do you have any idea how I can go about it?

Erik



More information about the Java mailing list