Package org.bouncycastle.tls
Class TlsDHUtils
java.lang.Object
org.bouncycastle.tls.TlsDHUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TlsDHConfig
createNamedDHConfig
(TlsContext context, int namedGroup) static DHGroup
getDHGroup
(TlsDHConfig dhConfig) static int
getMinimumFiniteFieldBits
(int cipherSuite) static DHGroup
getNamedDHGroup
(int namedGroup) static int
static DHGroup
static boolean
isDHCipherSuite
(int cipherSuite) static BigInteger
readDHParameter
(InputStream input) static TlsDHConfig
receiveDHConfig
(TlsContext context, TlsDHGroupVerifier dhGroupVerifier, InputStream input) static void
writeDHConfig
(TlsDHConfig dhConfig, OutputStream output) static void
writeDHParameter
(BigInteger x, OutputStream output)
-
Constructor Details
-
TlsDHUtils
public TlsDHUtils()
-
-
Method Details
-
createNamedDHConfig
-
getDHGroup
-
getNamedDHGroup
-
getMinimumFiniteFieldBits
public static int getMinimumFiniteFieldBits(int cipherSuite) -
isDHCipherSuite
public static boolean isDHCipherSuite(int cipherSuite) -
getNamedGroupForDHParameters
-
getStandardGroupForDHParameters
-
receiveDHConfig
public static TlsDHConfig receiveDHConfig(TlsContext context, TlsDHGroupVerifier dhGroupVerifier, InputStream input) throws IOException - Throws:
IOException
-
readDHParameter
- Throws:
IOException
-
writeDHConfig
- Throws:
IOException
-
writeDHParameter
- Throws:
IOException
-