Package org.bouncycastle.crypto.tls
Class TlsDHUtils
- java.lang.Object
-
- org.bouncycastle.crypto.tls.TlsDHUtils
-
public class TlsDHUtils extends java.lang.ObjectDeprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerEXT_negotiated_ff_dhe_groupsDeprecated.
-
Constructor Summary
Constructors Constructor Description TlsDHUtils()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidaddNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions, short[] dheGroups)Deprecated.static voidaddNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions, short dheGroup)Deprecated.static booleanareCompatibleParameters(DHParameters a, DHParameters b)Deprecated.static byte[]calculateDHBasicAgreement(DHPublicKeyParameters publicKey, DHPrivateKeyParameters privateKey)Deprecated.static booleancontainsDHECipherSuites(int[] cipherSuites)Deprecated.static byte[]createNegotiatedDHEGroupsClientExtension(short[] dheGroups)Deprecated.static byte[]createNegotiatedDHEGroupsServerExtension(short dheGroup)Deprecated.static AsymmetricCipherKeyPairgenerateDHKeyPair(java.security.SecureRandom random, DHParameters dhParams)Deprecated.static DHPrivateKeyParametersgenerateEphemeralClientKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output)Deprecated.static DHPrivateKeyParametersgenerateEphemeralServerKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output)Deprecated.static short[]getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions)Deprecated.static shortgetNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions)Deprecated.static DHParametersgetParametersForDHEGroup(short dheGroup)Deprecated.static booleanisDHECipherSuite(int cipherSuite)Deprecated.static java.math.BigIntegerreadDHParameter(java.io.InputStream input)Deprecated.static DHParametersreadDHParameters(java.io.InputStream input)Deprecated.static short[]readNegotiatedDHEGroupsClientExtension(byte[] extensionData)Deprecated.static shortreadNegotiatedDHEGroupsServerExtension(byte[] extensionData)Deprecated.static DHParametersreceiveDHParameters(TlsDHVerifier dhVerifier, java.io.InputStream input)Deprecated.static voidwriteDHParameter(java.math.BigInteger x, java.io.OutputStream output)Deprecated.static voidwriteDHParameters(DHParameters dhParameters, java.io.OutputStream output)Deprecated.
-
-
-
Method Detail
-
addNegotiatedDHEGroupsClientExtension
public static void addNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions, short[] dheGroups) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
addNegotiatedDHEGroupsServerExtension
public static void addNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions, short dheGroup) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getNegotiatedDHEGroupsClientExtension
public static short[] getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getNegotiatedDHEGroupsServerExtension
public static short getNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
createNegotiatedDHEGroupsClientExtension
public static byte[] createNegotiatedDHEGroupsClientExtension(short[] dheGroups) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
createNegotiatedDHEGroupsServerExtension
public static byte[] createNegotiatedDHEGroupsServerExtension(short dheGroup) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
readNegotiatedDHEGroupsClientExtension
public static short[] readNegotiatedDHEGroupsClientExtension(byte[] extensionData) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
readNegotiatedDHEGroupsServerExtension
public static short readNegotiatedDHEGroupsServerExtension(byte[] extensionData) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getParametersForDHEGroup
public static DHParameters getParametersForDHEGroup(short dheGroup)
Deprecated.
-
containsDHECipherSuites
public static boolean containsDHECipherSuites(int[] cipherSuites)
Deprecated.
-
isDHECipherSuite
public static boolean isDHECipherSuite(int cipherSuite)
Deprecated.
-
areCompatibleParameters
public static boolean areCompatibleParameters(DHParameters a, DHParameters b)
Deprecated.
-
calculateDHBasicAgreement
public static byte[] calculateDHBasicAgreement(DHPublicKeyParameters publicKey, DHPrivateKeyParameters privateKey)
Deprecated.
-
generateDHKeyPair
public static AsymmetricCipherKeyPair generateDHKeyPair(java.security.SecureRandom random, DHParameters dhParams)
Deprecated.
-
generateEphemeralClientKeyExchange
public static DHPrivateKeyParameters generateEphemeralClientKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
generateEphemeralServerKeyExchange
public static DHPrivateKeyParameters generateEphemeralServerKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
readDHParameter
public static java.math.BigInteger readDHParameter(java.io.InputStream input) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
readDHParameters
public static DHParameters readDHParameters(java.io.InputStream input) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
receiveDHParameters
public static DHParameters receiveDHParameters(TlsDHVerifier dhVerifier, java.io.InputStream input) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
writeDHParameter
public static void writeDHParameter(java.math.BigInteger x, java.io.OutputStream output) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
writeDHParameters
public static void writeDHParameters(DHParameters dhParameters, java.io.OutputStream output) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-