Class TlsDHUtils


  • public class TlsDHUtils
    extends java.lang.Object
    • Constructor Detail

      • TlsDHUtils

        public TlsDHUtils()
    • Method Detail

      • createNamedDHConfig

        public static TlsDHConfig createNamedDHConfig​(TlsContext context,
                                                      int namedGroup)
      • getNamedDHGroup

        public static DHGroup getNamedDHGroup​(int namedGroup)
      • getMinimumFiniteFieldBits

        public static int getMinimumFiniteFieldBits​(int cipherSuite)
      • isDHCipherSuite

        public static boolean isDHCipherSuite​(int cipherSuite)
      • getNamedGroupForDHParameters

        public static int getNamedGroupForDHParameters​(java.math.BigInteger p,
                                                       java.math.BigInteger g)
      • getStandardGroupForDHParameters

        public static DHGroup getStandardGroupForDHParameters​(java.math.BigInteger p,
                                                              java.math.BigInteger g)
      • receiveDHConfig

        public static TlsDHConfig receiveDHConfig​(TlsContext context,
                                                  TlsDHGroupVerifier dhGroupVerifier,
                                                  java.io.InputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readDHParameter

        public static java.math.BigInteger readDHParameter​(java.io.InputStream input)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeDHConfig

        public static void writeDHConfig​(TlsDHConfig dhConfig,
                                         java.io.OutputStream output)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • writeDHParameter

        public static void writeDHParameter​(java.math.BigInteger x,
                                            java.io.OutputStream output)
                                     throws java.io.IOException
        Throws:
        java.io.IOException