Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8172869

4096 is not supported yet for the DH Parameter Generator

XMLWordPrintable

    • b155
    • Not verified

        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

              xuelei Xuelei Fan
              bnallakaluva Bharath Nallakaluva (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: