Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class TlsECCUtils

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

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

public class TlsECCUtils
extends java.lang.Object


Field Summary
static java.lang.Integer EXT_ec_point_formats
          Deprecated.  
static java.lang.Integer EXT_elliptic_curves
          Deprecated.  
 
Constructor Summary
TlsECCUtils()
          Deprecated.  
 
Method Summary
static void addSupportedEllipticCurvesExtension(java.util.Hashtable extensions, int[] namedCurves)
          Deprecated.  
static void addSupportedPointFormatsExtension(java.util.Hashtable extensions, short[] ecPointFormats)
          Deprecated.  
static boolean areOnSameCurve(ECDomainParameters a, ECDomainParameters b)
          Deprecated.  
static byte[] calculateECDHBasicAgreement(ECPublicKeyParameters publicKey, ECPrivateKeyParameters privateKey)
          Deprecated.  
static boolean containsECCCipherSuites(int[] cipherSuites)
          Deprecated.  
static byte[] createSupportedEllipticCurvesExtension(int[] namedCurves)
          Deprecated.  
static byte[] createSupportedPointFormatsExtension(short[] ecPointFormats)
          Deprecated.  
static java.math.BigInteger deserializeECFieldElement(int fieldSize, byte[] encoding)
          Deprecated.  
static ECPoint deserializeECPoint(short[] ecPointFormats, ECCurve curve, byte[] encoding)
          Deprecated.  
static ECPublicKeyParameters deserializeECPublicKey(short[] ecPointFormats, ECDomainParameters curve_params, byte[] encoding)
          Deprecated.  
static AsymmetricCipherKeyPair generateECKeyPair(java.security.SecureRandom random, ECDomainParameters ecParams)
          Deprecated.  
static ECPrivateKeyParameters generateEphemeralClientKeyExchange(java.security.SecureRandom random, short[] ecPointFormats, ECDomainParameters ecParams, java.io.OutputStream output)
          Deprecated.  
static java.lang.String getNameOfNamedCurve(int namedCurve)
          Deprecated.  
static ECDomainParameters getParametersForNamedCurve(int namedCurve)
          Deprecated.  
static int[] getSupportedEllipticCurvesExtension(java.util.Hashtable extensions)
          Deprecated.  
static short[] getSupportedPointFormatsExtension(java.util.Hashtable extensions)
          Deprecated.  
static boolean hasAnySupportedNamedCurves()
          Deprecated.  
static boolean isCompressionPreferred(short[] ecPointFormats, short compressionFormat)
          Deprecated.  
static boolean isECCCipherSuite(int cipherSuite)
          Deprecated.  
static boolean isSupportedNamedCurve(int namedCurve)
          Deprecated.  
static int readECExponent(int fieldSize, java.io.InputStream input)
          Deprecated.  
static java.math.BigInteger readECFieldElement(int fieldSize, java.io.InputStream input)
          Deprecated.  
static java.math.BigInteger readECParameter(java.io.InputStream input)
          Deprecated.  
static ECDomainParameters readECParameters(int[] namedCurves, short[] ecPointFormats, java.io.InputStream input)
          Deprecated.  
static int[] readSupportedEllipticCurvesExtension(byte[] extensionData)
          Deprecated.  
static short[] readSupportedPointFormatsExtension(byte[] extensionData)
          Deprecated.  
static byte[] serializeECFieldElement(int fieldSize, java.math.BigInteger x)
          Deprecated.  
static byte[] serializeECPoint(short[] ecPointFormats, ECPoint point)
          Deprecated.  
static byte[] serializeECPublicKey(short[] ecPointFormats, ECPublicKeyParameters keyParameters)
          Deprecated.  
static ECPublicKeyParameters validateECPublicKey(ECPublicKeyParameters key)
          Deprecated.  
static void writeECExponent(int k, java.io.OutputStream output)
          Deprecated.  
static void writeECFieldElement(ECFieldElement x, java.io.OutputStream output)
          Deprecated.  
static void writeECFieldElement(int fieldSize, java.math.BigInteger x, java.io.OutputStream output)
          Deprecated.  
static void writeECParameter(java.math.BigInteger x, java.io.OutputStream output)
          Deprecated.  
static void writeECPoint(short[] ecPointFormats, ECPoint point, java.io.OutputStream output)
          Deprecated.  
static void writeExplicitECParameters(short[] ecPointFormats, ECDomainParameters ecParameters, java.io.OutputStream output)
          Deprecated.  
