Tag Archives: Diffie-Hellman

A few other ways to configure DH parameters

I initialized the key pair generator by specifying the modulus p and the generator g in my last post. There are a few other ways. Javadoc for KeyPairGenerator class says in its preface, There are two ways to generate a … Continue reading

Posted in Cryptography, Java | Tagged , | Leave a comment

Diffie-Hellman 2048-bit MODP now supported by JDK 8

Diffie-Hellman key pair generator provided by Sun’s JCE provider had been rejecting prime number modulus whose size is more than 1024 bits. In JDK 7 and earlier, the size must be a multiple of 64 that ranges from 512 and … Continue reading

Posted in Cryptography, Java | Tagged , | Leave a comment