Package org.bouncycastle.tls
Class TlsDHUtils
java.lang.Object
org.bouncycastle.tls.TlsDHUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TlsDHConfigcreateNamedDHConfig(TlsContext context, int namedGroup) static DHGroupgetDHGroup(TlsDHConfig dhConfig) static intgetMinimumFiniteFieldBits(int cipherSuite) static DHGroupgetNamedDHGroup(int namedGroup) static intstatic DHGroupstatic booleanisDHCipherSuite(int cipherSuite) static BigIntegerreadDHParameter(InputStream input) static TlsDHConfigreceiveDHConfig(TlsContext context, TlsDHGroupVerifier dhGroupVerifier, InputStream input) static voidwriteDHConfig(TlsDHConfig dhConfig, OutputStream output) static voidwriteDHParameter(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
-