| Relates :   | |
| Relates :   | 
AlgorithmParameterGenerator apg =
                  AlgorithmParameterGenerator.getInstance("DiffieHellman");
        apg.init(4096);
breaks for 4096 key length with following exception
java.security.InvalidParameterException: DH key size must be multiple of 64 and range from 512 to 1024 (inclusive), or 2048, 3072. The specific key size 4096 is not supported
spec mandates that every implementation of AlgorithmParameterGenerator   should support "DiffieHellman" with 4096 keylength
| 
 |