public class TlsDHUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
EXT_negotiated_ff_dhe_groups |
Constructor and Description |
---|
TlsDHUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions,
short[] dheGroups) |
static void |
addNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions,
short dheGroup) |
static boolean |
containsDHCipherSuites(int[] cipherSuites) |
static byte[] |
createNegotiatedDHEGroupsClientExtension(short[] dheGroups) |
static byte[] |
createNegotiatedDHEGroupsServerExtension(short dheGroup) |
static short[] |
getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions) |
static short |
getNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions) |
static DHGroup |
getParametersForDHEGroup(short dheGroup) |
static boolean |
isDHCipherSuite(int cipherSuite) |
static TlsDHConfig |
readDHConfig(java.io.InputStream input) |
static java.math.BigInteger |
readDHParameter(java.io.InputStream input) |
static short[] |
readNegotiatedDHEGroupsClientExtension(byte[] extensionData) |
static short |
readNegotiatedDHEGroupsServerExtension(byte[] extensionData) |
static TlsDHConfig |
receiveDHConfig(TlsDHConfigVerifier dhConfigVerifier,
java.io.InputStream input) |
static TlsDHConfig |
selectDHConfig(DHGroup DHGroup) |
static void |
validateDHPublicValues(java.math.BigInteger y,
java.math.BigInteger p) |
static void |
writeDHConfig(TlsDHConfig dhConfig,
java.io.OutputStream output) |
static void |
writeDHParameter(java.math.BigInteger x,
java.io.OutputStream output) |
public static final java.lang.Integer EXT_negotiated_ff_dhe_groups
public static void addNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions, short[] dheGroups) throws java.io.IOException
java.io.IOException
public static void addNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions, short dheGroup) throws java.io.IOException
java.io.IOException
public static short[] getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions) throws java.io.IOException
java.io.IOException
public static short getNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions) throws java.io.IOException
java.io.IOException
public static byte[] createNegotiatedDHEGroupsClientExtension(short[] dheGroups) throws java.io.IOException
java.io.IOException
public static byte[] createNegotiatedDHEGroupsServerExtension(short dheGroup) throws java.io.IOException
java.io.IOException
public static short[] readNegotiatedDHEGroupsClientExtension(byte[] extensionData) throws java.io.IOException
java.io.IOException
public static short readNegotiatedDHEGroupsServerExtension(byte[] extensionData) throws java.io.IOException
java.io.IOException
public static DHGroup getParametersForDHEGroup(short dheGroup)
public static boolean containsDHCipherSuites(int[] cipherSuites)
public static boolean isDHCipherSuite(int cipherSuite)
public static TlsDHConfig readDHConfig(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TlsDHConfig receiveDHConfig(TlsDHConfigVerifier dhConfigVerifier, java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static java.math.BigInteger readDHParameter(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TlsDHConfig selectDHConfig(DHGroup DHGroup)
public static void validateDHPublicValues(java.math.BigInteger y, java.math.BigInteger p) throws java.io.IOException
java.io.IOException
public static void writeDHConfig(TlsDHConfig dhConfig, java.io.OutputStream output) throws java.io.IOException
java.io.IOException
public static void writeDHParameter(java.math.BigInteger x, java.io.OutputStream output) throws java.io.IOException
java.io.IOException