static void writeNamedECParameters(int namedCurve, 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_elliptic_curves

public static final java.lang.Integer EXT_elliptic_curves
Deprecated. 

EXT_ec_point_formats

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

TlsECCUtils

public TlsECCUtils()
Deprecated. 
Method Detail

addSupportedEllipticCurvesExtension

public static void addSupportedEllipticCurvesExtension(java.util.Hashtable extensions,
                                                       int[] namedCurves)
                                                throws java.io.IOException
Deprecated. 

addSupportedPointFormatsExtension

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

getSupportedEllipticCurvesExtension

public static int[] getSupportedEllipticCurvesExtension(java.util.Hashtable extensions)
                                                 throws java.io.IOException
Deprecated. 

getSupportedPointFormatsExtension

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

createSupportedEllipticCurvesExtension

public static byte[] createSupportedEllipticCurvesExtension(int[] namedCurves)
                                                     throws java.io.IOException
Deprecated. 

createSupportedPointFormatsExtension

public static byte[] createSupportedPointFormatsExtension(short[] ecPointFormats)
                                                   throws java.io.IOException
Deprecated. 

readSupportedEllipticCurvesExtension

public static int[] readSupportedEllipticCurvesExtension(byte[] extensionData)
                                                  throws java.io.IOException
Deprecated. 

readSupportedPointFormatsExtension

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

getNameOfNamedCurve

public static java.lang.String getNameOfNamedCurve(int namedCurve)
Deprecated. 

getParametersForNamedCurve

public static ECDomainParameters getParametersForNamedCurve(int namedCurve)
Deprecated. 

hasAnySupportedNamedCurves

public static boolean hasAnySupportedNamedCurves()
Deprecated. 

containsECCCipherSuites

public static boolean containsECCCipherSuites(int[] cipherSuites)
Deprecated. 

isECCCipherSuite

public static boolean isECCCipherSuite(int cipherSuite)
Deprecated. 

areOnSameCurve

public static boolean areOnSameCurve(ECDomainParameters a,
                                     ECDomainParameters b)
Deprecated. 

isSupportedNamedCurve

public static boolean isSupportedNamedCurve(int namedCurve)
Deprecated. 

isCompressionPreferred

public static boolean isCompressionPreferred(short[] ecPointFormats,
                                             short compressionFormat)
Deprecated. 

serializeECFieldElement

public static byte[] serializeECFieldElement(int fieldSize,
                                             java.math.BigInteger x)
                                      throws java.io.IOException
Deprecated. 

serializeECPoint

public static byte[] serializeECPoint(short[] ecPointFormats,
                                      ECPoint point)
                               throws java.io.IOException
Deprecated. 

serializeECPublicKey

public static byte[] serializeECPublicKey(short[] ecPointFormats,
                                          ECPublicKeyParameters keyParameters)
                                   throws java.io.IOException
Deprecated. 

deserializeECFieldElement

public static java.math.BigInteger deserializeECFieldElement(int fieldSize,
                                                             byte[] encoding)
                                                      throws java.io.IOException
Deprecated. 

deserializeECPoint

public static ECPoint deserializeECPoint(short[] ecPointFormats,
                                         ECCurve curve,
                                         byte[] encoding)
                                  throws java.io.IOException
Deprecated. 

deserializeECPublicKey

public static ECPublicKeyParameters deserializeECPublicKey(short[] ecPointFormats,
                                                           ECDomainParameters curve_params,
                                                           byte[] encoding)
                                                    throws java.io.IOException
Deprecated. 

calculateECDHBasicAgreement

public static byte[] calculateECDHBasicAgreement(ECPublicKeyParameters publicKey,
                                                 ECPrivateKeyParameters privateKey)
Deprecated. 

generateECKeyPair

public static AsymmetricCipherKeyPair generateECKeyPair(java.security.SecureRandom random,
                                                        ECDomainParameters ecParams)
Deprecated. 

generateEphemeralClientKeyExchange

public static ECPrivateKeyParameters generateEphemeralClientKeyExchange(java.security.SecureRandom random,
                                                                        short[] ecPointFormats,
                                                                        ECDomainParameters ecParams,
                                                                        java.io.OutputStream output)
                                                                 throws java.io.IOException
Deprecated. 

validateECPublicKey

public static ECPublicKeyParameters validateECPublicKey(ECPublicKeyParameters key)
                                                 throws java.io.IOException
Deprecated. 

readECExponent

public static int readECExponent(int fieldSize,
                                 java.io.InputStream input)
                          throws java.io.IOException
Deprecated. 

readECFieldElement

public static java.math.BigInteger readECFieldElement(int fieldSize,
                                                      java.io.InputStream input)
                                               throws java.io.IOException
Deprecated. 

readECParameter

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

readECParameters

public static ECDomainParameters readECParameters(int[] namedCurves,
                                                  short[] ecPointFormats,
                                                  java.io.InputStream input)
                                           throws java.io.IOException
Deprecated. 

writeECExponent

public static void writeECExponent(int k,
                                   java.io.OutputStream output)
                            throws java.io.IOException
Deprecated. 

writeECFieldElement

public static void writeECFieldElement(ECFieldElement x,
                                       java.io.OutputStream output)
                                throws java.io.IOException
Deprecated. 

writeECFieldElement

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

writeECParameter

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

writeExplicitECParameters

public static void writeExplicitECParameters(short[] ecPointFormats,
                                             ECDomainParameters ecParameters,
                                             java.io.OutputStream output)
                                      throws java.io.IOException
Deprecated. 

writeECPoint

public static void writeECPoint(short[] ecPointFormats,
                                ECPoint point,
                                java.io.OutputStream output)
                         throws java.io.IOException
Deprecated. 

writeNamedECParameters

public static void writeNamedECParameters(int namedCurve,
                                          java.io.OutputStream output)
                                   throws java.io.IOException
Deprecated. 

Bouncy Castle Cryptography Library 1.64