Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class TlsDHUtils

java.lang.Object
  |
  +--org.bouncycastle.crypto.tls.TlsDHUtils

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class TlsDHUtils
extends java.lang.Object


Field Summary
static java.lang.Integer EXT_negotiated_ff_dhe_groups
          Deprecated.  
 
Constructor Summary
TlsDHUtils()
          Deprecated.  
 
Method Summary
static void addNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions, short[] dheGroups)
          Deprecated.  
static void addNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions, short dheGroup)
          Deprecated.  
static boolean areCompatibleParameters(DHParameters a, DHParameters b)
          Deprecated.  
static byte[] calculateDHBasicAgreement(DHPublicKeyParameters publicKey, DHPrivateKeyParameters privateKey)
          Deprecated.  
static boolean containsDHECipherSuites(int[] cipherSuites)
          Deprecated.  
static byte[] createNegotiatedDHEGroupsClientExtension(short[] dheGroups)
          Deprecated.  
static byte[] createNegotiatedDHEGroupsServerExtension(short dheGroup)
          Deprecated.  
static AsymmetricCipherKeyPair generateDHKeyPair(java.security.SecureRandom random, DHParameters dhParams)
          Deprecated.  
static DHPrivateKeyParameters generateEphemeralClientKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output)
          Deprecated.  
static DHPrivateKeyParameters generateEphemeralServerKeyExchange(java.security.SecureRandom random, DHParameters dhParams, java.io.OutputStream output)
          Deprecated.  
static short[] getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions)
          Deprecated.  
static short getNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions)
          Deprecated.  
static DHParameters getParametersForDHEGroup(short dheGroup)
          Deprecated.  
static boolean isDHECipherSuite(int cipherSuite)
          Deprecated.  
static java.math.BigInteger readDHParameter(java.io.InputStream input)
          Deprecated.  
static DHParameters readDHParameters(java.io.InputStream input)
          Deprecated.  
static short[] readNegotiatedDHEGroupsClientExtension(byte[] extensionData)
          Deprecated.  
static short readNegotiatedDHEGroupsServerExtension(byte[] extensionData)
          Deprecated.  
static DHParameters receiveDHParameters(TlsDHVerifier dhVerifier, java.io.InputStream input)
          Deprecated.  
static void writeDHParameter(java.math.BigInteger x, java.io.OutputStream output)
          Deprecated.  
static void writeDHParameters(DHParameters dhParameters, java.io.OutputStream output)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXT_negotiated_ff_dhe_groups

public static final java.lang.Integer EXT_negotiated_ff_dhe_groups
Deprecated. 
Constructor Detail

TlsDHUtils

public TlsDHUtils()
Deprecated. 
Method Detail

addNegotiatedDHEGroupsClientExtension

public static void addNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions,
                                                         short[] dheGroups)
                                                  throws java.io.IOException
Deprecated. 

addNegotiatedDHEGroupsServerExtension

public static void addNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions,
                                                         short dheGroup)
                                                  throws java.io.IOException
Deprecated. 

getNegotiatedDHEGroupsClientExtension

public static short[] getNegotiatedDHEGroupsClientExtension(java.util.Hashtable extensions)
                                                     throws java.io.IOException
Deprecated. 

getNegotiatedDHEGroupsServerExtension

public static short getNegotiatedDHEGroupsServerExtension(java.util.Hashtable extensions)
                                                   throws java.io.IOException
Deprecated. 

createNegotiatedDHEGroupsClientExtension

public static byte[] createNegotiatedDHEGroupsClientExtension(short[] dheGroups)
                                                       throws java.io.IOException
Deprecated. 

createNegotiatedDHEGroupsServerExtension

public static byte[] createNegotiatedDHEGroupsServerExtension(short dheGroup)
                                                       throws java.io.IOException
Deprecated. 

readNegotiatedDHEGroupsClientExtension

public static short[] readNegotiatedDHEGroupsClientExtension(byte[] extensionData)
                                                      throws java.io.IOException
Deprecated. 

readNegotiatedDHEGroupsServerExtension

public static short readNegotiatedDHEGroupsServerExtension(byte[] extensionData)
                                                    throws java.io.IOException
Deprecated. 

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. 

generateEphemeralServerKeyExchange

public static DHPrivateKeyParameters generateEphemeralServerKeyExchange(java.security.SecureRandom random,
                                                                        DHParameters dhParams,
                                                                        java.io.OutputStream output)
                                                                 throws java.io.IOException
Deprecated. 

readDHParameter

public static java.math.BigInteger readDHParameter(java.io.InputStream input)
                                            throws java.io.IOException
Deprecated. 

readDHParameters

public static DHParameters readDHParameters(java.io.InputStream input)
                                     throws java.io.IOException
Deprecated. 

receiveDHParameters

public static DHParameters receiveDHParameters(TlsDHVerifier dhVerifier,
                                               java.io.InputStream input)
                                        throws java.io.IOException
Deprecated. 

writeDHParameter

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

writeDHParameters

public static void writeDHParameters(DHParameters dhParameters,
                                     java.io.OutputStream output)
                              throws java.io.IOException
Deprecated. 

Bouncy Castle Cryptography Library 1.64